Okay
  Public Ticket #2657618
url to anchor
Closed

Comments

  •  20
    Hilke started the conversation

    Hello,

    When I get to an anchor link the top part of the element stays behind the menu.

    How can I get it down without adding a lot of free space in the layout?

    Thank you!

  • [deleted] replied

    Hi hilkes,

    I have tried a code to give you the idea if that works for you, please check this video:

    https://d.pr/v/kokM5L

    If this is the solution you want, then add the following code in Theme Options > Other Settings > Custom JavaScript > Footer JavaScript:

    <script>
    jQuery( document ).ready( function() {
        Kalium.Hooks.addFilter( 'ScrollToElement.scrollTo.offset', function( offset ) {
            return offset - Kalium.Header.Sticky.getStickyHeight();
        } );
    } );
    </script>
    

  •  20
    Hilke replied

    Perfect!! 

    it`s working fine now!

    Thnx a lot