How to Fix Cumulative Layout Shift (CLS) on WordPress: Images, Fonts, Elementor and Banners
How do I fix cumulative layout shift on a WordPress site? A cause-by-cause CLS checklist for images, fonts, ads, Elementor and banners, and how to test it.

On this page
- How CLS is scored
- How do I fix cumulative layout shift on a WordPress site? The quick checklist
- How to find what's shifting
- Images without dimensions
- Lazy-loading pitfalls
- Web fonts: font-display and preload
- Ads, embeds and content added later
- Elementor-specific causes
- Cookie banners, offer bars and sticky headers
- Confirm the fix
- Quick check: find the element that moves
- When to get help
- FAQs
- Most CLS on WordPress comes from content without reserved space: images, embeds, ads and sliders need set dimensions or an aspect ratio before they load.
- Fonts, cookie banners, sticky headers and delayed scripts cause most of the rest: preload the main font with a matched fallback, show notices as overlays, and keep headers a fixed height.
- Find the exact shifting elements with PageSpeed Insights and the Chrome DevTools Performance panel, fix the shared template, then validate the fix in Search Console.
How do I fix cumulative layout shift on a WordPress site? Give every image, video, embed and ad slot set dimensions or an aspect ratio, preload your main web font with a size-matched fallback, show cookie and offer banners as overlays, and stop headers or sliders changing size after load. Then find any remaining shifts in PageSpeed Insights.
Cumulative Layout Shift (CLS) measures how much visible content moves unexpectedly. You start reading, an image loads above the text and everything jumps down. You go to tap "Call now" and hit a banner that has just appeared. Below are the usual causes on WordPress and how to fix each. For how CLS fits alongside LCP and INP, see Core Web Vitals explained.
How CLS is scored
| CLS score | Google's rating |
|---|---|
| 0.1 or less | Good |
| Between 0.1 and 0.25 | Needs improvement |
| More than 0.25 | Poor |
CLS isn't a time. Each shift is scored by how much of the screen was affected and how far things moved; shifts close together are grouped, and your CLS is the worst group during the visit. Two details explain most confusion:
- Expected shifts don't count. Changes within about half a second of a tap, click or key press are ignored, like an accordion opening. Scrolling doesn't count as that kind of input.
- The whole visit counts. Shifts while someone scrolls, from lazy-loaded images or a header changing size, are included.
That's why a page can pass a lab test but fail in Search Console.
How do I fix cumulative layout shift on a WordPress site? The quick checklist
Most CLS problems on WordPress come from a short list of causes. Find yours in PageSpeed Insights (next section), then apply the matching fix:
| Cause | Quick fix | Where in WordPress |
|---|---|---|
| Images without width and height | Add dimensions, or a CSS aspect-ratio | Theme templates, page builder image widgets, custom HTML |
| Lazy-loaded hero image | Exclude the first-screen image from lazy loading | Caching or optimisation plugin settings |
| Web font swap | Preload the main font, match the fallback size | Theme or Elementor font settings, optimisation plugin |
| Cookie or offer bar pushing content | Show it as a fixed overlay | Consent or notice plugin settings |
| Sliders and carousels | Fixed height on the container, or a single image | Slider plugin or Elementor carousel widget |
| Ads, maps and embeds | Reserve a minimum height for each slot | Widget areas, ad plugin, block settings |
| Header that changes height | Use position: sticky, animate with transforms | Theme header or Elementor Pro sticky settings |
| CSS or JavaScript loaded late | Exclude critical files from delay and async loading | LiteSpeed Cache, WP Rocket or similar |
Fix the shared template, header or plugin setting rather than individual pages, and one change often clears CLS across the whole site.
How to find what's shifting
Search Console and PageSpeed Insights
- In Search Console's Core Web Vitals report, open the CLS issue to see example URLs. Similar pages are grouped, so fixing a shared template often fixes many pages.
- Run an example page through PageSpeed Insights on mobile. Real-visitor data appears at the top when the page has enough traffic; the lab diagnostics below list the elements behind the largest shifts (shown as "Avoid large layout shifts" or, in newer versions, a layout shift insight). See speed test tools explained.
- Open the page on your phone using mobile data and scroll to the bottom and back. Slow connections make late-arriving content easier to spot.
The Chrome DevTools Performance panel
- Open the page in Chrome, press F12 and go to the Performance panel
- Turn on CPU and network throttling so it behaves more like a mid-range phone
- Click the record-and-reload button, scroll down the page, then stop the recording
- Find the layout shifts track (labelled differently in older versions) and click a shift to see its score and the elements that moved
The culprit is usually something above the moved element that appeared late or changed size.
Images without dimensions
This is the most common cause. If the browser doesn't know how big an image will be, it gives it no space, then pushes everything down when it arrives.
- WordPress adds width and height to images inserted into posts, but theme templates, page builder widgets, custom HTML and some plugins can miss them. Check the page source for image tags without width and height, and add them; with
height: autoin the CSS, images still scale on phones. See image optimisation for WordPress. - For background images and responsive boxes, set the space with the CSS
aspect-ratioproperty or a minimum height. - Sliders can show slides stacked before their script runs, then collapse. Give the slider area a fixed height, or use a single image instead.
Lazy-loading pitfalls
Lazy loading itself doesn't cause shifts; lazy loading without reserved space does.
- Missing dimensions: each lazy-loaded image without width and height shifts the page as the visitor scrolls. Field data counts these, even though lab tests often miss them.
- Wrong-sized placeholders: some JavaScript lazy-load plugins show a tiny placeholder first. If it doesn't keep the image's proportions, the box resizes when the real image arrives.
- Two methods at once: WordPress adds native lazy loading on its own. Layering a plugin's lazy load on top can add placeholders and scripts you don't need, so pick one.
- Hero images: don't lazy-load images at the top of the page; it slows LCP, and fade-in placeholders there can shift the first screen.
See lazy loading explained for what to lazy-load and what not to.
Web fonts: font-display and preload
When a custom font arrives after the text has appeared, the text swaps from a fallback font to the web font. If the two differ in size, lines rewrap and everything below moves.
- font-display:
swapshows the fallback straight away, then swaps, which can shift text.optionaluses the web font only if it arrives almost immediately, so there's no late swap, though some first-time visitors see the fallback. - Preload the main font: a tag in the page head such as
<link rel="preload" as="font" type="font/woff2" crossorigin>, pointing at your font file, fetches it early. Preload one or two files only; preloading every weight delays other resources. - Match the fallback: choose a fallback of similar size, or adjust it with CSS descriptors such as
size-adjust, so the swap is barely visible.
More detail in web fonts and website speed.
Ads, embeds and content added later
- Ads: reserve space for each slot with a minimum height matching the ad size usually served there, avoid slots at the very top of the content, keep an empty slot's space rather than collapsing it, and re-test after switching on automatic ad placement
- Videos: give YouTube and other players a fixed aspect ratio, such as 16:9, so the space exists before the player loads
- Maps, social feeds, review and booking widgets: these load from other servers, often last. Give their containers a minimum height close to their final size. For maps, see adding Google Maps without slowing your site
Elementor-specific causes
- Carousels and slides: Elementor's carousel and slider widgets can render stacked or unsized until their script runs. Set a height on the container, or avoid a carousel in the first screen.
- CSS loaded late: optimisation plugins that load CSS asynchronously or generate critical CSS can show the page briefly unstyled, then snap into Elementor's layout. Exclude Elementor's CSS from async loading or regenerate critical CSS after design changes, and regenerate Elementor's files (Elementor, Tools) after updates.
- Delayed JavaScript: if a plugin delays scripts until the visitor interacts, tabs, menus, counters and sticky headers can look unfinished, then jump. Exclude Elementor's front-end scripts from the delay.
- Sticky and shrinking headers: Elementor Pro's sticky option normally holds the header's space, but custom shrink effects that change height or padding move the content below.
- Google Fonts: Elementor loads Google Fonts by default. At the time of writing its settings include options for how they load (font-display) and for loading them locally; check Elementor's current settings.
For Elementor pages that are slow as well as jumpy, see why Elementor sites get slow.
If Elementor sections look broken on phones even after loading finishes, read how to fix Elementor responsive settings that do not show on mobile.
Cookie banners, offer bars and sticky headers
Cookie notices, festival offer strips, "free delivery above" bars and app banners are frequent causes on business sites. When one is inserted at the top after the page has rendered, everything moves down.
- Show notices as an overlay fixed to the top or bottom of the screen. Something that appears over the page without moving other content isn't a layout shift.
- If a bar must sit in the page flow, include it in the page's HTML from the start instead of adding it with JavaScript later.
- Watch cached pages: some consent and notice plugins decide with JavaScript whether to show a bar after the cached page loads. Reserve its space or switch to an overlay.
- A header that becomes fixed on scroll leaves the page flow, and the content below jumps up by its height. CSS
position: stickykeeps its space; animate shrinking headers with transforms.
For what your consent banner needs to say, see privacy policy and cookie consent basics.
Confirm the fix
- Clear your caching plugin and any CDN cache, then re-test a few page types on mobile, scrolling each from top to bottom
- Field data covers a rolling 28 days, so Search Console takes a few weeks to catch up; use "Validate fix" once you're done
- Re-check after adding a plugin, ad, widget or banner, as each can bring shifts back
Quick check: find the element that moves
- Run the page through PageSpeed Insights and open the diagnostic "Avoid large layout shifts". It lists the elements that moved.
- In Chrome DevTools, open the Performance panel, record a page load and look at the Layout Shifts track.
- Check images in that area for missing width and height, and check for late banners, ads or web fonts.
When to get help
Get help when shifts come from your theme or page builder, when fixing one shift creates another, or when Search Console still reports poor CLS weeks later. WordPress speed optimisation covers Core Web Vitals fixes. You can also send the details through the contact form.
FAQs
How do I fix "avoid large layout shifts" in WordPress?
Open the audit in PageSpeed Insights to see which elements moved, then fix the cause above them: add image dimensions, reserve space for embeds and ads, switch banners to overlays, or stop fonts and scripts loading late.
Why is my CLS good in PageSpeed but poor in Search Console?
Lab tests measure the first load without scrolling. Search Console uses real visits, including shifts from lazy-loaded images, sticky headers and late banners while people scroll.
Does Elementor cause layout shift?
Not by itself, but carousels, late-loading CSS, delayed scripts, custom header effects and Google Fonts on Elementor sites are common causes. Each can be fixed without rebuilding the page.
Can a plugin fix CLS automatically?
Partly. Some optimisation plugins add missing image dimensions or preload fonts, but they can also cause shifts by delaying scripts or loading CSS late. Test after every setting you change.
How do I fix cumulative layout shift on a WordPress site?
Find the shifting elements in PageSpeed Insights, then reserve space for images, embeds, ads and sliders, preload your main font with a matched fallback, show banners as overlays and keep the header a fixed height. Clear caches and re-test on mobile.
Fix CLS issue in WordPress: where do I start?
Start with the CLS issue in Search Console's Core Web Vitals report, open an example URL in PageSpeed Insights on mobile, and fix the element it names in the shared template. Images without dimensions and late banners are the most common first fixes.
Need help with your website?
I'm a freelance WordPress developer building fast, SEO-friendly websites since 2020. Tell me what you need and I'll reply with a plan and a fixed quote, usually within 24 hours.


