-
AuthorPosts
-
September 6, 2014 at 10:39 pm #100091
RVgeeksParticipantHello super-awesome X Theme Support!
I’m back for some more…
This time, I’m working in a local install of my live site (sorry, no URL to provide), experimenting with WooCommerce in the Integrity theme. I’ve let WooCommerce create it’s default pages, set up a couple of test products using just one Product Category (let’s say it’s “Plumbing”).
How can I change the meta/browser title for the main “Shop” page and for the Product Category pages? Right now they show “Product Archives” for the “Shop” page and “Plumbing Products Archives” for the “Plumbing” Product Category page. I’ve looked everywhere, but can’t seem to find where in the system I can control the page titles.
HELP! ;D
Thanks,
– John
September 6, 2014 at 10:49 pm #100096
RVgeeksParticipantOh… and while I’m asking… how can I change the sidebar for the Product Archive pages? I made a new sidebar and assigned it to the “Shop” page… but the default/standard sidebar shows once you drill down to a Product Category.
Thanks!
September 6, 2014 at 11:10 pm #100101
RadModeratorHi there,
Thanks for posting in.
You can name your archive titles for woocommerce at Admin > Products > Categories and find Archive Title input field.
If you wish to use same sidebar from Shop to your archive pages, then add this code at your child theme’s functions.php
add_filter( 'ups_sidebar', function ( $default_sidebar ) { $sidebars = get_option( 'ups_sidebars' ); foreach ( $sidebars as $id => $sidebar ) { if ( x_is_shop() || x_is_product_category() || x_is_product_tag() || x_is_product() ) { if ( array_key_exists( 'index-shop', $sidebar ) && $sidebar['index-shop'] == 'on' ) { return $id; } } } return $default_sidebar; }, 9999 );Hope this helps.
September 7, 2014 at 12:50 am #100117
RVgeeksParticipantYou can name your archive titles for woocommerce at Admin > Products > Categories and find Archive Title input field.
Does this also affect the Browser/Page title (the actual <title> tag in the <head> of the document)? Or just the display at the top of the archive page itself?If you wish to use same sidebar from Shop to your archive pages, then add this code at your child theme’s functions.php
Thanks! I’ll take a closer look at that tomorrow (I don’t currently have a child theme enabled, so I have to do that first!).September 7, 2014 at 1:20 am #100127
ChristianModeratorHey there,
That doesn’t affect the title. The title gets the category name.
Thanks.
September 7, 2014 at 1:21 am #100128
RVgeeksParticipantOK. Thanks!
September 7, 2014 at 2:06 am #100138
ChristianModeratorYou’re welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-100091 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
