Tagged: CSS
I added the site title To the header area by using `add_filter(‘avf_logo_subtext’, ‘kriesi_logo_addition’);
function kriesi_logo_addition($sub) {
$sub .= “<h1 class=’site-name’>” . get_bloginfo(‘name’) . “</h1>”;
return $sub;
}
`
however I’m unable to use the class name in my style.css file to change the size of the h1.
Help would be appreciated.
Hi rwwood!
Please use the below code in Enfold >General Styling > Quick CSS
h1.main-title.entry-title a {
font-size: 30px!important;
}
Cheers!
Vinay
Sorry. Wrong h1. It’s the one next to the logo that I can’t resize, even by using something like
h1.site-name {
font-size: 200%;
}
Hi!
Please try this and change the font size value to suit your design.
#top h1.site-name {
font-size: 26px!important;
}
Cheers!
Vinay
That works, but why doesn’t a percent value work? It works without the #top and without !important, so is there a reason to use them anyway?
Thanks.
Hey!
Percentage values for font-size are relative to the parent element’s hence it’s not working for you in this case. As an alternate solution you can use vw example font-size:4vw; This should work.
The #top and !important is to increase CSS specificity just incase if there are other default styles which might overwrite this style :)
Best regards,
Vinay