• bisonbrah

    (@bisonbrah)


    Hi there I’m trying to replace the default black logo with a white alternative with js. Below is the snippet that used to work until recent wordpress updates… Please help!

    This link should show a white logo not black like the menu color (white)

    jQuery(document).ready(function($){
           //replace black logo with white logo
    	  // full urls in between the ticks
          var
          logodefault = 'https://sscreativestudio.com/wp-content/uploads/2015/11/logo.png',
          logowhite = 'https://sscreativestudio.com/wp-content/uploads/2015/11/logo-white.png';
    
          if ($('body').hasClass('label-white-header')) {
             $('img[src="' + logodefault + '"]').attr('src', logowhite);
             }
            }
          else {
             //default logo
             $('img[src="' + logowhite + '"]').attr('src', logodefault);
          }
           //end if label white header

    https://ww.wp.xz.cn/plugins/genesis-logo-uploader/

Viewing 1 replies (of 1 total)
  • benhadad

    (@benhadad)

    All I know is I get a Warning on WordPress 4.5.2 with Genesis 2.2.7

    Oh No!! You have custom_header activated in your functions.php. Open that file and remove:
    add_theme_support( ‘custom-header’ );

Viewing 1 replies (of 1 total)

The topic ‘Conditionally Replace Logo with Alt Logo’ is closed to new replies.