Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Store description
- This topic has 1 reply, 2 voices, and was last updated 4 years, 6 months ago by Sarmistha Chakraborty.
Viewing 1 reply thread
- AuthorPosts
- May 9, 2020 at 1:02 am #128583contact8732Participant
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
- May 9, 2020 at 1:07 pm #128761Sarmistha ChakrabortyMember
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.
- AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.