Hide Store List Banner

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!

Viewing 1 reply thread
  • Author
    Posts
    • #34567
      vinnycampos
      Participant

      Hi, I want to hide the Store List Banner, what is the code?

      Attachments:
      You must be logged in to view attached files.
    • #34769
      WCFM Forum
      Keymaster

      Hi,

      Here is your code for the purpose –

      function wcfm_marketplace_settings_fields_2410_general( $general_fields, $vendor_id ) {
      	if( isset( $general_fields['list_banner_type'] ) ) {
      		$general_fields['list_banner_type']['class'] = 'wcfm_custom_hide';
      		$general_fields['list_banner_type']['label_class'] = 'wcfm_custom_hide';
      	}
      	if( isset( $general_fields['list_banner'] ) ) {
      		$general_fields['list_banner']['class'] = 'wcfm_custom_hide';
      		$general_fields['list_banner']['label_class'] = 'wcfm_custom_hide';
      	}
      	if( isset( $general_fields['list_banner_video'] ) ) {
      		$general_fields['list_banner_video']['class'] = 'wcfm_custom_hide';
      		$general_fields['list_banner_video']['label_class'] = 'wcfm_custom_hide';
      	}
      	return $general_fields;
      }
      add_filter('wcfm_marketplace_settings_fields_general', 'wcfm_marketplace_settings_fields_2410_general', 50, 2 );

      You may add this CSS to hide banner from store list page –

      #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-content .store-info {
        visibility: hidden;
        height: 70px !important;
      }

      Thank You

Viewing 1 reply thread
  • The topic ‘Hide Store List Banner’ is closed to new replies.