Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Would like that the Store logo dont change the dashboard logo
- This topic has 6 replies, 2 voices, and was last updated 5 years, 3 months ago by .
- AuthorPosts
- December 11, 2018 at 8:52 pm #39728acaua ferreiraGuest
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 - December 12, 2018 at 7:21 am #39796WCFM ForumKeymaster
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
- December 17, 2018 at 5:17 pm #40271acauaGuest
When this code is active, appear the logo url text, instead the image:
https://funday.tur.br/wp-content/uploads/2018/12/logo-error.pngI 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… - December 19, 2018 at 7:18 am #40346WCFM ForumKeymaster
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 );
- AuthorPosts
- The topic ‘Would like that the Store logo dont change the dashboard logo’ is closed to new replies.