I am creating simple image banners on the top of each category page of my site (add category header content)
I’d like to add an image to the top of the woocommerce shop base page.
When I insert an image in the page edit screen, it does not appear.
But Woocommerce 2.x can not display the shop base page excerpt (short description)
others normal page are all show their short description.
How would I go about doing that?
I can not find page template of the woocommerce shop page
Thanks!
http://wordpress.org/extend/plugins/woocommerce/
I found it!
Insert into the top of yourtheme/woocommercer/achive-product.php
//Check is_shop - Shop base page
// if True then Show Category Header Content of The first Product in Shop base Page
if (is_shop()) {
$args = array('taxonomy' => 'product_cat');
$product_categories = get_categories( $args );
$term_id = $product_categories[0]->term_id;
$content = get_term_meta($term_id, 'cat_meta');
if(isset($content[0]['cat_header'])){
echo do_shortcode($content[0]['cat_header']);
}
}
Hope to help someone! 🙂
Just thought I would share how I accomplished this so easily. On your shop page click “screen options” at the upper right of the page. Checkmark “Exerpt”. Scroll down to the Exerpt box. (there will be a new box to type in there.) Here you can type in the url to your image using html. Click update to update your page. Now you will have the image or banner you want under your shop title. I also removed the title “Shop” by simply removing it from my page title on the page where you edit your shop. Then I changed the menu option in menus back to the shop title. Hope this helps someone. It sure would have helped me to know this sooner.
Just create the id or class on the top where you want to add the image banner at the top and after that you just go to the admin dashboard and then.
Apperance-> custom css and
To add Banner Images for All WooCommerce Default Pages (Cart, Thankyou, Checkout, Shop), You have a setting page Like below to add or enable Banner display on pages. Also, add a link option for Banner click and an alt text field to add SEO purpose text.
Thanks for sharing some link it helps a lot. But I see there is another link with good reviews https://codecanyon.net/item/woocommerce-banner-images-products-post-categories/25545174