Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Add Articles tab to store page
- This topic has 2 replies, 2 voices, and was last updated 5 years, 4 months ago by Jamie O’Reilly.
Viewing 2 reply threads
- AuthorPosts
- July 15, 2019 at 6:42 pm #72586Jamie O’ReillyParticipant
Hi I am using Storefront theme.
Please may I have the code to add the aricles tab to the store?
Thank you - July 16, 2019 at 3:58 pm #72688WCFM ForumMember
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
- August 12, 2019 at 6:29 pm #76299Jamie O’ReillyParticipant
Thank you
- AuthorPosts
Viewing 2 reply threads
- The topic ‘Add Articles tab to store page’ is closed to new replies.