How to Change Default Twenty Thirteen Theme Font

Share This Post

Share on facebook
Share on linkedin
Share on twitter
Share on email

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:

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:

function load_fonts() {
wp_register_style('googlefont', ',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.

Any idea? Fill the comment below

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

More To Explore