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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login