wordpress - Widget not saving in admin side when inline css is called -
my widget content ,
<div style="padding-right: 20%;"> <div class="foot_address">lorem ipsum dummy</div> <div style="width: 100%; height: 1px; background: #b2b2b2;"></div> [divider height="15"] +91 123456678 <div style="width: 100%; height: 1px; background: #b2b2b2;"></div> [divider height="15"] info@example.com <div style="width: 100%; height: 1px; background: #b2b2b2;"></div> [divider height="15"] <div>
when i'm removing div classes , styles widget saving , not present data .
it working in localhost , issue raised when moved live server.
this issue seems have started wordpress 4.8. maybe localhost, got older version , reason works there.
one solution use classic text widget plugin adds widget allows html code. aware plugin uses php namespaces supported in php version 5.3.0 , higher.
Comments
Post a Comment