Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #100091
    RVgeeks
    Participant

    Hello 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

    #100096
    RVgeeks
    Participant

    Oh… 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!

    #100101
    Rad
    Moderator

    Hi 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.

    #100117
    RVgeeks
    Participant

    You 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!).

    #100127
    Christian
    Moderator

    Hey there,

    That doesn’t affect the title. The title gets the category name.

    Thanks.

    #100128
    RVgeeks
    Participant

    OK. Thanks!

    #100138
    Christian
    Moderator

    You’re welcome. 🙂

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