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. Polylang switcher in the overlay (using it as a menu)

Polylang switcher in the overlay (using it as a menu)

Scheduled Pinned Locked Moved General Discussion
9 Posts 2 Posters 654 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.
  • A Offline
    A Offline
    Aleksandar
    wrote on last edited by
    #1

    Hi there!

    I have a question regarding Polylang. The language plugin can usually be easily integrated into the menu, and it normally recognizes the respective languages with their associated pages. However, since I'm using the overlay as the menu for a project, I can't really link the pages. Is there a way to connect them?

    The three pages:
    https://aleksandartodorovic.com/sarajevo/
    https://aleksandartodorovic.com/bs/sarajevo/
    https://aleksandartodorovic.com/en/sarajevo/

    The menu/overlay is the little purple point in the top right corner. If there is a regular language switcher, that would be fantastic.

    All best
    Aleks

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

      the next update will contain a shortcode called

      [lay_polylang_switcher]

      because the polylang plugin doesn't provide a shortcode itself, i created one!

      add it to your overlay: +more → +shortcode

      it will take some time for me to publish the next update

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Aleksandar
        wrote on last edited by
        #3

        Armin, thank you so much! No rush! :-D

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Aleksandar
          wrote on last edited by
          #4

          Hi Armin,
          I just did the update. I don't know why the Polylang pages are not working anymore. The link always redirects to my regular homepage. :-/

          https://aleksandartodorovic.com/sarajevo/
          https://aleksandartodorovic.com/bs/sarajevo/
          https://aleksandartodorovic.com/en/sarajevo/

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

            all of these 3 links show different languages for me

            where can i find the language switcher on your website? can u like show me a screenshot of where i can find it?

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Aleksandar
              wrote on last edited by
              #6

              Hey Armin, I'm sorry for my late reply.

              With the second-to-last update, the issue was resolved, so I thought you had fixed it. Now, with the new update, I have the same problem again: all links always lead to the homepage. So, no matter where I click. The URL is correct, but only the homepage is displayed. :-/

              And the language switcher should be in the overlay page (purple dot in the top right corner) -> https://aleksandartodorovic.com/sarajevo/

              All best
              Aleks

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

                hey on laykeymanager.com you can always download previous versions of lay theme and install them if an update break anything

                Screenshot 2023-12-07 at 13.20.22.png

                hm idk, if i click here, it always goes to the frontpage of the correct language

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

                  and when i go to a different page, the language switcher links to the correct translated page, not the frontpage

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Aleksandar
                    wrote on last edited by
                    #9

                    Hello Armin, the page is working correctly now. I uninstalled plugins one by one, and it seems there was an issue with Polylang.

                    The issue is gone now. However, I don't know what caused it or if it will reoccur.
                    I can work again now. ;-)

                    All best
                    Aleks

                    1 Reply Last reply
                    0
                    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
                    A
                    alasdair17
                    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