Add Articles tab to store page

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!

Tagged: ,

Viewing 2 reply threads
  • Author
    Posts
    • #72586
      Jamie O’Reilly
      Participant

      Hi I am using Storefront theme.

      Please may I have the code to add the aricles tab to the store?
      Thank you

    • #72688
      WCFM Forum
      Keymaster

      Hi,

      Please add this code to child theme’s functions.php –

      add_action( 'wcfmmp_after_store_article_loop_start', function( $store_id, $store_info ) {
      	echo '<div id="primary" class="content-area">
      		<main id="main" class="site-main" role="main">';
      }, 50, 2);
      
      add_action( 'wcfmmp_store_article_template', function() {
      	get_template_part( 'content', 'post' );
      });
      
      add_action( 'wcfmmp_store_article_template_none', function() {
      	get_template_part( 'content', 'none' );
      });
      
      add_action( 'wcfmmp_before_store_article_loop_end', function( $store_id, $store_info ) {
      	echo '</div></div>';
      }, 50, 2);
      
      add_filter( 'wcfm_is_allow_store_articles', '__return_true' );

      In case you do not have child theme then add code suing this plugin – https://wordpress.org/plugins/code-snippets/

      Thank You

    • #76299
      Jamie O’Reilly
      Participant

      Thank you

Viewing 2 reply threads
  • The topic ‘Add Articles tab to store page’ is closed to new replies.