Support » Plugin: WP Responsive Menu » Double Menu in Source Code

  • Resolved rezwiebel

    (@rezwiebel)


    Hi, is it really needed, that the Hamburger Menu is on desktop displayed additionally in source code? Cause I have in top position of my source code the menu ul and in the bottom the same menu for the hamburger. But of course only the code in the top is used on desktop, cause it does not use Hamburger Menu. Possible to change, that the Hamburger Menu code is only printed in source code when the screen size requires it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m not the plugin developer, but I doubt this would be added as a feature.

    What is considered “desktop”? As it stands, it is anything wider than the width in pixels you specify in this plugin’s settings.

    That means you can take your browser window, drag the side in and out to make it narrower and wider, and switch between the two “desktop” and “mobile” versions again and again.

    For it to do what you want, it would have to reevaluate every time the screen size changed, and then dynamically add and remove the Document Object Model (DOM) elements as needed. The computational load involved in that would be far worse than the incredibly tiny hit taken from having the redundant content hidden in your page’s source.

    Plugin Author Kshirod Patel

    (@kshirod-patel)

    Hello @tmdesigned thanks for the suggestion. Yes we will look into it and try to implement those things in the future version for sure.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Double Menu in Source Code’ is closed to new replies.