Last active
May 25, 2022 13:51
-
-
Save runezero/1ea6f1fb04d5ea61b5386ef1d7deb3f9 to your computer and use it in GitHub Desktop.
[Change mobile logo] Change the mobile logo in the header on page load #enfold
This file contains hidden or 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
| add_filter('avf_logo','av_change_logo'); | |
| function av_change_logo($logo) { | |
| if(wp_is_mobile()) { | |
| $logo = "https://url-to-logo.com/path"; | |
| } | |
| return $logo; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment