In a Content Template, I have included the following call:
<p> …
[wpv-if info="wpcf-exhibition_opening_info" evaluate="!empty($info)"]<br /><span style="color:rgb(0, 0, 0); font-family:lucida grande,tahoma,verdana,arial,sans-serif; font-size:12px; line-height:normal; text-align:-webkit-auto">[types field="exhibition_opening_info" class="" style=""][/types]</span>[/wpv-if]</p>
Although the setting is on Manual paragraphs, the output source code on hidden link includes a <p> tag after the <span>:
<p> …
<span style="color:rgb(0, 0, 0); font-family:lucida grande,tahoma,verdana,arial,sans-serif; font-size:12px; line-height:normal; text-align:-webkit-auto"><p>Speed Speech von Iris Ganz, Performancekünstlerin</p>
</span></p>
As a result, the formatting defined in the <span> is now overridden by the <p> formatting and therefore got useless.
How can I prevent Views from inserting this <p> tag? I have set the Template to "Manual paragraphs", so imho that should be the solution, but obviously it is not :-S
Thank you for the hint. The shortcode looks promising – but doesn't help :-S
I have wrapped the whole Content Template code with [wpv-noautop][/wpv-noautop] and cleared/switched off all caches – but the <p>'s are still in the code…
Sure, sorry i forgot to indicate.
It is the Embedded Opening for Newsletter template hidden link
Embedded in the Upcoming Openings Dynamic by ArtRegion for Newsletter view hidden link
Thank you, I checked this for you and on the frontend. There isn't any auto paragraphs being added.
Even so I suspect that this is a case where your view is made much more complex than it needs to be. I'm not sure why you are calling a post body template on a view that is not attached to the view at all.
Then in that template again you are calling the same post body with a completely different content template. I would suggest doing some cleanup of your code to ensure that it is streamline.
Thank you for the cleanup hints – in fact, I've used content templates instead of putting the code directly in the view because I intended to reuse the content template "snippet". But I'll have a look at it for sure.
Regarding the <p> inserted, whether it's called "auto" or some differently, I cannot help myself: When I call the source code of the page hidden link I still have the <p>'s in there that override my formatting for the "exhibition_opening_info" field. And my question remains, how can I get rid of them resp. format the text differently than <p> style?