Support

Home Forums Event Espresso Premium Removal of Sidebar/Addthis/Disqus comment system.

Removal of Sidebar/Addthis/Disqus comment system.

Posted: February 3, 2015 at 3:25 am


Dev Tejwani

February 3, 2015 at 3:25 am

Running wordpress, 4.1. EE4.4.10

I am having trouble customizing the event page. I am very keen on removing the sidebar, the addthis plugin, and disqus comment system. How do i go about doing this.

Link: http://www.teambackpack.net/events/cypher-draft-live-audition-mula2015-a/

  • This topic was modified 9 years, 3 months ago by  Tony. Reason: Remove password


Lorenzo Orlando Caum

  • Support Staff

February 3, 2015 at 10:07 am

Hi there,

Try this sample coding:

add_filter( 'comments_template' , 'block_disqus', 1 );
function block_disqus($file) {
if ( 'espresso_events' == get_post_type() )
remove_filter('comments_template', 'dsq_comments_template');
return $file;

}

It can be added to your child theme’s functions.php file (do not include the opening php tag) or a site specific plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

The addthis widget can be removed with a line of CSS:

.espresso_events .addthis-toolbox {display:none;}

Let us know how that works and we’ll take a look at removing the sidebar next.

Thanks


Lorenzo


Dev Tejwani

February 3, 2015 at 6:38 pm

Thanks lorenzo! That worked


Dean

February 4, 2015 at 9:26 am

Marking as resolved. If you need to discuss this further please open a new forum thread and link to this one. Thanks!

The support post ‘Removal of Sidebar/Addthis/Disqus comment system.’ 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