-
AuthorPosts
-
May 13, 2014 at 1:58 pm #44007
AlexanderKeymasterHi 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 }May 13, 2014 at 10:24 pm #44157
JamesonParticipantHi 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?
May 14, 2014 at 7:14 pm #44487
RadModeratorHi 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-38250 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
