Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. burger menu disappears on refresh

burger menu disappears on refresh

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 88 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    quirin
    wrote on last edited by
    #1

    pls have a look here:

    http://salonammarkt.poietik.com/salon-am-markt/

    • switch the language on the top left to "en"
    • the burger menu still works fine
    • click refresh page
    • the burger menu disappears(both chrome and firefox)

    my guess is that smth. goes wrong with this code i am using for the overlay page to switch between the english and german menu:

    .menu_en{
    display: none;
    }
    .slug-salon-am-markt-en .menu_en{
    display: block;
    }

    .menu_de{
    display: none;
    }
    .slug-salon-am-markt .menu_de{
    display: block;
    }

    but i do not understand why it works in the first place and causes problems on refresh. any ideas?

    thx,
    Q

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      hey for this page:
      http://salonammarkt.poietik.com/en/salon-am-markt-en/

      there simply is no overlay
      on this page of this language.
      if you edit this page in this language, did you set the overlay settings for it?
      i mean these:

      Screenshot 2024-07-01 at 17.47.56.png

      do you use polylang or qtranslate-xt?

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        quirin
        wrote on last edited by
        #3

        i use polylang

        and i do use the overlay settings for the menu:
        2024-07-07 16_57_07-burger menu disappears on refresh _ Lay Theme Forum.jpg

        1 Reply Last reply
        0
        • arminunruhA Offline
          arminunruhA Offline
          arminunruh
          Global Moderator
          wrote on last edited by
          #4

          can you send your website address, /wp-admin/ username and password and a link to this topic to info@laytheme.com?

          1 Reply Last reply
          0
          • arminunruhA Offline
            arminunruhA Offline
            arminunruh
            Global Moderator
            wrote on last edited by arminunruh
            #5

            hey there

            there are 2 things that fixed this:

            1.:
            i just created a duplicate of the overlay page, called it "overlay en"
            and then set it as the language "EN" and set the translated page here too:
            Screenshot 2024-07-10 at 09.03.53.png

            http://salonammarkt.poietik.com/en/salon-am-markt-en/

            so now the burger menu icons is shown on the language EN

            i think the problem was you just created an overlay page for one language / no language.
            and then of course no burger icon is shown if

            2.:
            also i had to use the language switcher. you didn't use the language switcher, you just had two links in the menu, one link to the english frontpage and one to the german frontpage.

            Screenshot 2024-07-10 at 09.22.36.png

            BUT the language switcher makes the website hard-reload, updating the overlay pages language.
            if we didn't use the language switcher, the language would stay the same in an overlay page

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              quirin
              wrote on last edited by
              #6

              great armin - thank you so much!

              1 Reply Last reply
              1
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              I also code custom websites or custom Lay features.
              šŸ’æ Email me here: šŸ’æ
              info@laytheme.com

              Before you post:
              1. When using a WordPress Cache plugin, disable it or clear your cache.
              2. Update Lay Theme and all Lay Theme Addons
              3. Disable all Plugins
              4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

              This often solves issues you might run into

              When you post:
              1. Post a link to where the problem is
              2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
              3. If the problem is difficult to explain, post screenshots / link to a video to explain it
              Online Users
              Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
              laytheme.com
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Recent
              • Tags
              • Popular
              • Users
              • Search