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

    Hi guys,

    how can i set the different Logo on mobile devices into the center? I have this code in the functions.php

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
        if(wp_is_mobile() )
        {
        $logo = ".../wp-content/uploads/2017/04/logo-mobile.png";
        }
        return $logo;
    }
    • This topic was modified 7 years, 7 months ago by Micha66.
    #786199

    Hey Micha66,

    Try adding this css code in Quick CSS (located in Enfold > General Styling):

    @media only screen and (max-width:767px) {
      .responsive #top .logo {
        width: 100%;
      }
    
      .responsive .logo img {
        margin: 0 auto;
      }
    }

    Hope this helps :)

    Best regards,
    Nikko

    #786209

    Wow, Nikko, that works, thank you ;-)

    #786229

    Hi,

    Glad we could help. Let us know if you need more assistance regarding this topic or if we can close it :)

    Best regards,
    Nikko

    #786274

    Please close ist, thanks.

    #786303

    Hi,

    You’re welcome. Thanks for using Enfold :)

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Center different Logo on mobile’ is closed to new replies.