Tagged: x
-
AuthorPosts
-
June 26, 2016 at 5:37 am #1059942
MishoParticipantHi guys!
I realise this is a bit out of the scope of your support. But I already know which file to modify (i think), and I have a Child theme set up.
So the main Woocommerce shop page is handeled by woocommerce.php file that can be found in /wp-content/themes/x/framework/views/icon, for the Icon stack.
This is the contents of that file:
<?php // ============================================================================= // VIEWS/ICON/WOOCOMMERCE.PHP // ----------------------------------------------------------------------------- // WooCommerce page output for Icon. // ============================================================================= ?> <?php get_header(); ?> <div class="x-main full" role="main"> <div class="x-container max width offset-top offset-bottom"> <?php if ( x_is_shop() ) : ?> <header class="entry-header shop"> <h1 class="entry-title"><?php echo x_get_option( 'x_icon_shop_title' ); ?></h1> </header> <?php endif; ?> <?php woocommerce_content(); ?> </div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>This is the line of code found on The Grid’s official Documentation:
You just need to replace all the previous php code by this line of code: The_Grid('My Grid Name', true); // where true is for template modeDoes this mean that it is enough to somehow replace a part of the woocommerce.php file with the given line? If so, can you please tell me how?
Thank you!
June 26, 2016 at 5:38 am #1059946
MishoParticipantThis reply has been marked as private.June 26, 2016 at 6:17 am #1059989
ChristianModeratorHey Misho,
You will need to add your own archive-product.php template in themes\x\woocommerce. Basically, you will need to replace woocommerce_content() but that would affect your single product display also as it involves the single product loop. For details about the function, please see plugins\woocommerce\includes\wc-template-functions.php
Regretfully, this will involve custom development.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1059942 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
