Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* START || Change Logo for Spesific Page */
- function change_logo_for_spesific_page( $url ) {
- if ( is_single() ) { /* is Single Page */
- $url = 'https://upload.wikimedia.org/wikipedia/commons/thumb/2/2f/Google_2015_logo.svg/368px-Google_2015_logo.svg.png';
- }
- return $url;
- }
- /* Desktop Logo */
- add_filter( 'theme_mod_jnews_header_logo', 'change_logo_for_spesific_page' );
- add_filter( 'theme_mod_jnews_header_logo_retina', 'change_logo_for_spesific_page' );
- add_filter( 'theme_mod_jnews_header_logo_darkmode', 'change_logo_for_spesific_page' );
- add_filter( 'theme_mod_jnews_header_logo_retina_darkmode', 'change_logo_for_spesific_page' );
- /* Mobile Logo */
- add_filter( 'theme_mod_jnews_mobile_logo', 'change_logo_for_spesific_page' );
- add_filter( 'theme_mod_jnews_mobile_logo_retina', 'change_logo_for_spesific_page' );
- add_filter( 'theme_mod_jnews_mobile_logo_darkmode', 'change_logo_for_spesific_page' );
- add_filter( 'theme_mod_jnews_mobile_logo_retina_darkmode', 'change_logo_for_spesific_page' );
- /* Sticky Logo */
- add_filter( 'theme_mod_jnews_sticky_menu_logo', 'change_logo_for_spesific_page' );
- add_filter( 'theme_mod_jnews_sticky_menu_logo_retina', 'change_logo_for_spesific_page' );
- add_filter( 'theme_mod_jnews_sticky_menu_logo_darkmode', 'change_logo_for_spesific_page' );
- add_filter( 'theme_mod_jnews_sticky_menu_logo_retina_darkmode', 'change_logo_for_spesific_page' );
- /* END || Change Logo for Spesific Page */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement