Support

Home Forums Event Espresso Premium Recurring Events Dropdown Table – Hide Elements and Header

Recurring Events Dropdown Table – Hide Elements and Header

Posted: May 17, 2016 at 3:55 pm


Emma Hartsfield

May 17, 2016 at 3:55 pm

I have the recurring events dropdown working here https://icmhq.com/cmii-courseschedule-online/

The time used to not be displayed but since a recent update it is. How do I hide it and the header as well? I attempted to hide start time with css and it worked but the header was still there and the table’s format was off one column. The time header doesn’t appear to have a class of it’s own.

Also, the table data is left aligned and the headers are centered. How can I fix this?

Thanks,

Emma


Tony

  • Support Staff

May 18, 2016 at 5:27 am

Hi Emma,

The Recurring Dropdown template has always included the event time so it sounds like you had a modified template.

The best way to modify the template to remove the time is to grab a copy of the default template and load it from either your child theme, or /wp-content/uploads/espresso/templates/ (if not using a child theme)

So grab the template from /espresso-template-recurring-dropdown/template.php

Then in either of the two locations mentioned above create a directory called ‘espresso-template-recurring-dropdown’ and place the template.php within that.

Now EE will load that template instead of the default one.

Open up that custom template.php file, on line 9 you should find:

<th><?php _e('Time', 'event_espresso') ?></th>

Remove it.

Then around line 76 you’ll find:

<td id="start_time-<?php echo $first_event_instance['start_time']?>" class="start_time"><?php echo stripslashes_deep($first_event_instance['start_time'])?></td>

Again remove that.

You now have a template that no longer loads the event time which loads by default.


Emma Hartsfield

May 18, 2016 at 9:13 am

Hi Tony,

I tried creating a new directory in both the child theme and in uploads/espresso/ so the file path is /wp-content/uploads/espresso/templates/espresso-template-recurring-dropdown/template.php

I made the modifications to both files and am not seeing the change on the site. Alternatively, I tried modifying the template file in the plugin folder and that did work. I reverted the changes so you could see what is going on.

Any ideas?

Emma


Josh

  • Support Staff

May 18, 2016 at 2:28 pm

Hi Emma,

It might help to make sure that you have the Custom Template Add-on *version 1.1.p* activated. If it’s an older version it may not be able to locate the custom template.


Emma Hartsfield

May 18, 2016 at 3:33 pm

Hi Josh,

I have updated to version 1.1.p and get the same results as before.

If there is an updated version of a plugin, why am I not getting automatic updates?

Emma


Josh

  • Support Staff

May 18, 2016 at 4:12 pm

The really old versions of the Custom Template add-ons didn’t do automatic updates, so it might also help to make sure you have the latest version of the Recurring Events Dropdown table plugin.


Emma Hartsfield

May 19, 2016 at 8:44 am

I have 1.1.p of the Recurring Events Dropdown Table plugin. In my account, it says the latest version is 1.1. Are these different versions?

I looked through all of the plugins and the only one that I could see that was not up-to-date was the calendar plugin so I updated it and all seems to be working now.

Thanks!


Josh

  • Support Staff

May 19, 2016 at 11:26 am

When the version numbers match they’re the same version.


Tony

  • Support Staff

May 19, 2016 at 11:39 am

Hi Emma,

Did you also want to left align the table headings or are they ok centered?


Emma Hartsfield

May 19, 2016 at 11:53 am

One version is 1.1 and the other is 1.1.p

Yes, getting both the header and the elements to align together would be great.


Tony

  • Support Staff

May 19, 2016 at 12:00 pm

In your custom template you created earlier, line 5 should have:

<table width="100%">

add a class to that table element, like:

<table class="espresso-dropdown-recurring-table" width="100%">

Then add some custom CSS like this:

.espresso-dropdown-recurring-table th {
    text-align: left;
}

If you have a child theme add that style to your child themes style.css file, if not we recommend using either the My Custom CSS or Reaktiv CSS Builder plugins to add custom styles such as these.

The support post ‘Recurring Events Dropdown Table – Hide Elements and Header’ 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