Archived topic
fixing CLS issue with Hooks
3 replies · Started by ahmad on February 24, 2021
Hey guys so recently I found out that most of my sites that have a hook before main content are getting flagged for CLS issue with google page speed
is there a way around that?
Hi there,
the Hook itself won't cause CLS - it will be related to the content that is within it or the styles/scripts being applied to it.
If you can share a link to the site we'll take a look at what the issue is.
sure
here is the site :
https://vizslaworld.com/
is in the home page the part that is before the content itself
The issue looks related to the inline style: padding-left: 30px; you have in your HTML.
Remove those styles to test. If thats the issue then add a CSS style rule instead:
.left-padding-30 {
padding-left: 30px;
}
Then add the left-padding-30 class to your HTML eg.
<h1 class="left-padding-30">