Created
July 14, 2016 11:48
-
-
Save farookibrahim/33cb3be12ea87bcc3ffb1bfa81c26863 to your computer and use it in GitHub Desktop.
How to use separate logo for MyBag Home v2?
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
| if ( ! function_exists( 'mybag_custom_home_v2_logo' ) ) { | |
| function mybag_custom_home_v2_logo( $logo ) { | |
| if( is_front_page() ) { | |
| $logo = '<img alt="logo" src="http://www.example.com/logo.png" />'; | |
| } | |
| return $logo; | |
| } | |
| } | |
| add_filter( 'mybag_site_header_logo', 'mybag_custom_home_v2_logo', 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment