Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #746826

    hi,

    we are experiencing a weird situation here..
    whenever we try to save a code block, it adds some html code (<p>, </br>) itself and it breaks the layout.

    ex.

    
    Original Code ------------------
    
    <style type="text/css">
    .hide-title-iconbox h3.iconbox_content_title{display:none;}
    #top .hide-title-iconbox .iconbox.av-no-box .iconbox_icon{margin: 0 auto ;}<br />
    .entry-content-wrapper li{padding: 10px 0;}
    .av-special-heading{margin-top: 10px;}
    .height-title h3{line-height:40px;}
    #top .av-flex-placeholder{width: 2%;}
    </style>
    
    After Save -----------------
    
    <style type="text/css">
    .hide-title-iconbox h3.iconbox_content_title{display:none;}<br />
    #top .hide-title-iconbox .iconbox.av-no-box .iconbox_icon{margin: 0 auto ;}<br />
    .entry-content-wrapper li{padding: 10px 0;}<br />
    .av-special-heading{margin-top: 10px;}<br />
    .height-title h3{line-height:40px;}</p>
    <p>#top .av-flex-placeholder{width: 2%;}</p>
    </style>
    
    

    Could you help? Thank you.

    #746840

    sorry, the Original code doesn’t have <br />

    
    <style type="text/css">
    .hide-title-iconbox h3.iconbox_content_title{display:none;}
    #top .hide-title-iconbox .iconbox.av-no-box .iconbox_icon{margin: 0 auto ;}
    .entry-content-wrapper li{padding: 10px 0;}
    .av-special-heading{margin-top: 10px;}
    .height-title h3{line-height:40px;}
    #top .av-flex-placeholder{width: 2%;}
    </style>
    
    #746952

    sorry again, it doesn’t break the layout. It makes the code invalid.

    #747303

    Hi,

    Thanks for the feedback, in what way is the code invalid?

    Best regards,
    Rikard

    #747312

    hi,

    it adds some HTML code by itself so the code became invalid as I mentioned in the first post ~
    ex.
    </br>
    <p>

    After “Save” the page —————–

    <style type=”text/css”>
    .hide-title-iconbox h3.iconbox_content_title{display:none;}<br />
    #top .hide-title-iconbox .iconbox.av-no-box .iconbox_icon{margin: 0 auto ;}<br />
    .entry-content-wrapper li{padding: 10px 0;}<br />
    .av-special-heading{margin-top: 10px;}<br />
    .height-title h3{line-height:40px;}</p>
    <p>#top .av-flex-placeholder{width: 2%;}</p>
    </style>

    #747316

    it’s really urgent, please help

    those html code are not supposed to be in the code block:
    https://screencast.com/t/yYk7YANxOBE

    #747324
    #747335

    Hey!

    That is because the way WordPress is handling it.
    Please either create your codeblock as shortcode ( which is also the best way to handle it )

    An other dirty solution, is to create a Text Widget and use a Sidebar element from enfold, to add yur code to the layout.
    That way, you will not have to parse any text through the Editor.

    Let us know if we can help you further

    Best regards,
    Basilis

    #747339

    Hey Basilis

    thanks for the reply,

    but we always put styling code into the code block this way, it works fine until couple days ago (maybe after updating to 4.7.2)
    is it a 4.7.2 issue??

    also, could you elaborate more on how to “create your codeblock as shortcode”??

    thank you :)

    #747783

    hi,
    I think this is definitely a bug since everything worked fine before.

    is there anyway to fix this??

    #748217

    hi,

    Is there any update on this issue??

    #749702

    hi, it’s really urgent, anyone?

    those html code are not supposed to be in the code block:
    https://screencast.com/t/yYk7YANxOBE

    #750064

    Hi,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to deactivate plugins if necessary.

    Best regards,
    Andy

    #751282

    hi, Andy

    the site is going live soon,
    we may need to postpone this issue.
    But please note this issue for future theme update :)

    thanks.

    #751288

    Hi!

    Thank you for letting us know.
    We will do note it down and will show how we can move forward with it.

    Thanks a lot

    Cheers!
    Basilis

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.