1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Issues with Hamburger Menu and Missing Image

Discussion in 'Free Divi Community Forum' started by Alex Farkas, Dec 28, 2024.

  1. Alex Farkas

    Alex Farkas New Member

    Hi, as mentioned in the title, the hamburger menu (on tablet and mobile) is sometimes unresponsive. On the landing page, it never responds, and on other subpages, it occasionally fails to work. Additionally, I noticed that sometimes the image (attached to this thread) does not display properly.

    Website URL: https://cardetailingnn.sk/

    I would appreciate any assistance in resolving these issues.
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Block Pro - Premade testimonial carousel design for your Divi site without using any plugins:View Demo
  2. Divi Booster

    Divi Booster Divi Expert

    Hey Alex,

    It looks like you have a malformed script tag, like so:

    Code:
    Log In or Sign Up to view this code.
    The ="async" on the end is being incorrectly added as a second part to the data-src attribute. When the CookieYes plugin tries to process this, it isn't handling the malformed attribute and this is causing a JavaScript error which is preventing other scripts running on the page. I believe this is what is stopping the menu from working (when I accept cookies, CookieYes doesn't process the tag and the menu works). I think it might likewise be preventing the slider from animating in the slide with your image.

    I'm can't tell exactly the source of the error. It's possible that the google tag manager tag is malformed to begin with, in which case looking at and correcting how the tag is added (specifically removing the ="async" part) should fix it.

    But it's also possible that lightspeed is corrupting the script tag when it modifies it to defer the script. If that's the case you might need to either disable lightspeed, add an exception so that it doesn't process this script tag, or contact the lightspeed developers for advice on how to fix the issue.

    Finally, while I don't think CookieYes is causing the malformed tag, it is ultimately triggering the JavaScript error. So again, disabling this plugin or contacting the developers for a workaround to handle such tags might resolve the issue.

    Hope that helps!
     
  3. Alex Farkas

    Alex Farkas New Member

    Hey, thanks for the response! To be honest, I'm not really a tech person, so editing tags and all that isn't my strong suit. I did deactivate the CookieYes plugin, which seemed to help a bit, though the issue still happened, just less often. After that, I tried two other cookie plugins, but the problem didn’t go away, so I ended up reactivating CookieYes.

    As a last attempt, I added these to the JS Deferred/Delayed Excludes in the LiteSpeed Cache plugin:

    Even after doing that, the issue still persists. I think I’ll reach out to Divi support and see if they can help.
     
    1. PRO MEMBER PERKS Divi.Help Layout AI Generator - Try the power of AI to generate a custom Divi layout for you:Try Now
  4. Divi Booster

    Divi Booster Divi Expert

    Sure, I totally understand.

    Hopefully Divi support have been able to shed some light on it. If not, here are a couple more observations.

    First, the "google_gtag.js" exclusion should just be "google_gtagjs" (no period). I can still see LiteSpeed processing the script tag (albeit intermittently), so I think the exclusions aren't currently working. It might be worth disabling LiteSpeed entirely and testing to see if that sorts the issue.

    Second, I think I now know how the tag is getting corrupted. Whatever is adding the tag in the first place seems to be setting the following attribute:

    async="async"

    However, the async attribute is normally just indicated by the presence (or absense) of the attribute name, i.e:

    async

    When LiteSpeed applies its own deferral mechanism to the script tag, I think it is trying to remove the existing async attribute, but only actually getting write of the name, leaving:

    ="async"

    Which is making the script tag malformed.

    The fix, then would be any of: correcting the tag itself, preventing LiteSpeed from processing the tag, or ensuring that CookieYes or similar plugins aren't tripping over the malformed tag.
     
    Alex Farkas likes this.