So, I am trying to have a different logo show up for the sticky header, but when I do that and size to mobile it shows both logos.
For my CSS
.header-scrolled .logo > a > img { display: none !important; }
Here is what I have in my functions file:
/*
* adding sticky header and removing it for mobile
*/
add_filter(‘avf_logo’,’av_change_logo’);
function av_change_logo($logo)
{
if(wp_is_mobile() )
{
$logo = “http://bayside.augustus.co/wp-content/uploads/2017/03/website-logo-large-01.png”;
}
return $logo;
}
add_filter(‘avf_logo_subtext’, ‘kriesi_logo_addition’);
function kriesi_logo_addition($sub) {
$sub .= ‘‘;
return $sub;
}
Hey laurentbouzelmat,
Try this code in the General Styling > Quick CSS field:
@media only screen and (max-width: 430px) {
.subtext {
display:none;
}}
Best regards,
Mike
Mike, Thank you!