Archived topic
Shift of Hero Image after 2-3 seconds
3 replies · Started by John on November 27, 2022
Once the homepage of my site loads (link shared privately), the bottom of the hero image shifts up after 2 or 3 seconds and becomes shorter. I've tried removing the padding and margins, but this still happens. This started happening two releases ago of GeneratePress but did not happen before that.
Please let me know if you have any ideas as to why this is happening. Thanks.
Hi John,
It's not caused by GeneratePress.
It's caused by the margin of your Subscribe button. Initially, it has a 20px margin-bottom, but then, a later CSS rule is loading turning it to 0.
How are you specifically changing this Margin? The Button isn't from GB or GP nor are the codes causing the issue.
Currently, you also have WP Rocket, which can also be a factor as to why this is occurring.
Thanks Fernando! With your help I was able to fix it quickly. It's the mail plugin inserting multiple conflicting CSS rules in several places. Thanks again!
You're welcome, John!