Theme removes shortcode after publish via customizer
-
Hola,
i′ve got an issue with shortcodes i wrote in order to use with a child theme for your materialis theme. It seems that the materialis theme or the Plugin removes my shortcodes from the pages post after i hit publish in the customizer.
Im using my own shortcode on the frontpage to add a seperator (tilt) to a section on the page.
Editing the post content with the classic WP Editor on my wordpress 5.2 website works fine. Also there is no problem using the shortcodes on pages other then the home page.The html before i publish via Customizer
<div data-content-shortcode="kuhdo_separator" flip="true" anchor="bottom" color="#a0d185" style="z-index: -1; margin-top: 350px;">[kuhdo_separator flip="true" anchor="bottom" color="#a0d185" style="z-index: -1; margin-top: 350px;"]</div>
The html after i published via Customizer
<div data-content-shortcode="kuhdo_separator" flip="true" anchor="bottom" color="#a0d185" style="z-index: -1; margin-top: 350px;">[kuhdo_separator]</div>
Is this a restriction by design? Or maybe an escaping issue here?
I studied your themes and plugins code, but it′s quite large. I havent figured out yet how you sanitize the input from the customizers page content or where and or how you remove “[” and “]” from the post content.
It would be great if somebody that had the same issue could help me out with this by a fix or workaround if possible ??
The theme by itself works fine. Great work!
cheers
- The topic ‘Theme removes shortcode after publish via customizer’ is closed to new replies.