Okay
  Public Ticket #3405852
Submenus not displayed without JS
Closed

Comments

  • nclsdtrz started the conversation

    Hello

    I am currently developing a site for a client. I work with an SEO consultant who prevents me from publishing the site because the submenus are not displayed without using JS.

    I tested several layouts, minified the JS and reduced the animations but impossible.

    Do you have a solution to display submenus without using JS?

    Thank you so much

  •  279
    Noah replied

    Hi there,

    Thanks for reaching out.

    The user has to hover over a menu item for the submenu to show. That is just how they work.
    However, the HTML for the page already contains the whole menu including the submenu items.

    What exactly do they mean by showing submenu items without javascript?
    Could you maybe get a bit more information out of them with specifics and also direct them to the demo site here https://themenectar.com/salient/

    The submenus are there to allow the packing of more information into the menu. All menu items would not be able to fit at the top level.

    Hope you understand.
    Noah.

  • nclsdtrz replied

    It is essential for my client that the submenus can be displayed even when disabling the JS to suit the SEO rules provided by the agency that works with my client.

    This site displays submenu items even with JS disabled: https://www.thermiefrance.com/

    Even on your demo site, disabling JS, I don't see the submenus. Do you have a solution to display the submenu without using JS?

    Thank you Noah

  •  279
    Noah replied

    Hi there,

    No, as the functionality for showing the submenus requires the theme's javascript files to be loaded. The javascript is not embedded on the HTML page so when javascript files are blocked from loading, the page does not even load because the page load animation is also javascript dependent.

    Hope this explains this better.
    Noah.