Posted: January 28, 2014 at 8:00 pm
|
Great plugin!! |
|
Screenshot: http://rubydragondesign.com/images/title-date-example.png |
Hi ermagerd, You can change the out of the widget by altering the widget template file. event-espresso/templates/widget.php If you look at line 130 you should find <li><a href="<?php echo $registration_url; ?>"><?php echo stripslashes_deep($event->event_name) ?> - <span class="widget-event-date"><?php echo event_date_display($event->start_date) ?></span></a> To display the Date first, then the event name, change that to: <li><a href="<?php echo $registration_url; ?>"><span class="widget-event-date"><?php echo event_date_display($event->start_date) ?></span> - <?php echo stripslashes_deep($event->event_name) ?></a> When making changes to templates it is advisable to first copy them to wp-content/uploads/espresso/templates/ first and then edit the file there. This will keep you modifications safe from updates. From time to to we may update the template files, these updates will need to me manually added to you custom template files. |
|
|
Hi Tony, |
|
*Sorry for the double post; my silliness — Updating the /uploads/ file did the trick!! Have a have morning! |
Hi ermagerd, Sorry, I didn’t make that very clear. Event espresso checks the uploads/espresso/templates/ folder for any modified template versions, if none are found it will load the default ones from event-espresso/templates/ I would actually recommend the opposite of what you posted and to not edit the files within event-espresso/templates/ at all. Instead always copy the file over and edit within /uploads/templates. Reason being that if for some reason you do have issues with the modified templates, you can always switch back to the default ones easily (there is a button in Event Espresso -> Template Settings) |
|
|
Hi Tony, No need to apologize — the issue was that I hadn’t updated the file found within /uploads/ – by bad π Good to note, I’ll be sure not to tamper with the original files, just in case. Thank you!! |
ER-MA-GERD! Yes. Please don’t touch those files. hehe. π Seriously though… let us know if we can help with anything else. |
|
|
Hehe, thanks, Jonathan!! I’ll be sure to only update the /uploads/ files π |
Great! Let us know if we can answer anymore questions. |
|
The support post ‘How Do We Switch Widget's Title-Date Order?’ 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.