Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Shortcodes didnt show up

    Bug Reports
    2
    2
    234
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      crux23 last edited by

      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

      1 Reply Last reply Reply Quote 0
      • mariusjopen
        mariusjopen Global Moderator last edited by

        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

        www.mariusjopen.world

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Try this to fix issues before you post:

        Use the Search Feature. Maybe there is already a solution to your issue.

        1. Update Lay Theme and all Lay Theme Addons
        2. Disable all Plugins
        3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
        4. Now see if your problem solved itself
        5. Go here, see if your problem is listed here:
        Troubleshooting

        When you post:
        1. Post a link to where the problem is
        2. If the problem is difficult to explain, post screenshots / link to a video to explain it

        Thanks!

        Online Users

        I
        L

        Recent Topics

        • C

          centred Carousel fixed width and proportions

        • L

          position Project titles outside the images on the side

        • slow navigation WP admin control panel

        • P

          News element date and title order

        laytheme.com