Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #620531

    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.

    #620654

    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

    #620689

    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%;
    }
    
    #620690

    Hi!

    Please try this and change the font size value to suit your design.

    #top h1.site-name {
        font-size: 26px!important;
    }

    Cheers!
    Vinay

    #620794

    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.

    #620855

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.