Store description

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
    • #128583
      contact8732
      Participant

      Hi, on Vendor Store pages, what is code to display Store description at top of page (above the products area), and not in the Store sidebar.

      Thanks

    • #128761

      Hello,

      To display “Shop Description” before products in vendor store page,

      add_action('wcfmmp_store_before_products','add_shopdescription_before_products',10);
      function add_shopdescription_before_products($vendor_id){
      	$store_user        = wcfmmp_get_store( $vendor_id );
      	$wcfm_shop_description = apply_filters( 'wcfmmp_store_about', apply_filters( 'woocommerce_short_description', $store_user->get_shop_description() ), $store_user->get_shop_description() );
      	?>
      	<div class="wcfm-store-about">
      		<div class="wcfm_store_description" ><?php echo $wcfm_shop_description; ?></div>
      	</div>
      	<?php
      }

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

      Thanks.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.