Support

Home Forums Event Espresso Premium Event Details Page remove Sidebar and comments

Event Details Page remove Sidebar and comments

Posted: November 8, 2017 at 4:53 am

Viewing 3 reply threads


vanchalakhotia

November 8, 2017 at 4:53 am

Want to remove the sidebar that is coming in events details page.
Also remove comments. and social icons which are showing in events details page.
Below is the Link
http://www.itrainconsultants.com/events/marathon-st-pete-run-fest/#tkt-slctr-tbl-3381


Tony

  • Support Staff

November 8, 2017 at 5:25 am

Hi there,

Most of the output is controlled by the theme, we just inject the event details into the_content but your theme is in control of how it is output.

Does your theme allow you to set the sidebar not to show on single posts? If not you may need to create a template for EE events to remove that sidebar.

Can you send me a copy of the theme so I can take a look? You’ll need to host the file and post a link we can use to download it.


vanchalakhotia

November 9, 2017 at 2:13 am

Hi Tony,
Right now i have made changes to single.php and content.php. To make to look better. But if i don’t want event details page to take the single.php template . How do direct it to take the page single-event.php template.

Thanks

Regards,
Vancha


Tony

  • Support Staff

November 9, 2017 at 2:51 am

You create a single-espresso_events.php template which is then only used for EE events.

You will also need to add this function:

add_filter( 'FHEE__EED_Event_Single__template_include__allow_custom_selected_template', '__return_true' );

To your themes function.php file, that tells EE to continue to inject the event details automatically even though you are now using a custom template.

Also, as you are now editing the theme, have you created a child theme:

https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/

Viewing 3 reply threads

The support post ‘Event Details Page remove Sidebar and comments’ 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