• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

H2 Changed to Span

LPH

Well-known member
#1
Whenever a post in WordPress is placed inside XenForo (XenScripts), the H2 tag is changed to a span and the CSS fails. Here is the view of what happens.

Ants.PNG

Notice that the spacing above the word "Ants" is missing. Firebug isn't help because the span is just an element.style.

Here is the WP version
http://www.layneheiny.com/2012/11/11/how-do-you-handle-cold-weather/

Here is the XF version
http://www.layneheiny.com/community/threads/how-do-you-handle-cold-weather.516675/

Any suggestions on what to put in the XF css style to get the spacing?
 

Jake Bunce

XenForo moderator
Staff member
#2
It's using inline styling. There is no class to select on.

Presumably the XenScripts addon has code for this replacement. Perhaps you could find that code and change the replacement?
 

LPH

Well-known member
#3
Code:
        $body = '';
        if($post_contains == 'full')
        {
            $body = '[quote]' . XenForo_Helper_String::autoLinkBbCode(XenForo_Html_Renderer_BbCode::renderFromHtml(nl2br($content))) . "[/quote]";
        }
If the quote was removed then would the posting keep all the tags?