transmitstudio
10/19/2016 - 10:25 PM

Making in-page links line up properly with fixed menu in place Also see: https://generatepress.com/forums/topic/offset-anchors-with-fixed-h

Making in-page links line up properly with fixed menu in place

Also see: https://generatepress.com/forums/topic/offset-anchors-with-fixed-header/

<a id="place-to-jump-to" class="hashtag-link"></a>

<!-- this also works -->

<span id="place-to-jump-to" class="hashtag-link"></span>

<!-- in menu, link to /page-where-link-is/#place-to-jump-to -->
/* adjust margin and padding as needed */
.hashtag-link {
    margin-top: -80px;
    padding-bottom: 80px;
    display: block;
}