Support

Home Forums Event Espresso Premium Changing Front End Appearance of Upcoming Events Widget

Changing Front End Appearance of Upcoming Events Widget

Posted: October 16, 2015 at 10:41 am


Jaclyn_M

October 16, 2015 at 10:41 am

Hello,

Currently I have a custom text widget that I added to the home page. Given a suggestion by someone at Event Espresso, I grabbed the code from the upcoming events widget, edited it, and added it in the text widget.

I would really like to change it so my edits will be pulled dynamically.

Here is my edited code:

<div class=”widget widget_ee-upcoming-events-widget” id=”ee-upcoming-events-widget-5″>
<ul class=”ee-upcoming-events-widget-ul”>
<li id=”ee-upcoming-events-widget-li-79″ class=”ee-upcoming-events-widget-li”>
<h4 class=”ee-upcoming-events-widget-title-h4″>Masters Club Golf Tournament</h4>
<div class=”ee-upcoming-events-widget-img-dv”>
2015_mc_golf
</div>
<ul id=”ee-event-datetimes-ul-4″ class=”ee-event-datetimes-ul”>
<li id=”ee-event-datetimes-li-3″ class=”ee-event-datetimes-li”><span class=”dashicons dashicons-calendar”></span>October 12, 2015<br/><span class=”dashicons dashicons-clock”></span>10:00am – 8:00pm<form id=”download-iCal-frm-3″ class=”download-iCal-frm” action=”https://www.sacrealtor.org/events?ee=download_ics_file&ics_id=3″ method=”post” ><input type=”submit” class=”ee-ical-sbmt” value=”” title=”Add to iCal Calendar”/></form>
<p style=”margin-top: .5em”>Please join us on October 12<sup>th</sup>, 2015 for the 36<sup>th</sup> Annual Masters Club Golf Tournament where Real Estate professionals will gather for an exciting day of networking fun and business development, all the while benefiting local Sacramento Charities.</p>
<br />
<li id=”ee-upcoming-events-widget-li-62″ class=”ee-upcoming-events-widget-li”>
<h4 class=”ee-upcoming-events-widget-title-h4″>YPN Gala</h4>
<ul id=”ee-event-datetimes-ul-4″ class=”ee-event-datetimes-ul”>
<li id=”ee-event-datetimes-li-2″ class=”ee-event-datetimes-li”><span class=”dashicons dashicons-calendar”></span>December 11, 2015<br/><span class=”dashicons dashicons-clock”></span>7:00 pm – 11:00 pm<form id=”download-iCal-frm-2″ class=”download-iCal-frm” action=”https://www.sacrealtor.org/events?ee=download_ics_file&ics_id=2″ method=”post” ><input type=”submit” class=”ee-ical-sbmt” value=”” title=”Add to iCal Calendar”/></form>

<p style=”margin-top: .5em”>Fundraiser for the SAR Charitable Foundation, for the benefit of Christmas CanTree.</p>

</div>

I changed the links so they point to ../events/eventname instead of ../events/events/eventname. Is there any way to make the change in the code (maybe in my child theme) so this happens automatically?

thanks


Lorenzo Orlando Caum

  • Support Staff

October 16, 2015 at 12:08 pm

Hi, this question looked familiar so I checked one of your prior emails. The issue here is that workaround is needed as you are working on a site in a subfolder installation which causes your single event page URLs to look like this:

example.com/events/events/my-october-event/

If the site is moved out of the subfolder, then the workaround will no longer be needed as there won’t be a duplicate events slug appearing.

Another idea that may work is using a plugin like Redirection to redirect links to those pages to a different page.

example.com/events/events/my-october-event/ –> example.com/my-october-event/

However, that would still require you to create redirects and doesn’t solve the cause of the duplicate events slug in the URLs.


Lorenzo


Jaclyn_M

October 16, 2015 at 12:56 pm

Hi Lorenzo,

I also have it set up this way so that I can customize the individual event page. I want sidebars on these pages (or at least the option) and it didn’t seem that I could do that without manually changing things around. Am I understanding this correctly?

thanks


Lorenzo Orlando Caum

  • Support Staff

October 16, 2015 at 1:45 pm

Hi, if you are needing sidebars on your single event pages, then that can be done by setting up templates in your child theme.

Is that what you are needing to do?


Lorenzo


Jaclyn_M

October 16, 2015 at 3:07 pm

Yes which file would I need to edit?

thanks


Jaclyn_M

October 16, 2015 at 4:06 pm

Actually, nevermind. I need the workaround anyway so that I don’t have sponsors showing as separate events.

thanks


Lorenzo Orlando Caum

  • Support Staff

October 18, 2015 at 4:09 pm

Hello, I see that you replied on Friday but did you still need help with this support post?

If not, could you please update it to resolved?

Thanks


Lorenzo

The support post ‘Changing Front End Appearance of Upcoming Events Widget’ 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.

Event Espresso