Bart Peeters
asked 9 years ago

Hello,

is it possible to import and use a customized font for the H1, H2, etc. in wallpress theme? I don’t need to change the font-family for the body.

Regards,

1 Answers
DominicStaff
answered 9 years ago

Hi,

To resolve this issue, you can open the \wp-content\themes\dw-wallpress\inc\customize.phpfile. Find the line 558 to line 569.
Replace the following code:

 <style type="text/css" id="body_font" media="screen">
        @font-face {
            font-family: "<?php echo $body_font[0]; ?>";
            src: url('<?php echo $body_font[1] ?>');
        } 
        body,blockquote,blockquote cite,#site-description,#branding nav li.coming-soon > a:after,.format-quote blockquote,#testimonials blockquote {
            font-family: "<?php echo $body_font[0]; ?>";
        }
        .latest-twitter-tweet-time,#secondary #latest-twitter-follow-link {
            font-family: "<?php echo $body_font[0]; ?>" !important;
        }
        </style>

With new code:

   <style type="text/css" id="body_font" media="screen">
        @font-face {
            font-family: "<?php echo $body_font[0]; ?>";
            src: url('<?php echo $body_font[1] ?>');
        } 
        h2 {
            font-family: "<?php echo $body_font[0]; ?>";
        }
        h1 {
            font-family: "<?php echo $body_font[0]; ?>" !important;
        }
        </style>

Hope this helps !

Powered by DW Question & Answer Pro