Skip Navigation

[Closed] Raw or "[wpv-noautop]" does not work

This support ticket is created 4 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 5 replies, has 2 voices.

Last updated by Jamal 4 years, 9 months ago.

Assisted by: Jamal.

Author
Posts
#1622195

I am trying to: remove the auto <p> </p> tags by using the Raw or [wpv-noautop][/wpv-noautop] and it's not working.

Link to a page where the issue can be seen: Local site

Instead, I got: the paragraphs.

How might I add my own <p class="beer_desc"> </p> for the [wpv-post-excerpt] ?

#1622881

Hello and thank you for contacting the Toolset support.

From what I understand you would like to display a post excerpt without it being wrapped in <p> tags, right? Or is it a custom field or term field?

Is this inside a view/layout/content template? Can you take a screenshot?

#1622929

Hi Jamal!
It is a post excerpt for a custom post type inside of a view/content template. I deleted the whole thing last night as I wasn't able to get some other things working correctly.

Maybe you can tell me how to convert the <p> tag that gets autogenerated to have a class of "beer_desc"?

#1623035

I run a local test with a content template on the classic editor, displaying the raw value of the excerpt, and I was not able to reproduce the issue. Check this screenshot hidden link

Maybe Divi is adding WP autop to the excerpt function, check by switching temporarily to a default theme(2020theme), and create a new post with an excerpt to test with. If it is the case, add the following code to your funcitons.php file:

add_action('template_redirect', 'my_remove_wpautop');
function my_remove_wpautop(){
  remove_filter( 'the_excerpt', 'wpautop' );
}

If this does not help, I'll need to take a closer look at your case, maybe you can share a Duplicator copy through Dropbox or GDrive. If yes, please exclude the uploads folder to reduce the size of the copy. Your next reply will be private to let you share download link safely.

#1623039

I run a local test with a content template on the classic editor, displaying the raw value of the excerpt, and I was not able to reproduce the issue. Check this screenshot hidden link

Maybe Divi is adding WP autop to the excerpt function, check by switching temporarily to a default theme(2020theme), and create a new post with an excerpt to test with. If it is the case, add the following code to your funcitons.php file:

add_action('template_redirect', 'my_remove_wpautop');
function my_remove_wpautop(){
  remove_filter( 'the_excerpt', 'wpautop' );
}

If this does not help, I'll need to take a closer look at your case, maybe you can share a Duplicator copy through Dropbox or GDrive. If yes, please exclude the uploads folder to reduce the size of the copy. Your next reply will be private to let you share download link safely.

#1623041

I run a local test with a content template on the classic editor, displaying the raw value of the excerpt, and I was not able to reproduce the issue. Check this screenshot hidden link

Maybe Divi is adding WP autop to the excerpt function, check by switching temporarily to a default theme(2020theme), and create a new post with an excerpt to test with. If it is the case, add the following code to your funcitons.php file:

add_action('template_redirect', 'my_remove_wpautop');
function my_remove_wpautop(){
  remove_filter( 'the_excerpt', 'wpautop' );
}

If this does not help, I'll need to take a closer look at your case, maybe you can share a Duplicator copy through Dropbox or GDrive. If yes, please exclude the uploads folder to reduce the size of the copy. Your next reply will be private to let you share download link safely.

The topic ‘[Closed] Raw or "[wpv-noautop]" does not work’ is closed to new replies.