Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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 250 Views
  • 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.
  • W Offline
    W Offline
    Walker
    wrote on Aug 20, 2020, 4:02 PM 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
    • R Offline
      R Offline
      Richard
      Global Moderator
      wrote on Aug 23, 2020, 7:21 AM 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
      • W Offline
        W Offline
        Walker
        wrote on Aug 24, 2020, 8:16 AM 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
        • R Offline
          R Offline
          Richard
          Global Moderator
          wrote on Aug 26, 2020, 5:21 PM 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
          • W Offline
            W Offline
            Walker
            wrote on Aug 27, 2020, 7:29 AM 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
            • R Offline
              R Offline
              Richard
              Global Moderator
              wrote on Sep 4, 2020, 4:55 PM 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
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              I also code custom websites or custom Lay features.
              💿 Email me here: 💿
              info@laytheme.com

              Before you post:
              1. When using a WordPress Cache plugin, disable it or clear your cache.
              2. Update Lay Theme and all Lay Theme Addons
              3. Disable all Plugins
              4. 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:
              1. Post a link to where the problem is
              2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
              3. If the problem is difficult to explain, post screenshots / link to a video to explain it
              Online Users
              S
              Stanlouche
              2 minutes ago
              E
              ericcodina
              13 minutes ago
              T
              ta_io
              14 minutes ago
              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