Last active
May 24, 2018 16:20
-
-
Save landbryo/437c56f92971646172e0614b94535603 to your computer and use it in GitHub Desktop.
Adds a mobile logo for Enfold. Logo only displays on mobile devices.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////// | |
// MOBILE LOGO // | |
///////////////// | |
add_filter('avf_logo','av_change_logo'); | |
function av_change_logo($logo) { | |
if(wp_is_mobile()) { | |
$logo = get_stylesheet_directory_uri() . '/img/mobile-logo.png'; | |
} | |
return $logo; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment