• Resolved cocoamedia

    (@cocoamedia)


    Works perfectly using shortcodes within WP Bakery page builder when I preview the page.

    When I publish the page I get nothing just a blank space :o(

    Any ideas?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bozdoz

    (@bozdoz)

    Hmmm. Looks like a fascinating problem. The script tags are being deferred. You can see in the developer window that you’re getting these errors: ReferenceError: WPLeafletMapPlugin is not defined. But if you try the variable in the console, it is defined. I would bet that one of your plugins is setting all scripts to be deferred until after the page is loaded (so it’s executing the map script before the global/general map scripts are ready, or loaded). I might be able to do a work-around for situations like this, but I’ll have to put it on a low-priority list of todos. In the meantime, see if you can change the scripts to not be deferred. Thanks for the heads up! ??

    Thread Starter cocoamedia

    (@cocoamedia)

    ok thanks for the info @bozdoz

    I am deferring script loading to speed up the site.. I’ll try and create and exception for the map scripts.

    Thanks

    Dave

    Plugin Author bozdoz

    (@bozdoz)

    I have updated the plugin to work with deferred scripts. See if you can test out v2.11.2. Thanks!

    Plugin Author bozdoz

    (@bozdoz)

    Actually I had to fix an unrelated issue; just to be safe, update to 2.11.3 instead. Thanks! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Works in page preview but not published page’ is closed to new replies.