AI Verified

Name

Enqueue Google Fonts

About

This snippet adds Google Fonts to your WordPress site, giving you more options for font styling.

Language

PHP

Rating

Voted: 0 by 0 user(s)

How to Setup Snippet

Replace the URL within the wp_enqueue_style() function with the URL of the desired Google Font. Once added, you can use the font in your CSS by specifying the font-family.

Codevault

tunity

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.1

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

Website/ Profile URL:

tunity.be

Snippet Source:

https://tunity.be/

History

Last modified:

26/03/2023

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Enqueue Google Fonts

 
                    
1function enqueue_google_fonts() {
2 wp_enqueue_style('google-fonts', 'https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap', false);
3}
4add_action('wp_enqueue_scripts', 'enqueue_google_fonts');

0

Related Snippets

Please see some snippets below related to this snippet..

Performance

AI Verified

0

disable Eicons

Added: 1 year ago

Last Updated: 1 year ago

Performance

AI Verified

31

Remove Unused Javascript

Added: 1 year ago

Last Updated: 1 week ago

Remove Unused Javascript - and improve your Page Speed Insight Score

Performance

AI Verified

1

disable Font Awesome

Added: 1 year ago

Last Updated: 1 year ago

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

Performance

AI Verified

1

Enable SVG Uploads

Added: 1 year ago

Last Updated: 4 months ago

This snippet enables the ability to upload SVG files to the WordPress media library.

WordPress Admin

AI Verified

0

Remove unwanted dashboard widgets

Added: 1 year ago

Last Updated: 1 year ago

This snippet removes unnecessary widgets from the WordPress dashboard, keeping it clean and uncluttered.

Styling

AI Verified

0

Custom Login Logo

Added: 1 year ago

Last Updated: 1 year ago

This snippet allows you to replace the default WordPress login logo with your own custom logo.