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. Lay Theme and Polylang_Front Page

Lay Theme and Polylang_Front Page

Scheduled Pinned Locked Moved General Discussion
33 Posts 15 Posters 1.8k 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.
  • N Offline
    N Offline
    nypaloto
    wrote on Nov 26, 2020, 8:37 AM last edited by
    #13

    Unfortunately, I can't help with this. But the solution I posted came directly from Polylang's support, so I'd reach out to them. Good luck!

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Richard
      Global Moderator
      wrote on Nov 28, 2020, 3:55 AM last edited by
      #14

      Dear Alex @rocked23

      Without knowing exactly whats going on with your polylang, it is difficult to help fully :)

      You could always force the link with jQuery added to "custom <head> content" within 'Lay Options - Custom CSS & HTML'

      https://stackoverflow.com/questions/179713/how-to-change-the-href-for-a-hyperlink-using-jquery

      Best wishes & Good Luck!

      Richard

      1 Reply Last reply
      0
      • I Offline
        I Offline
        ipsum.at
        wrote on Jan 24, 2021, 4:46 PM last edited by
        #15

        Hey thank you very much @nypaloto . Your solution worked fine for me. GReetings Erik

        1 Reply Last reply
        0
        • N nypaloto
          Oct 6, 2020, 1:15 PM

          Got this solved, thanks to Polylang's support:

          1. Create a 'polylang' folder in wp-content (or use existing 'polylang' folder)
          2. Upload the wpml-config.xml file (see below link) into the 'polylang' folder
          3. In your Wordpress admin, go to to Languages > String translations and search for 'frontpage_select_page'
          4. Replace the existing number in the ID field of the foreign language with the ID number '112' (see screenshot received from Polylang in below link )
          5. Save the changes

          And this should do it! It worked for me, with a site in English and Japanese. Note that we're using Project Thumbnails for our home page (not Thumbnail Grid or Element Grid), and had to manually add the Japanese thumbnails to the Japanese home page.

          XML file and Polylang's screenshot are here: https://tinyurl.com/y42xtz8b

          Hope this helps!

          B Offline
          B Offline
          brogr
          wrote on Jan 29, 2021, 10:16 AM last edited by
          #16

          @mariusjopen Would be handy to have this solution included in the Lay Documentation. I can confirm that it works.

          @nypaloto said in Lay Theme and Polylang_Front Page:

          Got this solved, thanks to Polylang's support:

          1. Create a 'polylang' folder in wp-content (or use existing 'polylang' folder)
          2. Upload the wpml-config.xml file (see below link) into the 'polylang' folder
          3. In your Wordpress admin, go to to Languages > String translations and search for 'frontpage_select_page'
          4. Replace the existing number in the ID field of the foreign language with the ID number '112' (see screenshot received from Polylang in below link )
          5. Save the changes

          And this should do it! It worked for me, with a site in English and Japanese. Note that we're using Project Thumbnails for our home page (not Thumbnail Grid or Element Grid), and had to manually add the Japanese thumbnails to the Japanese home page.

          XML file and Polylang's screenshot are here: https://drive.google.com/drive/folders/14kQ_7C6hEwktKLXzmAYcBwAzm8lSl_gi

          Hope this helps!

          B 1 Reply Last reply Jan 29, 2021, 10:36 AM
          0
          • B brogr
            Jan 29, 2021, 10:16 AM

            @mariusjopen Would be handy to have this solution included in the Lay Documentation. I can confirm that it works.

            @nypaloto said in Lay Theme and Polylang_Front Page:

            Got this solved, thanks to Polylang's support:

            1. Create a 'polylang' folder in wp-content (or use existing 'polylang' folder)
            2. Upload the wpml-config.xml file (see below link) into the 'polylang' folder
            3. In your Wordpress admin, go to to Languages > String translations and search for 'frontpage_select_page'
            4. Replace the existing number in the ID field of the foreign language with the ID number '112' (see screenshot received from Polylang in below link )
            5. Save the changes

            And this should do it! It worked for me, with a site in English and Japanese. Note that we're using Project Thumbnails for our home page (not Thumbnail Grid or Element Grid), and had to manually add the Japanese thumbnails to the Japanese home page.

            XML file and Polylang's screenshot are here: https://drive.google.com/drive/folders/14kQ_7C6hEwktKLXzmAYcBwAzm8lSl_gi

            Hope this helps!

            B Offline
            B Offline
            brogr
            wrote on Jan 29, 2021, 10:36 AM last edited by
            #17

            Perhaps including other Lay options too, e.g. footer:

            <wpml-config>
            <admin-texts>
            <key name="theme_mods_lay">
            <key name="frontpage_select_page" />
            </key>
            <key name="lay_projects_footer" />
            <key name="lay_pages_footer" />
            <key name="lay_categories_footer" />
            </admin-texts>
            </wpml-config>

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Richard
              Global Moderator
              wrote on Feb 2, 2021, 4:49 AM last edited by
              #18

              Dear @brogr

              This is a fair point and will add this 'documentation insert' idea to the development notes.

              Best wishes and thank you for the concise thread post that will undoubtably help others :)

              Richard

              1 Reply Last reply
              0
              • J Offline
                J Offline
                JoshuaMarr
                wrote on Apr 6, 2021, 7:31 PM last edited by
                #19

                Thanks @nypaloto! I found the problem (did not renew permalinks and had to set a an actual page) and this solution worked for me as well.

                1 Reply Last reply
                0
                • N nypaloto
                  Oct 6, 2020, 1:15 PM

                  Got this solved, thanks to Polylang's support:

                  1. Create a 'polylang' folder in wp-content (or use existing 'polylang' folder)
                  2. Upload the wpml-config.xml file (see below link) into the 'polylang' folder
                  3. In your Wordpress admin, go to to Languages > String translations and search for 'frontpage_select_page'
                  4. Replace the existing number in the ID field of the foreign language with the ID number '112' (see screenshot received from Polylang in below link )
                  5. Save the changes

                  And this should do it! It worked for me, with a site in English and Japanese. Note that we're using Project Thumbnails for our home page (not Thumbnail Grid or Element Grid), and had to manually add the Japanese thumbnails to the Japanese home page.

                  XML file and Polylang's screenshot are here: https://tinyurl.com/y42xtz8b

                  Hope this helps!

                  T Offline
                  T Offline
                  Tstudios
                  wrote on May 5, 2021, 4:28 PM last edited by
                  #20

                  @nypaloto

                  Hi! I'm having a problem with this as I cannot find the frontpage_select_page string in the Strings translations page. I uploaded the wpml-config.xml in my public_html/wp-content/plugins/polylang and it didn't do anything. I also tried to create a folder named polylang in public_html/wp-content/polylang and still nothing. Any idea how to make this work?

                  Thanks a lot in advance!

                  doorofperceptionD 1 Reply Last reply Jun 21, 2021, 10:00 AM
                  0
                  • tspallekT Offline
                    tspallekT Offline
                    tspallek
                    wrote on Jun 14, 2021, 9:08 AM last edited by
                    #21

                    Hey I had the same issue. Nothing really worked … but if that is a help for you. I worked around it. Instead of using the Language Switch directly I added individual link to the front-pages directly … that works at least. A little bit annoying because if you switch languages it jumps to the front page … but at least it works …

                    doorofperceptionD 1 Reply Last reply Jun 15, 2021, 2:40 PM
                    0
                    • N nypaloto
                      Oct 6, 2020, 1:15 PM

                      Got this solved, thanks to Polylang's support:

                      1. Create a 'polylang' folder in wp-content (or use existing 'polylang' folder)
                      2. Upload the wpml-config.xml file (see below link) into the 'polylang' folder
                      3. In your Wordpress admin, go to to Languages > String translations and search for 'frontpage_select_page'
                      4. Replace the existing number in the ID field of the foreign language with the ID number '112' (see screenshot received from Polylang in below link )
                      5. Save the changes

                      And this should do it! It worked for me, with a site in English and Japanese. Note that we're using Project Thumbnails for our home page (not Thumbnail Grid or Element Grid), and had to manually add the Japanese thumbnails to the Japanese home page.

                      XML file and Polylang's screenshot are here: https://tinyurl.com/y42xtz8b

                      Hope this helps!

                      doorofperceptionD Offline
                      doorofperceptionD Offline
                      doorofperception
                      wrote on Jun 15, 2021, 2:25 PM last edited by
                      #22

                      This solution did not work for me. The page displayed is empty after doing that.

                      The language switcher also doesn't work on other pages. It only links to the home page but never brings you to the translated version of the page you're on right now.

                      I don't know what to do. I tried qTranslate, WPML and now Polylang and I never managed to achieve a properly working multilanguage Laytheme. It's so frustrating.

                      @nypaloto said in Lay Theme and Polylang_Front Page:

                      Got this solved, thanks to Polylang's support:

                      1. Create a 'polylang' folder in wp-content (or use existing 'polylang' folder)
                      2. Upload the wpml-config.xml file (see below link) into the 'polylang' folder
                      3. In your Wordpress admin, go to to Languages > String translations and search for 'frontpage_select_page'
                      4. Replace the existing number in the ID field of the foreign language with the ID number '112' (see screenshot received from Polylang in below link )
                      5. Save the changes

                      And this should do it! It worked for me, with a site in English and Japanese. Note that we're using Project Thumbnails for our home page (not Thumbnail Grid or Element Grid), and had to manually add the Japanese thumbnails to the Japanese home page.

                      XML file and Polylang's screenshot are here: https://tinyurl.com/y42xtz8b

                      Hope this helps!

                      1 Reply Last reply
                      0
                      • tspallekT tspallek
                        Jun 14, 2021, 9:08 AM

                        Hey I had the same issue. Nothing really worked … but if that is a help for you. I worked around it. Instead of using the Language Switch directly I added individual link to the front-pages directly … that works at least. A little bit annoying because if you switch languages it jumps to the front page … but at least it works …

                        doorofperceptionD Offline
                        doorofperceptionD Offline
                        doorofperception
                        wrote on Jun 15, 2021, 2:40 PM last edited by doorofperception Jun 15, 2021, 10:41 AM
                        #23

                        @tspallek I did such a workaround for years but I think it's really bad for SEO. And it sucks. Because in fact, you don't really have a language switcher, it's like just going to another version of the page.

                        1 Reply Last reply
                        0
                        • T Tstudios
                          May 5, 2021, 4:28 PM

                          @nypaloto

                          Hi! I'm having a problem with this as I cannot find the frontpage_select_page string in the Strings translations page. I uploaded the wpml-config.xml in my public_html/wp-content/plugins/polylang and it didn't do anything. I also tried to create a folder named polylang in public_html/wp-content/polylang and still nothing. Any idea how to make this work?

                          Thanks a lot in advance!

                          doorofperceptionD Offline
                          doorofperceptionD Offline
                          doorofperception
                          wrote on Jun 21, 2021, 10:00 AM last edited by
                          #24

                          @Tstudios I only find the "frontpage_select_page" string after uploading the file into wp-content/polylang and not to the plugin folder.

                          Yet I still don't know what numbers to put in there.

                          1 Reply Last reply
                          1
                          • L Offline
                            L Offline
                            Leopold Lenz
                            wrote on Aug 20, 2021, 1:33 PM last edited by
                            #25

                            Even if this topic is kind of old.
                            I had to deal with this problem twice now. And I figured out how it works twice.

                            You procede as nypaloto described it:

                            1. Create a 'polylang' folder in wp-content (or use existing 'polylang' folder)
                            2. Upload the wpml-config.xml file (see below link) into the 'polylang' folder
                            3. In your Wordpress admin, go to to Languages > String translations and search for 'frontpage_select_page'
                            4. Replace the existing number in the ID field of the foreign language with the right ID number
                            5. Save the changes

                            Step 4. is crucial. You have to look up which page or post_id your site got. I did that by exporting all my pages as an XML. But there are several ways to look that up. For each language you have to find out the id and put it in at 'frontpage_select_page'

                            I'm sure next time I try to figure out how it worked I'll stumble uppon this thread again.

                            Best
                            Leo

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              Markus
                              wrote on Mar 2, 2024, 3:00 PM last edited by
                              #26

                              Dear Lay-Theme Community and @Leopold-Lenz,

                              I am now facing the same problem. Have you already found another, simpler solution without having to change folders or codes, just through the WordPress interface for example?

                              I would be super grateful for any help!
                              Thank you very much and best regards

                              1 Reply Last reply
                              0
                              • arminunruhA Offline
                                arminunruhA Offline
                                arminunruh
                                Global Moderator
                                wrote on Mar 3, 2024, 9:34 AM last edited by
                                #27

                                so
                                the problem is your frontpage cant have a different language?
                                can you send the link so i can try to understand it better
                                can you describe it more please

                                i also want to take a look at it in the admin side after you describe the issue more+

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

                                i think i had fixed an issue like that before

                                1 Reply Last reply
                                0
                                • arminunruhA Offline
                                  arminunruhA Offline
                                  arminunruh
                                  Global Moderator
                                  wrote on Mar 6, 2024, 9:16 AM last edited by
                                  #28

                                  Screenshot 2024-03-06 at 10.15.34.png

                                  ur email address doesn't work :)

                                  1 Reply Last reply
                                  0
                                  • arminunruhA Offline
                                    arminunruhA Offline
                                    arminunruh
                                    Global Moderator
                                    wrote on Mar 6, 2024, 9:27 AM last edited by arminunruh Mar 6, 2024, 4:28 AM
                                    #29

                                    so the issue was he said, why does my frontpage show up in the same language when im here:

                                    mywebsite.com/en/
                                    and
                                    mywebsite.com/de/

                                    so my answer was:

                                    when u are here
                                    https://wordpress-492321-4011564.cloudwaysapps.com/de/

                                    and click on EN

                                    you arrive at:

                                    https://wordpress-492321-4011564.cloudwaysapps.com/en/home/

                                    instead of only /en/ (simply the page with only /en/ doesn't exist)

                                    and when you edit this page in wp-admin:
                                    https://wordpress-492321-4011564.cloudwaysapps.com/wp-admin/post.php?post=623&action=edit

                                    you'll see the permalink is: /en/home/

                                    so everything works as it should so far. you just had a different expectation of how it should work.
                                    you cannot change it to /en/ here unfortunately.

                                    unnamed (2).png

                                    so how do we make it work the way you want to? its a matter of configuration.
                                    look: https://polylang.pro/doc/url-modifications/

                                    unnamed.png

                                    we need to go to settings → reading and set your homepage here as a static site:

                                    unnamed (1).png

                                    make sure that same page is also set as frontpage in customize → frontpage

                                    now we can go to languages → settings
                                    then click "url modifcations" - settings:

                                    settings need to be like this:

                                    Screenshot 2024-03-06 at 10.25.35.png

                                    especially:
                                    Screenshot 2024-03-06 at 10.26.00.png

                                    then i realized this setting is not compatible with lay theme, i fixed that too on your website. this will be included with the next update

                                    1 Reply Last reply
                                    0
                                    • arminunruhA Offline
                                      arminunruhA Offline
                                      arminunruh
                                      Global Moderator
                                      wrote on Mar 6, 2024, 9:30 AM last edited by
                                      #30

                                      and your menu point to link to the frontpage is a custom link instead of a page link.
                                      so it does a hard reload :)

                                      thats why the intro shows up

                                      idk man maybe just disable the intro feature if that wont work :|
                                      i dont really have time to make that work if maybe that menupoint cant be created without doing a custom link, but i dont think so

                                      Screenshot 2024-03-06 at 10.29.24.png

                                      Screenshot 2024-03-06 at 10.30.29.png
                                      see these tabs

                                      dont use the custom link tab to create a link for your menu

                                      1 Reply Last reply
                                      0
                                      • arminunruhA Offline
                                        arminunruhA Offline
                                        arminunruh
                                        Global Moderator
                                        wrote on Mar 6, 2024, 9:31 AM last edited by
                                        #31

                                        The response from the remote server was:
                                        550 5.7.1 Refused by local policy. No SPAM please! (B-EX 149500::1709716524-290D94DA-CE805921/10/55048870923) see https://www.strato-hosting.co.uk/faq/product/why-are-my-emails-not-being-delivered

                                        1 Reply Last reply
                                        0
                                        • arminunruhA Offline
                                          arminunruhA Offline
                                          arminunruh
                                          Global Moderator
                                          wrote on Mar 6, 2024, 9:32 AM last edited by
                                          #32

                                          maybe use a gmail address

                                          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
                                          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