• Resolved Ignacio

    (@ignaciotg)


    Hi,

    I’ve been trying to do internal linking to different sections of an article using elementor’s Anchor Widget but since I have a fixed header, the content hides under the header, Is there any way to fix this?

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • You’ll need to offset by the same number of pixels as the height of the header. I don’t know if the code below will work for you, but it’s what I would try (adjusting the two mentions of 80 to whatever number you need). The code comes from: https://codepen.io/JoelEadeDesign/pen/RopEwR

    body:not(.elementor-editor-active) .elementor-menu-anchor:before {
      content: "";
      display:block;
      height: 80px; /* fixed header height*/
      margin: -80px 0 0; /* negative fixed header height */
      visibility: hidden;
      pointer-events: none;
    }

    @cavalierlife it works here. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Elementor anchor widget and Fixed Header’ is closed to new replies.