Category Page / Custom Header

Hi there,

I’m using Pro’s Header Builder. I’m wondering if there’s a way to add custom headers to category pages.

Thanks!

Hello @Pbalazs89,

Thanks for writing in!

As of today you can’t assign Custom header to a category page in header builder. I checked our internal issue tracker and it’s already added over there and our developers are working to integrate the same. Unfortunately, I am not in a position to share ETA for the same but rest assured we are working towards having header builder for category pages too.

Having said that you can take a look at the solution shared in following tutorial:

Thanks for understanding.

Hi there,

Thanks for the link. 2 quick questions:

  1. Is a custom header not available on the main shop page either? I seem the recall it used to be, but now it’s not showing up as an option.

  2. Thanks for the link, I checked it. However, which part of the code do I have to update to assign a specific header to these pages? (How can I reference a given header of PRO)

Thanks!

Hey @Pbalazs89,

1. If you’re referring to the default product archive page (shop) of WooCommerce then no. You must create a Shop page under the page post type and then assign that page in WooCommerce > Settings > Products > Shop.

The Shop page will by then be available in the assignment area.

2. Please refer to the screenshot below for the changeable parts in the code. If you need more conditions, duplicate the elseif block. Please consult with a developer if you’re not sure how to proceed.

In case you don’t know what a WordPress Conditional Tag is, please read this documentation: https://codex.wordpress.org/Conditional_Tags.

WooCommerce has its own set of conditional tags too. See https://docs.woocommerce.com/document/conditional-tags/

For the Pro Header ID part, you can get the Header ID when you edit the header. It’s in the last part of the URL. See below.

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.