Changing Wordpress Content Font
I'm trying to change the font family of the content(the_content()) but when I wrap it with a
tag like this
Solution 1:
Dont wrap your the_content()
in p
. Rather you can do like this
<divclass="someclass"><?php the_content(); ?></div>
And then in you css you can have something like this
.someclass, .someclassp, .someclassh1 {
font-family: you_custom_font_family, Arial, Helvetica;
}
Solution 2:
this should not be the technical ans:
wordpress uses to filter text by default. to remove filter you can use wordpress's function
you can write below code
remove_filter( 'the_content', 'wpautop' );
instead of
<?php the_content(); ?>
it will remove your auto generated <p>
tags.
Thanks
Post a Comment for "Changing Wordpress Content Font"