• Resolved szymonwilczynski

    (@szymonwilczynski)


    Hi,

    I have a problem with submenu, it does not appear. Seems that something sets “visibility: hidden; display: none;” to mega-sub-menu class.

    The interesting thing is when I activate uBlock origin, submenu works just fine, so it’s not a theme conflict, maybe adsense or other adv plugin interferes with menu, but I can’t disable them (they must stay on).

    I’d really appreciate some help. URL: kresy24.pl (it’s in polish), submenu should appear under “KALENDARIUM” and “GAZETY KRESOWE” on the right side of dark blue menu area.

    p.s. max maga menu is up to date (2.3.4)


    regards,
    Szymon

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

    (@megamenu)

    Hi Szymon,

    I’m seeing the same thing here – it works when I enable AdBlock, so it seems like one of your adverts is causing the problem.

    Step 1 would be to fix the JavaScript errors that display on your site:

    https://www.megamenu.com/documentation/javascript-errors-console/

    That may fix it. If not, try disabling your advert plugin/adverts code to see if you can narrow it down some more.

    Regards,
    Tom

    Thread Starter szymonwilczynski

    (@szymonwilczynski)

    Tom, thanks for a quick reply.

    I did some research 🙂 I made an offline copy of a home page (ctrl+a -> ctr+v into index.html file on desktop). I removed all adverts and it didn’t help. Then I removed everything below menu and yay, it started to work. So, something in a code below menu was a problem, but it wasn’t an advert. I started removing scripts, beginning from a bottom of a page and I found out that removing line 1342 did the trick.

    <script type='text/javascript' src='http://kresy24.pl/wp-content/plugins/megamenu/js/maxmegamenu.js' defer='defer'></script>

    Now I’m really confused. Removing this line made menu working perfectly (isn’t it this plugin source code?? WTF?), but it’s added by a plugin, so I can’t remove it manually from a code.

    P.S. I also noticed that moving cursor between “KALENDARIUM” and “GAZETY KRESOWE” several times causes submenu working.

    Plugin Author megamenu

    (@megamenu)

    Hi Szymon,

    You’ve made some good progress 🙂

    If you remove the maxmegamenu.js file, the menu will fall back to using CSS only, so it will look like it’s working properly to the untrained eye. However, the JS is required for the mobile menu to work, so you really need to leave it there.

    I’ve tracked the issue down to this file:

    https://screencast.com/t/QWUfnhnRP

    If I block that one file using AdBlock, everything works perfectly. Please can you try removing that code to confirm. If it is indeed the problem, I am not too sure what to suggest (as I cannot figure out why it is overriding the mega menu behaviour), apart from maybe looking for an alternative script to serve your ads.

    Regards,
    Tom

    Thread Starter szymonwilczynski

    (@szymonwilczynski)

    Hi Tom,

    two heads are better than one 🙂 thanks for your analysis, I do confirm that after removing this script everything works perfectly. I will remove it as soon as I’ll find an alternative script.

    best regards,
    Szymon

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘sub menu not showing up’ is closed to new replies.