pre in gce listview
-
The html pre tag in the list view breaks my layout.
See nilsola.se/pre_breaks.jpg
Any suggestions?
-
Solved this by simply adding a filter that changes ‘pre’ to ‘div’
function my_the_content_filter($content) { // assuming you have created a page/post entitled 'jump4joy-gigs' if ($GLOBALS['post']->post_name == 'jump4joy-gigs') { return preg_replace('/pre/', 'div', $content); } // otherwise returns the database content return $content; } add_filter( 'the_content', 'my_the_content_filter' );this is not really a solution of course, but works for me for the time beeing.
Hello,
The
<pre>tags aren’t added by the plugin. It may be that if you copy/pasted the shortcode from somewhere, the<pre>tags might have copy/pasted along with it. In any case, you can just remove them by editing your page/post using the “Text” (not “Visual”) editor – no filters required.Sorry, that was not the problem. I already use text mode for editing, and the pre tag is only for the title string (I did’nt say that sorry).
Maybe interference with som other plugin??
I will help you with the investigation, I’ll be back.Oh, I see.
Are there any
<pre>tags in the event display builder field in the plugin settings (under “Display Options”)?Nope ….
Actually you were right, there was a pre tag in the text,
maybe i did’nt see that it was in visual mode because i usually use text mode …
The topic ‘pre in gce listview’ is closed to new replies.