If you’re reading this, PageSpeed Insights has probably shown you a red warning about layout shifts, or Search Console has emailed you about a CLS issue. Maybe you’ve already installed a speed plugin and the number didn’t move. It’s frustrating because the page looks fine on your computer, and the report doesn’t always make it clear what you’re supposed to change.
Here’s the good news. Cumulative Layout Shift is usually the easiest Core Web Vital to fix on a WordPress site, because it tends to come down to one or two specific elements. Find the thing that moves, give it a reserved space on the page, and the score drops. You rarely need a new theme or a faster server for this one.
So that’s the order to follow. First you’ll catch the exact element that’s jumping, then I’ll show you the fix for it.
What layout shift feels like to your visitor
You’ve had this happen. You go to tap a button, an image finishes loading above it, the page jumps, and your finger lands on something else. On a shop that might mean adding the wrong product. On a service site it might mean someone gives up before they ever reach your form.

CLS is Google’s way of scoring how much of that happens. It’s a plain number with no seconds attached. A bigger element moving a longer distance produces a worse score.

Those limits come from Google’s web.dev guide to CLS, which also explains two details that confuse a lot of people. Movement within 500 milliseconds of a tap or click generally doesn’t count, because the visitor caused it, like opening an accordion. And the score isn’t limited to the first second of loading. Google takes the worst burst of shifts during the whole visit, so a banner that drops in after twenty seconds can still hurt you.
Will fixing it improve your rankings?
It can help, but I’d rather be straight with you. Google confirms that Core Web Vitals are used by its ranking systems, and in the same breath says good scores don’t guarantee top positions. Think of it as removing a handicap. The stronger reason to fix it is that people stop mis-tapping and leaving.
Catch the exact element that’s moving
Don’t change anything yet. Most wasted effort on CLS comes from fixing things that weren’t the problem. Any of these three methods will tell you what’s really happening, and I’d start with the first.
Look in PageSpeed Insights
Run your page through PageSpeed Insights and stay on the Mobile tab. Older reports call the section Avoid large layout shifts and newer ones call it Layout shift culprits. Open it and you’ll see the elements that moved, often with a likely cause such as an unsized image or a web font.
Make the shifts visible in Chrome
Open your page in Chrome, press F12, then press Ctrl+Shift+P (Cmd+Shift+P on a Mac), type rendering and open the Rendering tab. Tick Layout Shift Regions and reload. Anything that moves now flashes purple. Switch the device toolbar to a phone size first, because most of the problems I find are worse on mobile.
Paste this into the console
This is my favorite, because it names the guilty element for you. Open the Console tab in DevTools, paste the code below and press Enter. Chrome may ask you to type allow pasting first, which is a sensible safety check, so only do that with code you’ve read. This one only reads the page and changes nothing.
new PerformanceObserver((list) => {
for (const shift of list.getEntries()) {
if (shift.hadRecentInput) continue;
console.log(shift.value.toFixed(4), shift.sources?.map((s) => s.node));
}
}).observe({ type: 'layout-shift', buffered: true });Each line shows the size of a shift and the HTML elements involved. Hover over an element in the console and Chrome highlights it on the page. Scroll to the bottom slowly too, since some shifts only appear when lazy-loaded content arrives. Then start with the biggest number.
I tested the common causes so you can see the difference
I built a small test page at phone size, 390 by 700 pixels, and measured what each mistake actually costs using the same browser API as the script above. Each case loaded its element 0.7 seconds after the page.

One image with no dimensions took the page straight into the poor range at 0.307, and it gave that same score on all three runs. Adding the width and height took it to zero with nothing else changed. A 72 pixel banner pushing content down scored 0.091, which sounds safe until you remember it’s only one element, and a real page may have several. As an overlay, or with its space reserved, the same banner scored zero.
That’s really the whole lesson of CLS. The browser needs to know how much room something will take before it arrives.
How to fix each cause on a WordPress site
Images with no width or height
WordPress adds these attributes to images placed through the normal editor. The ones that slip through tend to come from custom theme code, sliders, logos and some page builder widgets. The fix is to put the real dimensions in the tag and let CSS keep it responsive.
<img src="hero.webp" width="1200" height="800" alt="Describe the image">
img { max-width: 100%; height: auto; }The numbers don’t lock the image at that size. They tell the browser the shape, so it can hold the right amount of space at any screen width. SVG logos are a frequent offender here, so give yours an explicit width.
Videos, maps and other embeds
YouTube players, Google Maps, booking widgets and review feeds all load late. Wrap them in a box that already knows its shape.
.video-embed { aspect-ratio: 16 / 9; }
.video-embed iframe { width: 100%; height: 100%; }
.reviews-widget { min-height: 420px; }For widgets with no fixed shape, load the page, measure how tall the widget usually ends up on a phone, and use that as the min-height.
Cookie notices and promo bars
These are among the most common causes I run into, and my test shows why. If a bar appears at the top and shoves everything down, the entire page counts as moved. Most cookie plugins have a setting to show the notice as a floating box or a bar fixed to the bottom of the screen, so use that. For an announcement bar you want at the top, reserve its height from the start.
.promo-bar-slot { min-height: 72px; }Web fonts that swap in late
Your text often appears first in a fallback font, then changes when your real font arrives. If the two have different widths, lines rewrap and paragraphs move. It’s a small shift each time, but it affects a lot of the page.
Start by hosting your fonts locally and loading fewer weights. Then preload the main one so it arrives early. You can add this to a code snippets plugin, changing the path to your own font file.
add_action( 'wp_head', function () {
echo '<link rel="preload" href="/wp-content/uploads/fonts/brand.woff2" as="font" type="font/woff2" crossorigin>';
}, 1 );If text still jumps, make the fallback font match your brand font more closely with size-adjust. Change the percentage until the two fonts take up about the same width.
@font-face {
font-family: "Brand Fallback";
src: local("Arial");
size-adjust: 105%;
}
body { font-family: "Brand Font", "Brand Fallback", sans-serif; }Sliders and carousels
Many sliders load every slide stacked on top of each other, then collapse into a carousel once their script runs, and that collapse is a large shift. Give the slider a fixed height or aspect ratio. Honestly, I’d often replace a homepage slider with one strong static image. It loads faster and fixes this problem in one move.
Elementor sections
Since avoid large layout shifts comes up so often with Elementor, here’s what I check on those sites. Set a Min Height in the Layout tab on hero containers and on any container holding a slider, form or embedded widget. Give logos and icons a set width. Then run the console script, because it will tell you whether a particular widget is responsible. Elementor’s entrance animations usually aren’t the cause of CLS, as they use opacity and transforms, although I’d still leave them off anything at the top of the page because they can delay your largest content.
Headers and sticky bars
A header that shrinks on scroll or rebuilds itself on mobile can move everything beneath it. Set a fixed header height for mobile, and if you animate anything, use transform. Google’s CLS optimization guide explains that transform animations don’t affect other elements, so they don’t count toward your score, while animating height, margin or top does.
WooCommerce product pages
Product galleries that set their size after loading, price ranges replaced by a variation price, and you may also like blocks dropped in near the top all cause shifts. Give the gallery a fixed aspect ratio and keep anything dynamic below the main product details.
Content a script adds after load
Currency switchers, open now badges, live review counts and personalized offers are often inserted once the page has rendered. Either have the server output them as part of the page, or place them inside a box that already has its final size.
Why your score is still red after you fixed it
This is the part that makes people think their fix failed. PageSpeed Insights shows two kinds of data. The lab test at the bottom is a single simulated load and updates straight away. The field data at the top comes from real Chrome users over the past 28 days, so it changes slowly as new visits replace old ones.
Search Console works from that same real-user data. Once you’ve fixed an issue, open it in the Core Web Vitals report and click Start Tracking, which begins a 28-day monitoring session. So a clean lab result today with a red field score is perfectly normal. Give it the month.
It also explains another common question, which is why the lab says everything is fine while real users report a poor score. The lab mostly sees the initial load. Real people scroll, wait for late widgets and come back to pages. That’s why I told you to scroll while running the console script.
One more small win while you’re here. Pages restored from the browser’s back/forward cache appear instantly and start with a fresh CLS score, so check that your caching setup isn’t sending Cache-Control: no-store on normal public pages, as that can stop it working.
If your store runs on Shopify instead
Many people searching for this are on Shopify, and the same rules apply. What differs is where you make the change.
| What moves | Where to fix it |
|---|---|
| Images in custom sections | Output them with Liquid’s image_tag filter, which adds width and height by default |
| Review stars and app widgets | Turn app embeds off one at a time in the theme editor and retest |
| Announcement bars | Use your theme’s own bar, or reserve the height in CSS |
| Product title and price | Use fewer font weights and a closer fallback font |
| Product gallery | Give it a fixed aspect ratio before the script loads |
Shopify’s performance team has a good technical guide to CLS on Shopify if you want to go further, and my Shopify product page guide covers the wider picture.
Your short version to work through
Keep this list beside you while you work on the page.
- Run PageSpeed Insights on Mobile and note what it names.
- Use the console script while scrolling the full page on a phone-size screen.
- Fix the biggest shift first, then test again before moving on.
- Add dimensions to images, and shapes or minimum heights to embeds.
- Float your cookie notice and reserve room for top banners.
- Preload your main font and match its fallback.
- Click Start Tracking in Search Console and allow 28 days.
Questions people ask about layout shift
What is a good CLS score?
0.1 or less, measured at the 75th percentile of real page loads. Between 0.1 and 0.25 needs improvement and anything above 0.25 is poor.
Can a plugin fix CLS automatically?
Partly. Optimization plugins can add missing image dimensions and preload fonts, and that may be all a simple site needs. They can’t know how tall your review widget is or where your banner should sit, so those usually need a manual fix.
Does lazy loading cause layout shift?
Not if the image has a width and height, because the space is held while it waits. Lazy loading an image with no dimensions will cause a jump when it arrives. I’d also avoid lazy loading your logo and main hero image, as that delays what visitors see first.
Do Elementor animations cause layout shift?
Usually not. To be sure on your own page, turn the animation off for one section, run the console script again and compare the numbers.
Why is my CLS fine on desktop but poor on mobile?
A phone screen is small, so the same element moving covers much more of the viewport. Text also wraps differently, and mobile menus often rebuild themselves. Google scores mobile and desktop separately, so always test both.
Why is my CLS good in the lab but poor in Search Console?
Search Console reports on groups of similar pages, so a page you’ve fixed can stay flagged while others in its group still shift. Check the example URLs in the report and look for the template they share.
How long until Google sees my fix?
Your lab score changes on the next test, and field data catches up over about a month. A low-traffic page may have no field data at all, so judge it by the lab result and the console script.
If you’ve been through this and the page still jumps, the theme itself may be the problem. That’s something I fix as part of WordPress speed optimization, or sometimes with a cleaner rebuild of the templates. Ask for a free website review and I’ll send you a short list of what’s shifting and why.
You may also want my guides on fixing Largest Contentful Paint in WordPress and a speed checklist that passes Core Web Vitals.




