• Hey there, loving the template, and loving the amount of fonts available. My problem, though, is that you can’t change fonts per page or per widget, and so on. Every header has to be the same font, and all body text has to be the same font. So the entire website consists of just 2 different fonts in total. Is that just the way the template is or can I do something about that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter owendover12

    (@owendover12)

    This also goes for font sizes as well, although there’s a bit more diversity.

    Theme Author Atanas Yonkov

    (@nravota12)

    @owendover12 ,
    To be able to add fonts beyond the existing options, you would need to extend this theme by creating a child theme. Then, choose a google font and construct a font url by following the instructions. After that, add this code snippet to your child theme’s functions.php:

    function pliska_child_add_google_fonts() {
       wp_enqueue_style( 'pliska-child-google-fonts', '//fonts.googleapis.com/css2?family=Zen+Antique&display=swap', false ); 
    }
    add_action( 'wp_enqueue_scripts', 'pliska_child_google_fonts' );
    
    Replace the url in the code snippet with the font url you have created. After that, <a href="https://kb.oboxthemes.com/articles/how-to-get-css-styles-for-elements/" rel="noopener" target="_blank">inspect the element</a> you want . Finally, you need to apply custom css to the element you want to add the custom font and font size. Go to appearance => customize => custom css and add the following css:
    
    

    h3 {
    font-family: ‘Zen Antique’, serif;
    }`

    Replace “h3” with the selector you have copied from the browser inspect tools and “Zen Antique” with the font you need.

    Hope this helps. Let me know if you have any questions. Here is also a detailed article how to add fonts to a WordPress theme: https://www.wpbeginner.com/wp-themes/how-add-google-web-fonts-wordpress-themes/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Font Changes’ is closed to new replies.