• Resolved urbannerd

    (@urbannerd)


    Ive have been trying to add a banner above my woo commerce shop.

    I read that I had to add it in the content-product.php file before the
    store loop using just html
    <img src='https://thepreciselife.com/wp-content/uploads/2013/IMG_2793cropped.jpg'>

    but when I do, my woocommerce product quick view plugin reads it as a
    product and I can “quick view” it.

    Im just not sure exactly where to add the code for the image.

    Any help is greatly appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter urbannerd

    (@urbannerd)

    just so the solution is archived on here for anyone else who
    encounters this problem….

    I had to go to the woocommerce template files
    and in the archive-product.php file I added the basic image html
    from the first post in this section

    <?php
    		/**
    		 * woocommerce_before_main_content hook
    		 *
    		 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
    		 * @hooked woocommerce_breadcrumb - 20
    		 */
    		do_action('woocommerce_before_main_content');
    	?>
    <img src='https://thepreciselife.com/wp-content/uploads/2013/IMG_2793cropped.jpg'>
    		<?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
    
    			<h1 class="page-title"><?php woocommerce_page_title(); ?></h1>
Viewing 1 replies (of 1 total)
  • The topic ‘Add banner above WooCommerce Shop Items’ is closed to new replies.