Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #474119

    Hi there,

    I want to have a different logo on the mobile version of the website I’m building. I tried the suggested code in functions.php but that doesn’t seem to change anything.

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
        if(wp_is_mobile() )
        {
        $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
        }
        return $logo;
    }

    I’m currently developing the site on a local XAMPP, could that be a problem?

    I also tried this code to add to my quick CSS as a test but doesn’t work either:

    ul#mobile-advanced {
    background-image: url(“http://d4e7wxbvl20c1.cloudfront.net/images.printconcept.com/blog/Tips_logo_design/logo1.jpg”) !important;
    background-repeat: no-repeat;
    background-position: right top;
    }

    What could be the problem?

    #474139

    ok, CSS problem is solved, leaves just the logo problem on mobile view

    #474141

    Hey!

    Yes, you would need to check your website on an actual mobile device to see different logo. Resizing browser window would show the same logo.

    Best regards,
    Yigit

    #474152

    ahhh :-)

    thank you, will test this as soon as possible

    #474154

    Hi!

    You are welcome. We will keep the thread open for you and it will be on hold until you reply. Please try it when you launch your website and let us know if it does not work so we can look into it :)

    Cheers!
    Yigit

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