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. anchor links on the same page do not work

anchor links on the same page do not work

Scheduled Pinned Locked Moved General Discussion
12 Posts 3 Posters 86 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.
  • F Offline
    F Offline
    florine
    wrote on last edited by florine
    #1

    Hi Armin

    I have the same problem as I saw others had discussed in the forum; anchor links do not work on my page.

    https://neu.casanova-mechanik.ch/
    The page is a one-pager.
    The idea is that by clicking the blue word > Fotogalerie, you get directed down to the first image of the picture gallery which has the id firstpic .

    top of the page with link:
    Bildschirmfoto 2024-09-18 um 14.07.31.png

    how it should look when clicking the link:
    Bildschirmfoto 2024-09-18 um 14.37.01.jpg

    I tried to set as a link only the hashtag (#firstpic) or the whole url (https://neu.casanova-mechanik.ch/home/#firstpic). In both cases the link won't be opened by the browser when clicking the word > Fotogalerie.
    The url https://neu.casanova-mechanik.ch/home/#firstpic also doesn't work when I directly use it in the browser, the page doesn't jump to the anchor but just shows up from the first row.

    The problem happens on Chrome and Safari and on my iPhone.

    I also tried Turn Off All Custom Code and I disabled all plugins and updated LayTheme, as you suggested for similar problems in the forum. And I activated Never change scrolling position when navigating in Lay Options as it helped another user. Unfortunately, none of this did work so far.

    Until now I only properly costumed on the desktop version, the mobile is still a bit of a mess. But the anchor link doesn't work on either of them.

    Do you have any idea what else could be helpful?

    I used the anchor links a lot on another website and everything worked and still works perfectly there, so it surprises me not being able to deal with it this time.

    Thanks a lot for your help,
    best,
    Florine

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

      can you disable the overlay feature in lay options

      and try again if it works?
      i see in the code the homepage is inside an overlay and exists as a normal page

      so it exists in the code twice at the moment
      maybe there is an issue with that, i will try and recreate this issue and fix the anchorscroll for that

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

        ok yea, it happens because of that.
        will be fixed with the next update

        1 Reply Last reply
        0
        • F Offline
          F Offline
          florine
          wrote on last edited by
          #4

          I disabled the cover option and right now it doesn't help to fix the problem. but if you think it happened because of that I'm happy it will be fixed, thanks a lot!

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

            no i meant please disable the overlay option, not the cover option.
            or don't have the homepage set as an overlay.
            but yea with the next update it will be fixed

            1 Reply Last reply
            0
            • F Offline
              F Offline
              florine
              wrote on last edited by
              #6

              Hi Armin
              I'm really sorry to come up again with this but the link still does not work. If i click '> unsere Fotogalerie', just nothing happens. I updated to the latest Version and I do not have the homepage set as an overlay anymore.
              Thanks for your help!

              1 Reply Last reply
              0
              • U Offline
                U Offline
                user-4'33''
                wrote on last edited by user-4'33''
                #7

                Having the same issue with the second (contact) menu in this onepager while the first one called (works) does the job correctly.

                One click only jumps a bit down, so one would have to click multiple times to get to the correct position.

                Things I tried unsuccessfully:

                • searching the forum
                • updating Lay Theme
                • disabling Never change scrolling position when navigating
                • disabling overlay option for pages

                Many thanks!

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  florine
                  wrote on last edited by
                  #8

                  oh and I transferred my website to the main site, so it is now on https://casanova-mechanik.ch/ and the permalink I yould like to open is https://casanova-mechanik.ch/#firstpic

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

                    hey if you update lay theme now it should work i think with version 7.2.7

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

                      did you disable your caching plugin or like refresh it?

                      if it still doesnt work:

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

                        @user-4-33

                        can you put you not use the id on the sticky element but on an element below the sticky element

                        probably its some kind of exception with sticky elements

                        U 1 Reply Last reply
                        1
                        • arminunruhA arminunruh

                          @user-4-33

                          can you put you not use the id on the sticky element but on an element below the sticky element

                          probably its some kind of exception with sticky elements

                          U Offline
                          U Offline
                          user-4'33''
                          wrote on last edited by
                          #12

                          @arminunruh Did work like this – thanks!

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