• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
WPFeed

WPFeed

  • News
  • Tutorials
    • WordPress Multisite
    • BuddyPress
    • Design
  • Reviews
    • Plugins
  • Roundups
  • Snippets
  • Giveaways
Home » BuddyPress » How To Use Google Custom Fonts in WordPress Without Plugin

How To Use Google Custom Fonts in WordPress Without Plugin

One of the important elements in web design is typography. Simply said, using the right typography on your WordPress themes gives some effect on the overall design of the site. Besides the normal font such as Arial, Verdana, Times, just to name a few, there are many custom fonts available from various providers – Google Web Fonts, Typekit, #font-face and etc. This gives us lots of choices.

In this article, we’re going to learn how to use Google Custom Fonts in WordPress without using any WordPress plugin.

To use Google Custom fonts in your theme, first you need to register the fonts using wp_register_style and wp_enqueue_style. You may use the following code. You may paste the code in functions.php of your child theme, or even better in your functionality plugin.

The snippet above will load Rock Salt and Neucha fonts and to use it, simply add 'Rock Salt' or 'Neucha' anywhere you would like the font to be used as shown in the example above.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • WordPress is a brilliant platform that is loaded with tons of stuff for websites.
  • How to Sync Stock & Price for WooCommerce Products
  • How to migrate a WooCommerce Store to a new site
  • How to Import WooCommerce Products
  • How to export WooCommerce Orders

Copyright © 2023 · WPFeed.com - A Project of TechAbout LLC.

  • About us
  • Advertise
  • Write for us
  • Terms and Conditions
  • Privacy Policy
  • Contact us