2023 fix for CLS issues
-
2 years and 9 months ago, somebody posted this solution for fixing the CLS issue with the TOC opening and then closing.
>>>>>
Here’s what I did:
includes\class.post.php
add style=”display:none;” to line 1027
$html = ‘<ul class=”ez-toc-list ez-toc-list-level-1″>’ . $html .’‘;
which then is
$html = ‘<ul class=”ez-toc-list ez-toc-list-level-1″ style=”display:none;”>’ . $html .’‘;
takes care of the layout shift
>>>>>
However, that doesn’t seem to work now with the current plugin code. Is there an update to this that I could put in place? Or better yet, that the plugin developers could put in place? This is the only thing preventing me from passing Core Web Vitals.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘2023 fix for CLS issues’ is closed to new replies.