Logo Pupungbp.com

Need a WordPress expert help?

How to Change Default Twenty Thirteen Theme Font

Last Updated: June 20, 2020 | Reading Time: < 1 minute

If you works on Twenty Thirteen child theme, you might be want to change the font using your own type. First thing is to disable default font:

<?php
function mytheme_dequeue_fonts() {
wp_dequeue_style( 'twentythirteen-fonts' );
}
add_action( 'wp_enqueue_scripts', 'mytheme_dequeue_fonts', 11 );
?>

Then load your new font, if you using Google font, the code would looks similar to:

<?php
function load_fonts() {
wp_register_style('googlefont', 'fonts.googleapis.com/css?family=Arvo:400,700,400italic,700italic|PT+Sans:400,700,400italic,700italic');
wp_enqueue_style( 'googlefont');
}
add_action('wp_print_styles', 'load_fonts');
?>

Just change the google font URL with your own font.

Next step is to override or change the default font described in style.css. All you have to do is to “Search and Replace” the old font with new ones.

Looking for an affordable WordPress solution?

We offer budget-friendly WordPress website development services to meet your needs. Prices start at $10.

Related Posts

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.