Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #44007
    Alexander
    Keymaster

    Hi Jameson,

    I’m sorry it’s still not working for you. Can you try this version instead? It’s using a different hook this time.

    add_action('woocommerce_before_shop_loop','custom_shop_before_main_content');
    
    function custom_shop_before_main_content() { ?>
      <!--your banner here-->
    <?php
    }
    #44157
    Jameson
    Participant

    Hi Support,

    AHHHHHHH that’s so close! So…tantalizingly close! That covers the main store content, but still doesn’t place it above the sidebar. What should I do now?

    #44487
    Rad
    Moderator

    Hi Jameson,

    This will only place your content before products loop, if you need to show it on top of your container below masthead, then you could edit your header’s template instead.

    1. Duplicate your woocommerce template /x/framework/views/integrity/woocommerce.php into your child theme /x-child-integrity-light/framework/views/integrity/woocommerce.php
    2. Edit your new woocommerce.php to make it look like this :

    <?php
    
    // =============================================================================
    // VIEWS/RENEW/WOOCOMMERCE.PHP
    // -----------------------------------------------------------------------------
    // WooCommerce page output for Renew.
    // =============================================================================
    
    ?>
    
    <?php get_header(); ?>
    
      <div class="x-container-fluid max width offset cf">
       
       <!--your banner here-->
    
        <div class="<?php x_renew_main_content_class(); ?>" role="main">
    
          <?php woocommerce_content(); ?>
    
        </div> <!-- end .x-main -->
    
        <?php get_sidebar(); ?>
    
      </div> <!-- end .x-container-fluid.max.width.offset.cf -->
    
    <?php get_footer(); ?>
    

    Hope this helps.

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