Support

Home Forums Event Espresso Premium List view template shows "register" for events that have no registration

List view template shows "register" for events that have no registration

Posted: January 26, 2015 at 5:29 pm


hoffman

January 26, 2015 at 5:29 pm

Hi

The client has paid events but also some where people can just turn up without formal registration. In those events where the ticket selector is set to ‘no’ it would be good if the ‘Register’ link in the list view template (the purchased add-on) could be changed to something like ‘more info’. Is this possible? It will avoid confusion with people clicking on Register when there’s nothing to register for.


Dean

January 27, 2015 at 3:52 am

Hi,

Thanks for the feedback. That’s a great idea and it is possible, in fact it requires only one line of code.

You can build this into a custom template.

Take this file here: https://gist.github.com/Apina/4581340478011d6aaccd and copy it to your sites hosting to wp-content/uploads/espresso/templates

Then change your shortcode to: [ESPRESSO_EVENTS_TABLE_TEMPLATE template_file=espresso-events-table-modified.template.php ]

This will change it so any event with the ticket selector turned off will show as “View” rather than register.


hoffman

January 27, 2015 at 5:00 am

Hi Dean

Thanks for this. I haven’t got an expresso folder under the path you specified, shall I just go ahead and create it? The existing templates for EE are in the plugins folder.


Dean

January 27, 2015 at 5:07 am

Hi,

Strange, EE should create that folder on activation, but yeah if the folder structure doesn’t exist just create it (make sure you are in the uploads section).


hoffman

January 27, 2015 at 5:21 am

I haven’t entered the serial number yet as the domain is being changed slightly when it’s due to go live – maybe that has something to do with it? I have other folders in there (woocomm and media etc)


hoffman

January 27, 2015 at 5:39 am

Hi Dean

All done – seems to be working fine http://screencast.com/t/D6lFHYY55mR

Quick question, how can I style the category selector and search so they don’t sit on top of each other? I need them to look a bit neater: http://screencast.com/t/7wFjxgN3d

Thanks


Dean

January 27, 2015 at 6:14 am

Hi,

Try

p.category-filter {
width: 50%;
float: left;
}

That CSS can be added to your themes style.css, though in order to preserve the CSS through theme updates we recommend adding it to either: a child themes style.css, your themes CSS options if it has any, or a plugin such as My Custom CSS.


hoffman

January 27, 2015 at 6:32 am

thanks that fixed the arrangement slightly – the issue is that the text for category sits on top of the dropdown and the text ‘search’ to the left which causes it to look misaligned except at 900px wide where the search text jumps over the input field. I know this client will complain about the layout, they have been using DW for 10 years lol


Lorenzo Orlando Caum

  • Support Staff

January 27, 2015 at 12:56 pm

Hi, that is handled by this:

You could add a line break between the Search term and the input field. That would shift the input field down.


Lorenzo


hoffman

February 12, 2015 at 5:30 pm

Hi

How can I hide the search field that appears in the list template entirely? Initially we tried to line it up but now I want to remove it entirely. I can’t seem to get the right selector to do this.

Thanks


Tony

  • Support Staff

February 12, 2015 at 5:36 pm

You can do this with a shortcode parameter. Add table_search=false to the shortcode, for example:

[ESPRESSO_EVENTS_TABLE_TEMPLATE table_search=false]

That will remove the search completely.


hoffman

February 12, 2015 at 5:39 pm

I am using this template shortcode: [ESPRESSO_EVENTS_TABLE_TEMPLATE template_file=espresso-events-table-modified.template.php ] – this allows the events with no ticket selector to show ‘view’ rather than register. Can this be adjusted to hide the search?

Thanks


Tony

  • Support Staff

February 12, 2015 at 5:44 pm

Yeah, you can add another parameter:

[ESPRESSO_EVENTS_TABLE_TEMPLATE template_file=espresso-events-table-modified.template.php table_search=false ]

Should work.


hoffman

February 12, 2015 at 5:47 pm

Thanks that worked (after removing the inverted commas)


Tony

  • Support Staff

February 12, 2015 at 5:50 pm

Great 🙂

I’ve remove them from my replay, the forum adds styles that can cause problems.


hoffman

February 12, 2015 at 5:50 pm

Hi, quick question, on the category selector that remains on the list view template how can I change the order of those categories? (client request…)

The support post ‘List view template shows "register" for events that have no registration’ 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