• Resolved Chris_123

    (@chris_123)


    The default woocommerce sorting bar was not showing on the product archive page (Shop page) until i added this code in the funtions.php file :

    add_action(‘woocommerce_before_shop_loop’,’woocommerce_catalog_ordering’);

    However, now the title is not showing on the page and neither is the number of items after sorting (ie. There is no text saying: “Showing all 20 results” ) etc. How do i add back the title and just the default woocommerce layout?

    Any help would be hugely appreciated as i have tried several things but with no real success. Thanks so much in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey,
    can you post a link? Those things are showing in the demo.

    Are you hiding your page titles with css?

    Kadence Themes

    Thread Starter Chris_123

    (@chris_123)

    Hey – Sorry my stupid mistake, the titles were hidden with css.

    Then just a follow up question – How do i hide the titles on all pages except the Woocommerce shop page?

    Thanks so much for your help again! Much appreciated!

    Page is here if needed

    hannah

    (@hannahritner)

    Hey Chris_123,
    There isn’t an easy way to make that work. You would either need to edit a child theme or remove it from all other pages using css and page id’s.
    Looking at your shop page it looks like you’ve added a separate title under the page header?

    Hannah

    Hey,
    You can use this css to hide all but on product pages:

    .page-header {
        display: none;
    }
    .post-type-archive-product .page-header, .tax-product_cat .page-header{
        display: block;
    }

    Kadence Themes

    Thread Starter Chris_123

    (@chris_123)

    @hannah – Yes added a separate title to the shop page, but will remove it now that this works with css!

    @Kadence – Absolutely perfect! Thanks so much again Kadence!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Woocommerce default sorting bar and page header not showing for Shop page’ is closed to new replies.