Would like that the Store logo dont change the dashboard logo

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate Would like that the Store logo dont change the dashboard logo

Viewing 3 reply threads
  • Author
    Posts
    • #39728
      acaua ferreira
      Guest

      HI Team,

      I dont want that the vendor store logo (added at: setting>store logo),
      replace the logo added by admin,Im talking about the logo that appear above dashboard menu.

      example of my company logo that i dont wanna be replaced by vendor’s logo
      https://funday.tur.br/wp-content/uploads/2018/12/store-logo.png

    • #39796
      WCFM Forum
      Keymaster

      Hi,

      Well, I understand your requirement.

      Please add this code for the purpose ->

      add_filter( 'wcfm_store_logo', function( $logo_image_url ) {
      	global $WCFM;
      	$logo = ( get_option( 'wcfm_site_logo' ) ) ? get_option( 'wcfm_site_logo' ) : '';
      	$logo_image_url = wp_get_attachment_image_src( $logo, 'thumbnail' );
      	
      	if ( !empty( $logo_image_url ) ) {
      		$logo_image_url = $logo_image_url[0];
      	} else {
      		$logo_image_url = $WCFM->plugin_url . 'assets/images/your-logo-here.png';
      	}	
      	return $logo_image_url;
      }, 50 );

      Thank You

    • #40271
      acaua
      Guest

      When this code is active, appear the logo url text, instead the image:
      https://funday.tur.br/wp-content/uploads/2018/12/logo-error.png

      I tried to replace ‘assets/images/your-logo-here.png’ from my logo url, but also did not worked.
      I tried also to add a new logo from zero, clear cache…

    • #40346
      WCFM Forum
      Keymaster

      Hi,

      Sorry my fault!

      Please use this revised code ->

      add_filter( 'wcfm_store_logo', function( $logo_image_url ) {
      	global $WCFM;
      	$logo = ( get_option( 'wcfm_site_logo' ) ) ? get_option( 'wcfm_site_logo' ) : '';
      	$logo_image_url = wp_get_attachment_image_src( $logo, 'thumbnail' );
      	
      	if ( !empty( $logo_image_url ) ) {
      		$logo_image_url = $logo_image_url[0];
      	} else {
      		$logo_image_url = $WCFM->plugin_url . 'assets/images/your-logo-here.png';
      	}
              $logo_image_url = '<a class="wcfm_store_logo_icon" href="'.get_permalink( wc_get_page_id( 'shop' ) ).'" target="_blank"><img src="' . $logo_image_url . '" alt="Store Logo" /></a>';
      	
      	return $logo_image_url;
      }, 50 );
Viewing 3 reply threads
  • The topic ‘Would like that the Store logo dont change the dashboard logo’ is closed to new replies.