Support

Home Forums Event Espresso Premium My template is wrapping paragraph tags around EE jquery. How do I debug

My template is wrapping paragraph tags around EE jquery. How do I debug

Posted: February 25, 2013 at 9:20 am

Viewing 6 reply threads


Robert Lindauer

February 25, 2013 at 9:20 am

Hi,
If I use the twenty11 theme, everything works fine. But if I use our theme template (from themeforest), I get all the EE based jquery in the page wrapped with tags. I can’t get in touch with the template developer yet so I am asking if you all have an idea on what I can look for in the code to track down this issue?
-John


Jonathan Wilson

February 25, 2013 at 3:07 pm

Hi Robert,

You can try editing the main registration page and wrapping the [ESPRESSO_EVENTS] shortcode with a [raw] tag:

[raw][ESPRESSO_EVENTS][/raw]

You can also do this with the calendar shortcode:

[RAW][ESPRESSO_CALENDAR][/RAW]

If you see paragraph tags in the markup even after adding the [raw] short tags, add the following to your theme’s functions.php file:

if ( !is_admin() && function_exists( 'espresso_raw_formatter' ) ){
	remove_filter('the_content', 'wpautop');
	remove_filter('the_content', 'wptexturize');
	add_filter('the_content', 'espresso_raw_formatter', 99);
}


Robert Lindauer

February 25, 2013 at 3:34 pm

Thanks for the help.
Unfortunately the [RAW] tag didn’t work, it just gets rendered as “[RAW]” on the front end. I will look for the function that is doing this.


Jonathan Wilson

February 25, 2013 at 3:58 pm

Did you try adding this to your theme’s function.php file?

if ( !is_admin() && function_exists( 'espresso_raw_formatter' ) ){
	remove_filter('the_content', 'wpautop');
	remove_filter('the_content', 'wptexturize');
	add_filter('the_content', 'espresso_raw_formatter', 99);
}


Robert Lindauer

February 25, 2013 at 4:40 pm

Yes, without luck.
I did find this in the function.php

remove_filter( ‘the_content’, ‘wpautop’ );
add_filter( ‘the_content’, ‘wpautop’ , 99);
add_filter( ‘the_content’, ‘shortcode_unautop’,100 );


Robert Lindauer

February 25, 2013 at 4:52 pm

removing the following lines out of the function file fixes the problem, but I am concerned that it might break something else.

remove_filter( ‘the_content’, ‘wpautop’ );
add_filter( ‘the_content’, ‘wpautop’ , 99);
add_filter( ‘the_content’, ‘shortcode_unautop’,100 );


Josh

  • Support Staff

February 27, 2013 at 9:49 am

Hi Robert,

From what I’ve found, theme developers disable the core WP autop filter in order to make their column shortcodes line up correctly. This isn’t a very good solution though. So if you are using the theme’s built in column shortcodes, the columns might not quite line up without that code. If you are seeing this, you could try this plugin:

http://justintadlock.com/archives/2012/10/03/grid-columns-wordpress-plugin

This plugin creates column shortcodes without disabling the native WordPress formatting.

Viewing 6 reply threads

The support post ‘My template is wrapping paragraph tags around EE jquery. How do I debug’ 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