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. Scroll to anchor on different page is not working.

Scroll to anchor on different page is not working.

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 96 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.
  • L Offline
    L Offline
    lars
    wrote on Jan 6, 2020, 5:04 PM last edited by lars Jan 7, 2020, 3:24 AM
    #1

    Hey,

    I tried to implement several anchor elements on my page http://vivienda-dresden.de (PW: duesseldorf)
    I followed these instructions http://laythemeforum.com:4567/topic/2863/link-to-anchor-from-another-page

    So far the „Jetzt besichtigen“-Button on the home page is working including smooth scrolling.

    Unfortunately as soon as you go to my project pages it stops working.
    While the X-Button in the top right corner closes the page and takes you back to the right position on the home page, the „Jetzt besichtigen“-Button isn’t doing anything.

    Interestingly the link itself is working. You can right click it and choose open in a new tab.

    Here is a list of these pages:
    http://vivienda-dresden.de/vivienda/geschichten-01
    http://vivienda-dresden.de/vivienda/geschichten-02
    http://vivienda-dresden.de/vivienda/geschichten-03
    http://vivienda-dresden.de/vivienda/geschichten-04

    http://vivienda-dresden.de/vivienda/wohnungsdetails-01
    http://vivienda-dresden.de/vivienda/wohnungsdetails-02
    http://vivienda-dresden.de/vivienda/wohnungsdetails-03
    http://vivienda-dresden.de/vivienda/wohnungsdetails-04
    http://vivienda-dresden.de/vivienda/wohnungsdetails-05

    http://vivienda-dresden.de/vivienda/lage-01
    http://vivienda-dresden.de/vivienda/lage-02

    Thanks
    Lars

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mariusjopen
      Global Moderator
      wrote on Jan 9, 2020, 11:37 AM last edited by
      #2

      Dear @lars
      have a look here:

      Definitive guide to 'Smooth scroll to anchors from menu'
      http://laythemeforum.com:4567/topic/4200/definitive-guide-to-smooth-scroll-to-anchors-from-menu/2

      ANCHOR LINK
      http://laythemeforum.com:4567/topic/2863/link-to-anchor-from-another-page/4

      SMOOTH LINK
      http://laythemeforum.com:4567/topic/2144/fade-effect-smooth-transitions-links-via-custom-html/2

      Let me know if you still have trouble.

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lars
        wrote on Jan 14, 2020, 11:36 AM last edited by
        #3

        Hi Marius,

        thanks for your tipps!

        I fixed it by simply changing from id to class when addressing the Button.

        Could it be a bug regarding linked elements with „position: fixed“?

        Anyway thanks again.

        Best
        Lars

        1 Reply Last reply
        0
        • A Offline
          A Offline
          arminunruh
          Global Moderator
          wrote on Jan 14, 2020, 6:50 PM last edited by
          #4

          hey so using this gist in lay options → custom html and css → custom head content should make it work!

          https://gist.github.com/aunruh/7d06859bedcf0ce780e05e73659f8c48

          hmm not sure if position fixed makes it not work :O

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

          1/4

          Jan 6, 2020, 5:04 PM


          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
          C
          craigfeldspar
          6 minutes ago
          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.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search