Shortcodes didnt show up
-
I had the problem that shortcode contents didnt show up.
Then i saw that the ids of the shortcode placeholder div and the shortcode content holder div where not the same:<div class="lay-shortcode lay-textformat-parent" data-sc-source-id="1500466149080">
&
<div data-scid="1.50046614908E+12"><div class="test">Hello World!</div></div></div>
I could solve it by doing a number format in frontend/shortcodes.php:$markup .= '<div data-scid="'.$occ["shortcodeid"].'">'.do_shortcode($shortcode).'</div>';
->
$markup .= '<div data-scid="'.number_format($occ["shortcodeid"], 0, "", "").'">'.do_shortcode($shortcode).'</div>';Not the best way but now its working for me!
Kind regards, Michael
-
Hi Crux23,
you have the latest version of Laytheme installed?
That it does not work looks like a bug.
Best is if you write an email to armin.unruh@gmail.com and include your username, password and a link to this conversation.Great you were able to solve the issue for now. But when you update LayTheme the code will be lost.
All the best!
Marius
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it