I’m trying to customize my Upcoming Events widget, more than using shortcodes.
The biggest thing I am trying to accomplish is to have the dates not linked or the same color as the title of the event. I also want to add a “View Calendar” button/link beneath the list of events.
Are there some php snippets I can use to call the upcoming events and set the number of events that it displays?
this will add a basic link to the calendar page, obviously change # to the link.
The date:
Line 129 says
<
p>< a href="“>event_name) ?> – start_date) ?> a>
This needs to be edited. Either by adding tags around the date php so that you can target it with CSS and overrule or by completely re writing that code to a different structure of your choosing.
Thank you so much! Is it safe to say that if there are any updates to the plugin, that this process will have to be duplicated? Just wanted to make sure.
If you copy the widget.php to /wp-content/uploads/espresso/templates, your changes will not get overwritten on the update. Please note: If you customize and change the template code from the defaults we’ve created and tested, it becomes your job to maintain it. What this means is if we update widget.php in a future update, you’ll need to keep those changes in sync with your custom version of widget.php.
The support post ‘Upcoming Event Widget – customization’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.