Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/super-atomic/events_calendar-cta/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A WordPress plugin that adds a customizable Call to Action (CTA) button to The Events Calendar event pages.
Description
TEC Call to Action Button extends The Events Calendar plugin by adding a fully customizable CTA button to individual event pages. The button can be configured per event with custom text, URL, colors, padding, and border radius settings.
Features
- Per-Event Customization: Configure a unique CTA button for each event
- Customizable Button Text: Set any text for your CTA button
- Custom URL: Link to any destination (external or internal)
- Color Customization:
- Background and text colors
- Hover state colors
- Advanced Styling:
- Individual padding control (top, right, bottom, left)
- Individual border radius control for each corner
- User-Friendly Admin Interface: Clean metabox with color pickers and intuitive controls
- Front-End Display: Automatically displays on single event pages
Requirements
- WordPress 5.0 or higher
- The Events Calendar plugin (by Modern Tribe)
Installation
- Download or clone this repository
- Upload the
tec-cta-buttonfolder to the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Ensure The Events Calendar plugin is installed and activated
Usage
- Navigate to an Event: Go to Events → All Events in your WordPress admin
- Edit an Event: Click on any event to edit it
- Configure CTA Button: Scroll down to find the "Event Call to Action" metabox
- Set Button Details:
- Enter the button text
- Enter the button URL
- Customize colors using the color pickers
- Adjust padding values (in pixels)
- Adjust border radius values (in pixels) for each corner
- Save the Event: Click "Update" or "Publish" to save your changes
- View on Front-End: Visit the event page on your site to see the CTA button displayed at the bottom of the event content
Default Values
- Background Color:
#f9c609(yellow) - Text Color:
#000000(black) - Hover Background:
#e0b700(darker yellow) - Hover Text:
#000000(black)
Technical Details
- The plugin adds a metabox to the
tribe_eventspost type - CTA button is displayed using WordPress's
the_contentfilter - All styles are applied with
!importantto ensure they override theme styles - Button opens in a new tab with
target="_blank"andrel="noopener noreferrer"for security
Support
For issues, questions, or contributions, please open an issue on the GitHub repository.
Author
SuperAtomic
Version
1.0.0
License
This plugin is provided as-is. Please check with the author for licensing information.