Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Add "article tab" to Townhub theme
- This topic has 6 replies, 3 voices, and was last updated 4 years, 6 months ago by Sarmistha Chakraborty.
- AuthorPosts
- May 17, 2020 at 9:09 am #132069John ConnorParticipant
Hello,
I would like to add an article tab to the store profile and i am using to the Townhub theme. Can you help me?Also, How can I make the information from the added vendor fields display on the vendor store?
Is it possible to embed a video from the vendor on the vendor store with custom fields?
- May 17, 2020 at 10:00 am #132075John ConnorParticipant
Also, is there a way I can add the store short description to the displays on the store list?
I also want to add the categories that the stores product has onto the cards displayed on the store list. - May 18, 2020 at 2:52 pm #132529Sarmistha ChakrabortyMember
Hello,
I would like to add an article tab to the store profile and i am using to the Townhub theme. Can you help me?
>>Add this code to your child theme’s functions.phpadd_action( 'wcfmmp_store_article_template', function() { ?> <article id="post-<?php the_ID(); ?>" <?php post_class('post-article ptype-content'); ?>> <?php // Get the list of files $slider_images = get_post_meta( get_the_ID(), '_cth_post_slider_images', true); if( !empty($slider_images)&& townhub_get_option('blog_show_format', true ) && get_post_format( ) !== 'gallery' ){ ?> <div class="list-single-main-media fl-wrap"> <div class="single-slider-wrap"> <div class="single-slider fl-wrap"> <div class="swiper-container"> <div class="swiper-wrapper lightgallery"> <?php foreach ( (array) $slider_images as $img_id => $img_url ) { echo '<div class="swiper-slide hov_zoom">'; echo wp_get_attachment_image($img_id, 'townhub-featured-image','',array('class'=>'respimg no-lazy') ); echo '<a href="' . esc_url( wp_get_attachment_url( $img_id ) ) . '" class="box-media-zoom popup-image"><i class="fal fa-search"></i></a>'; echo '</div>'; } ?> </div> </div> </div> </div> </div> <?php }elseif(has_post_thumbnail( )){ ?> <div class="list-single-main-media fl-wrap"> <?php the_post_thumbnail('townhub-featured-image',array('class'=>'respimg') ); ?> </div> <?php } ?> </article> <?php }); add_action( 'wcfmmp_store_article_template_none', function() { ?> <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'townhub' ); ?></p> <?php get_search_form(); }); add_filter( 'wcfm_is_allow_store_articles', '__return_true' );
How can I make the information from the added vendor fields display on the vendor store?
>>Use this shortcode –[store_info data=""]
Ref:https://wclovers.com/forums/topic/display-the-store-logo-and-the-avatar-of-the-vendor/Is it possible to embed a video from the vendor on the vendor store with custom fields?
>>Unfortunetly as of now we don’t have option for this, you can add embed video in “store/shop description” field in vendor’s settings.is there a way I can add the store short description to the displays on the store list?
>>To display in custom data you can use below actions as per your requirement-do_action( 'wcfmmp_store_list_after_store_info', $store_id, $store_info ); do_action( 'wcfmmp_store_list_footer', $store_id, $store_info );
I also want to add the categories that the stores product has onto the cards displayed on the store list.
>>Can you explain little more your requirement. It’s not so clear to us.Thanks.
- May 19, 2020 at 5:50 am #132857ceo3Participant
How can I add this code that creates a new tab for articles in a standard way to any template? I need that code. Tanks.
- May 19, 2020 at 5:51 am #132859ceo3Participant
How can I add this code that creates a new tab for articles in a standard way to any template? I need that code.
- May 19, 2020 at 5:57 am #132860ceo3Participant
My theme is: North
https://themeforest.net/item/north-responsive-woocommerce-theme/9117256 - May 19, 2020 at 3:28 pm #133042Sarmistha ChakrabortyMember
Hello,
We have already replied you https://wclovers.com/forums/topic/request-custom-tabs-manager-in-vendor-store-page/in this thread. Please do not create multiple threads for same issue.
- AuthorPosts
- You must be logged in to reply to this topic.