Site logo

Archived topic

Read More with Sticky Menu using Firefox

3 replies · Started by Garth Dryland on June 5, 2019

Viewing posts 1–4 of 4

When clicking a read more using Firefox the text ends up hidden by the menu whereas with edge and chrome it work fine.

I don't think so Leo given I assume that would alter the content position for all browsers, not just Firefox ?

The code below 100% use to work positioning text correctly under the sticky menu after clicking the read more tag, though for some reason its not now. I don't believe anything I've done changed this.

Originally Tom came up with this which positioned the text anchor point correctly

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

which now in the most part works without the code above or like below using an increased height given something appears to have changed in either WordPress or GeneratePress now requiring the additional 25 pixels and or code removal, such as core padding perhaps re the read more tag

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

Either option sends the read more links to the right position so that you can read on from where you left off, except for when using Firefox ?

This 100% use to work for the Edge, Firefox and Chrome plus numerous other browsers I tested.

This archived topic is closed to new replies.