Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1059942
    Misho
    Participant

    Hi 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 mode

    Does 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!

    #1059946
    Misho
    Participant
    This reply has been marked as private.
    #1059989
    Christian
    Moderator

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

  • <script> jQuery(function($){ $("#no-reply-1059942 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>