Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. gumroad embeded script is not loading

gumroad embeded script is not loading

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 907 Views 1 Watching
  • 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.
  • WalkerW
    WalkerW
    Walker
    wrote on last edited by
    #1

    Hi there,

    I just integrated the script from gumroad for a product. It`s a test site.
    https://www.computerbeachparty.shop/cbp2020

    The Script is on the Front Page.
    When I click on the About Site and afterwards back again on the Site Title the Front page is loading but not the product. I think the gumroad script needs a reload to show again the product.

    I could not find a solution!?

    Anyone an idea?

    thanks a lot

    Simon

    1 Reply Last reply
    0
    • RichardR
      RichardR
      Richard
      Global Moderator
      wrote on last edited by
      #2

      Dear @Walker

      is there a way that you can isolate the problem? Does the script actually get called at all?

      Use console.log("TEST");

      Best!
      Richard

      1 Reply Last reply
      0
      • WalkerW
        WalkerW
        Walker
        wrote on last edited by
        #3

        Hi Richard,

        I think the problem is that Lay Theme website is a "Single Page" JavaScript application and cannot just use jQuery(document).ready(…) to execute the js because the ready event only fires once when the website loads the first time.

        I tried to solv it with the following instructions;
        https://laytheme.com/documentation.html#custom-javascript

        but my js knowlegne is limited ...

        <script>
        window.laytheme.on("newpageshown", function(layoutObj, type, obj){
        if(type == "page" && obj.id == 2){
        src="https://gumroad.com/js/gumroad-embed.js";
        }
        });
        </script>

        1 Reply Last reply
        0
        • RichardR
          RichardR
          Richard
          Global Moderator
          wrote on last edited by
          #4

          Dear @Walker

          I do not see anything at all now, i can understand if you took the problem down over the last two days :)

          As a quick try does the "Disable Ajax" option in "Lay Options" help at all?

          Screen Shot 2020-08-26 at 7.15.33 PM.png

          Let me know :)

          Best wishes
          Richard

          1 Reply Last reply
          0
          • WalkerW
            WalkerW
            Walker
            wrote on last edited by
            #5

            Hey Richard, thanks for your answer.
            The "Disable Ajax" did not work for this problem.

            But I found a workaround for me, instead of the site title I placed a second menu with the same name ...

            problem had something to do with the frontpage ... ?!

            Thank

            1 Reply Last reply
            0
            • RichardR
              RichardR
              Richard
              Global Moderator
              wrote on last edited by
              #6

              Dear @Walker

              Im so sorry for the late reply, forgive me
              I just wanted to follow up and make sure if you came to a solution?

              Let me know if i can help further!

              Best Wishes and have a lovely Weekend

              Thanks for using Lay Theme!
              Richard

              1 Reply Last reply
              0

              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
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              Online Users
              Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
              laytheme.com
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Recent
              • Tags
              • Popular
              • Users
              • Search