Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #360491

    Hi,
    How can I add my own logo + the site title in the header? Similar to the logo in the header of the support forum here, but not having the site title disappear on shrink.
    Thanks.

    #360785

    Hey woeph!

    Please add following code to Functions.php file in Appearance > Editor and post the link to your website

    add_filter('avf_logo_subtext', 'kriesi_logo_addition');
    function kriesi_logo_addition($sub) {
        $sub .= "Company Name";
        return $sub;
    }

    Cheers!
    Yigit

    #361213
    This reply has been marked as private.
    #361313

    Hey!

    Please add this on Quick CSS:

    #top .av_header_transparency.av_alternate_logo_active .logo a > img {opacity: 1; filter: alpha(opacity=100); }
    strong.logo, .logo a { overflow: visible; }
    span.subtext { position: absolute; left: 230px; top: 0; color: white; width: 100%; }

    Best regards,
    Ismael

    #361903

    Hey Ismael,

    Thanks for the code, it helped to an extent. I’d like to enable this to work with the shrinked header and it’s also messed up on mobile. For the record, I’m using an SVG logo and the full code is

    /* Adjustments for SVG logo */
    .logo img {
    width: 100%;
    }
    
    @media only screen and (max-width: 480px) {
    .responsive .logo a, .responsive .logo img { max-width: 80%; }}
    
    /* Logo + Text */
    #top .av_header_transparency.av_alternate_logo_active .logo a > img {opacity: 1; filter: alpha(opacity=100); }
    strong.logo, .logo a { overflow: visible; }
    span.subtext { position: absolute; left: 230px; top: 0; color: white; width: 100%; }
    #362407

    Hi!

    Please add following code to Quick CSS as well

    @media only screen and (max-width: 768px) {
    span.subtext { left: 63%; }}

    Edit: I cannot see any issues when this is used with shrinking header. Have you figured it out already? If not, please post a screenshot of the issue

    Best regards,
    Yigit

    • This reply was modified 10 years, 5 months ago by Yigit.
    #362658

    Done some edits, it’s sorted now. Thanks guys!

    /* Adjustments for SVG logo */
    .logo img {
    height: 100%;
    }
    
    @media only screen and (max-width: 767px) {
    .responsive .logo img {height: 100% !important;}}
    
    /* Subtext */
    #top .av_header_transparency.av_alternate_logo_active .logo a > img {opacity: 1; filter: alpha(opacity=100); }
    strong.logo, .logo a { overflow: visible; }
    span.subtext { position: absolute; left: 120%; top: 0; color: white; width: 100px; font-size: 16px; font-weight: 600; }
    
    @media only screen and (max-width: 767px) {
    span.subtext { left: 100px; }}
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Custom Logo + Site title’ is closed to new replies.