It’s a common issue. Since Google PageSpeed flags layout shifts caused by fonts, using font-display: swap
is a good move. Because you’ve installed the font via the WP backend Typography / Styles, you’ll need to override or add CSS to the font face rule so it includes font-display: swap
. For example:
@font-face {
font-family: 'YourCustomFont';
src: url('path/to/font.woff2') format('woff2');
font-display: swap;
}
If you can’t directly edit the @font-face
definitions (for example if WP handles them automatically), try using a filter hook like enqueue_block_assets
or wp_enqueue_scripts
to add extra CSS that inserts this rule.
Also, check if any plugin or theme setting offers a built-in way to enable font-display
, since that may simplify this instead of manually adding code.
Related Posts:
- Google saying is blocked by robots.txt without robots.txt on my website
- Google Adwords Tracking Code causing too many redirects error
- Google maps .gm-style div now displays as block, thus breaking the map
- Rich Snippets for WordPress
- Automatically post to Google+ on new post
- Remove Query String from Google jQuery
- Code syntax error, “userfullName undefined”
- How to remove Google Analyticator in WordPress site?
- Google disapproved Ads due to malware, but no malware in site? [closed]
- Old robots.txt file not changing, can’t update to the current robots.txt
- Google Apps Domain for WordPress
- How to fetch csv file and show in shortcode
- How to download finished WordPress project from Google Cloud?
- How find what plugins load google Font and block it
- How to non index my website page links?
- How can I modify a post depending on the source of the traffic?
- Google is unable to crawl Robots.txt file of my website and please help me
- Make Google index the entire post if it is separated into several pages
- Remove Google Fonts Which Are (Probably) Added By Plugins
- Pass custom fields values to Google Maps
- Feed 404 Errors
- Correct way to hide pseudo pages from being shown?
- Does wordpress insert automatic google analytic?
- how to hide specific post from google search
- Is there a way to stop WP editor deleting
- Google Places API With ACF [closed]
- My WordPress Blog sends malicious traffic to other sites [closed]
- How to make WordPress audio playlist understand the direct links of audio files shared on google drive?
- Looking for a solution – slightly convoluted problem
- Custom Post for Locating by Google Maps API
- Show only IF not Google bot [closed]
- Unfamiliar query string in Google Search Console URL not found
- Disallow author with robots.txt
- Adding JSON Structured Data to WordPress
- Is there a way to avoid 404 pages in WordPress?
- How to implement Google Tag Manager? [closed]
- Adding to fontawesome-webfont.woff2 to boost website speed
- media sideload image and Google Content
- For using google api is it necessary to install the google client libraries for using Oauth 2 in wordpress installation?
- WordPress Google Calendar Oath 404
- Block google maps from loading until user agrees to cookies with Elementor
- Google Tag Manger – no-script Code Not Found
- How To Fix 404 errors caused by Google Indexing WordPress In Subdirectory
- WP-Stateless: Multi Regional Vs Regional Storage
- Add Adsense to a website but the server responds with error 510 [closed]
- How can I disable all external url Google in WordPress backend?
- Excerpt formatting for Google News Feed [closed]
- Fall Back Google CDN in JavaScript
- Is there a way to embed a Google Docs form in a page without using plugins?
- WordPress 404 errors for old plugin files via Google Bot
- Prioritize visible content – Page speed issue on Google insights
- Google Page Speed Insights – Optimize Images
- Any idea why Google not caching my site? [closed]
- Google credentials and redirect URI for Google OAuth2 in a WordPress plugin, questions
- Gravity forms / Recaptcha / Autoptimize – somewhere it goes wrong
- Stop wordpress from requesting external jquery from googleapi
- Getting 400 Error: redirect_uri_mismatch when trying to grant permission to Gmail SMTP plugin
- Disallow: /wp-* in robots.txt?
- Remove Page Timestamp via functions.php so it doesn’t show in Google Search Result Description [closed]
- Pinging or sitemap plugin: which practice is better
- Prevent search query from taking place when using Google CSE?
- WordPress MultiSite Won’t Work on Google AppEngine
- What is the best way to revert to www version of domain name?
- How can I receive uploaded attach file as a Google drive link [closed]
- WordPress User Meta value variable into Google Gauge Chart
- WordPress site for increase SEO ranking in other e-commerce store
- Remove Noindex?
- How to add height and width to images on a page(using WP Bakery) to improve Google’s CLS score?
- Woocommerce Checkout Page Total Price Inside Google Pay Script
- Google Web Core Vitals – management, how to in wordpress and advice
- How to force one script to load before google tag manager script
- Google Tag Manager only load when connected to Admin
- Configure WordPress to Use Responsive Image Rendering
- How to show only homepage in google results instead of privacy, contact pages
- How to avoid images appear as post in google search?
- Unwanted word behind my title in SERP
- Accessing data from Google Cloud Datastore in WordPress site
- WordPress generates weird permalinks
- Trying to add google ad onclick to wordpress and Divi buttons and header link
- How Google Indexer should only index published pages
- Different function call depending on shortcode?
- Speeding up WordPress on a Local Network
- Will dequeueing in child theme functions.php file prevent Google Fonts from loading?
- How to use google api for wordpress login
- Display posts on a map
- Google flagged a wp-admin redirect as phishing
- WordPress URL question
- Google does not index data from custom table used for a plugin
- Querying latitude and longitude into google maps correctly
- How do I add a class to all sidebars to let a Google Custom Search Engine know not to index the content?
- Increase size of Google Document Site Wide [closed]
- Duplicate content with the same URL, google authorship
- Google adsense stats plugin? [closed]
- Feed RSS problem on WordPress, need it for Google News
- How can I add a google play badge to my header and footer?
- Custom Registration and Login Forms with reCaptcha 2 Validation
- I want to lists posts in wordpress to nearest location entered by the user
- How to improve WordPress website SEO and traffic, and or fix SEO issues
- I had removed my phone number from my website footer, but months later it still appears once I look it up on google, how to remove it?
- How can I make a window.dataLayer.push for the Authors name to Google Tag Manager