Add "article tab" to Townhub theme

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!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate Add "article tab" to Townhub theme

Tagged: ,

Viewing 6 reply threads
  • Author
    Posts
    • #132069
      John Connor
      Participant

      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?

    • #132075
      John Connor
      Participant

      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.

    • #132529

      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.php

      add_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&rsquo;t find what you&rsquo;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.

    • #132857
      ceo3
      Participant

      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.

    • #132859
      ceo3
      Participant

      How can I add this code that creates a new tab for articles in a standard way to any template? I need that code.

    • #132860
      ceo3
      Participant
    • #133042

      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.

Viewing 6 reply threads
  • You must be logged in to reply to this topic.