Project

General

Profile

Actions

Support #14296

closed

Anchor links are covered by top-of-page header

Added by Raffi Khatchadourian about 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
-
Category name:
WordPress Themes
Target version:
Start date:
2021-04-08
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

I have [this problem](https://wordpress.org/support/topic/heading-with-anchor-links-are-covered-up-by-top-of-page-header/). In the past, I've used this CSS in the "simple CSS" section of appearance that solved the problem:

:target::before {
  content: "";
  display: block;
  height: 35px; /* fixed header height*/
  margin: -35px 0 0; /* negative fixed header height */
}

However, it no longer seems to work. For example, Allen's publication gets covered up by the top bar using [this link](https://khatchad.commons.gc.cuny.edu/research/publications/#Spektor2020). Any idea on what could be wrong?

Actions

Also available in: Atom PDF