Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #770486

    Hello there, trying to get some help here with a problem that I’m experiencing.

    I’ve achieved showing another version of my logo in the header when the user scrolls down. I’m using this code in the child theme’s functions.php:

    add_filter('avf_logo_subtext', 'kriesi_logo_addition');
    function kriesi_logo_addition($sub) {
        $sub .= '<img src="http://sdsitetech.com/santiagomultisport/wp-content/uploads/2017/04/no_Icon_phase2-02.png"/>';
        return $sub;
    }

    and this code in quick CSS:

    .header-scrolled .logo > a > img { 
    display: none !important; 
    }

    Works great, except for that both of the logos show up when the browser’s width is small AND on mobile devices:
    Damn.

    I am trying to hide the subtext logo, the second one, when the browser width is small enough for it to show up, or just on mobile devices. Having trouble figuring out where to put confiditional if if(wp_is_mobile() )

    #770877

    Hey sdsitetechdotcom,

    Could you post a link to the site in question so that we can take a closer look please?

    Best regards,
    Rikard

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