hi guys, i have put a black logo for mobile on this page with css but the logo is looking distorted. I can’t seem to figure out how to adjust it with the css. can you help?
Thanks so much. Here’s the code i entered:
@media only screen and (max-width: 767px) {
.page-id-349 .logo a {
background: url(url here) center center no-repeat !important;
background-size: contain;
height: auto !important;
width: auto;
}
}
following up thanks!
Hi,
Sorry for the late reply, we have a filter for this, try removing your css and add this code to the end of your functions.php file in Appearance > Editor:
add_filter('avf_logo','av_change_logo');
function av_change_logo($logo)
{
if(is_page(349) && wp_is_mobile())
{
$logo = "https://your-domain.com/wp-content/uploads/2020/04/futuri-logo-.png";
}
return $logo;
}
be sure to adjust the URL for the logo.
Best regards,
Mike
thank you!!
Hi,
Glad we were able to help, we will close this now. Thank you for using Enfold.
For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)
Best regards,
Mike