• Resolved fatdogstudios

    (@fatdogstudios)


    The builder works great everywhere except this one page. The client asked for a hotspot image map which I suspect is the culprit but I am having a very hard time getting rid of it as the builder refuses to load on the page now. in fact, when logged out I can’t get it out of the default WP page now.

    Been through tons of forums and posts about the jquery issues and document.write issues. I tried removing the code directly from the _fl_builder_data post-meta entries in the DB but it still shows up.

    I have many js console errors as seen below.

    https://snag.gy/X5R8uI.jpg
    https://snag.gy/N9yi5e.jpg
    https://snag.gy/KnFPrt.jpg

    I can’t seem to find where to correct these and find it strange it only happens on this one page.

    I have disabled all plugins, loaded a default wp theme, cleared browser, WP- Rocket, BB caches and the issues persist.

    Any thoughts would be greatly appreciated.

    Thanks

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey @fatdogstudios,

    Thanks for posting!

    Can you try launching the builder in safe mode and see if you can remove the hotspot image map code? 🙂
    http://kb.wpbeaverbuilder.com/article/518-troubleshooting-i-added-custom-code-and-now-i-cant-open-page-builder

    Ben

    Thread Starter fatdogstudios

    (@fatdogstudios)

    Yea that’s got it! Thank you!

    I searched forever and never saw a sign of safe mode- that is great! I would make that one more obvious in the troubleshooting forums- it would probably save you guys a lot of support requests- (or maybe I just needed more coffee when I was searching…)

    Is there a safe way to make this hotspot image work?

    Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey @fatdogstudios,

    Are you using a plugin for the hotspot image? Or are you using custom code? Either way do you mind sharing how you’re doing it so we can check and/or do some testing? 🙂

    Ben

    Thread Starter fatdogstudios

    (@fatdogstudios)

    Hi Ben,

    I used the code below and called the ImageMapResize.js from my server. I removed the middle jquery call (<script src=”//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js”></script>
    ) to resolve the multiple js calls which seemed to break the builder.

    Other than the duplicate js breaking the builder, the hotspots were responsive and working in all browsers I tested.

    Here is the code I placed in an html block:

    img src=”https://westparrysoundedo.com/wp-content/uploads/2017/11/West-Parry-Sound-Map-new.jpg&#8221; id=”map-image” style=”width: 1200px; max-width: 100%; height: auto;” alt=”” usemap=”#who is West Parry Sound” />
    <map name=”who is West Parry Sound”>
    <area shape=”rect” coords=”336, 1043, 640, 1155″ href=”https://www.thearchipelago.on.ca/&#8221; target=”_blank” alt=”Link for Archipelago website” />
    <area shape=”rect” coords=”801, 982, 980, 1040″ href=”https://www.seguin.ca/en/index.aspx&#8221; target=”_blank” alt=”Link for Seguin website” />
    <area shape=”rect” coords=”516, 859, 676, 960″ href=”https://www.parrysound.ca/en/index.asp&#8221; target=”_blank” alt=”Link for Parry Sound website” />
    <area shape=”rect” coords=”333, 800, 501, 863″ href=”https://www.carlingtownship.ca/&#8221; target=”_blank” alt=”Link for Carling website” />
    <area shape=”rect” coords=”612, 758, 882, 816″ href=”https://mcdougall.ca/&#8221; target=”_blank” alt=”Link for McDougall website” />
    <area shape=”rect” coords=”725, 508, 980, 552″ href=”https://www.whitestone.ca/&#8221; target=”_blank” alt=”Link for Whitestone website” />
    <area shape=”rect” coords=”171, 476, 460, 572″ href=”https://www.thearchipelago.on.ca/&#8221; target=”_blank” alt=”Link for the Archipelago” />
    </map>
    <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js”></script>
    <script src=”https://westparrysoundedo.com/wp-content/themes/icelander-child/js/imageMapResizer.min.js”></script&gt;
    <script>$(document).ready(function(e){$(“map”).imageMapResize();});</script>”;s:10:”margin_top”;s:0:””;s:17:”margin_top_medium”;s:0:””;s:21:”margin_top_responsive”;s:0:””;s:13:”margin_bottom”;s:0:””;s:20:”margin_bottom_medium”;s:0:””;s:24:”margin_bottom_responsive”;s:0:””;s:11:”margin_left”;s:0:””;s:18:”margin_left_medium”;s:0:””;s:22:”margin_left_responsive”;s:0:””;s:12:”margin_right”;s:0:””;s:19:”margin_right_medium”;s:0:””;s:23:”margin_right_responsive”;s:0:””;s:18:”responsive_display”;s:0:””;s:18:”visibility_display”;s:0:””;s:26:”visibility_user_capability”;s:0:””;s:9:”animation”;s:0:””;s:15:”animation_delay”;s:3:”0.0″;s:2:”id”;s:0:””;s:5:”class”;s:0:””;s:4:”type”;s:4:”html”;}}}

    Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey @fatdogstudios,

    The errors on the screenshots you attached suggests another jQuery script was loaded.

    Is the code above the actual code you placed inside the HTML module? It still contains the jQuery library script which is most likely causing the problem. Can you remove that and see if it works? WordPress already loads its own jQuery library and it’s recommended to use that.

    Ben

    Thread Starter fatdogstudios

    (@fatdogstudios)

    Hi Ben,

    Yes I did take the jquery call out and that resolved the duplicate errors and the builder works as expected again- super fast and full of awesomeness.

    The image map has the links but is no longer responsive so the links are not in the right spots.

    I suspect maybe things are happening out of order now but not sure.

    Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey @fatdogstudios,

    Can you check if the imagemapresize.js works with jQuery 1.12.4? That’s the jQuery library the WordPress loads.

    If it doesn’t, you may need to find one that works with it. I’d suggest looking for plugins that offer that feature as it would most likely be built around the jQuery library that comes with WordPress.

    We can also dequeue the WP jQuery library and enqueue a version that works with your other library, but this would cause issues not only with our page builder but with other WP plugins and/or themes.

    Ben

    Thread Starter fatdogstudios

    (@fatdogstudios)

    Hi Ben,

    An update on this- I installed Image Hotspot by DevVN which solved the problem. Thanks for your help.

    On another note though- the blog page will not show the page builder button- Even if I try to enter safe mode nothing happens? any ideas?

    Thread Starter fatdogstudios

    (@fatdogstudios)

    Got it sorted using wordpress widgets.

    Thanks again for your help!

    Plugin Contributor Ben Carlo

    (@hinampaksh)

    Glad to hear that! And thanks for taking the time to inform us. 🙂

    Enjoy!

    Ben

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘BB broken on one page’ is closed to new replies.