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] ?
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?
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"?
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.
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.
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.