-
AuthorPosts
-
February 14, 2017 at 11:48 am #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.
February 14, 2017 at 12:12 pm #746840sorry, 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>
February 14, 2017 at 4:19 pm #746952sorry again, it doesn’t break the layout. It makes the code invalid.
February 15, 2017 at 7:12 am #747303February 15, 2017 at 7:26 am #747312hi,
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>February 15, 2017 at 7:37 am #747316it’s really urgent, please help
those html code are not supposed to be in the code block:
https://screencast.com/t/yYk7YANxOBEFebruary 15, 2017 at 7:51 am #747324February 15, 2017 at 8:09 am #747335Hey!
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,
BasilisFebruary 15, 2017 at 8:19 am #747339Hey 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 :)
February 16, 2017 at 5:35 am #747783hi,
I think this is definitely a bug since everything worked fine before.is there anyway to fix this??
February 17, 2017 at 5:12 am #748217hi,
Is there any update on this issue??
February 21, 2017 at 4:28 am #749702hi, it’s really urgent, anyone?
those html code are not supposed to be in the code block:
https://screencast.com/t/yYk7YANxOBEFebruary 21, 2017 at 5:55 pm #750064Hi,
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,
AndyFebruary 24, 2017 at 8:09 am #751282hi, Andy
the site is going live soon,
we may need to postpone this issue.
But please note this issue for future theme update :)thanks.
February 24, 2017 at 8:29 am #751288Hi!
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 -
AuthorPosts
- You must be logged in to reply to this topic.