Page header on specific page is different from the rest [closed]

Joey,

When you have a child theme you have the ability to take specific templates from the parent theme, copy the file into your child theme and then make edits. The template file in your child theme will override what the one in the parent theme is doing.

Using WooCommerce as an example, if we look into your parent theme you’ll want to find a file called archive-product.php. That’s the default name unless your parent theme has named it something else. So you’d look for that file.

In that file you can actually see a note:

/**
 * The Template for displaying product archives, including the main shop page which is a post type archive
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/archive-product.php.

So what you want to do is take that file from the parent theme, copy it into your child theme but make sure the file structure is the same. So if your theme has:

theme-folder/templates/woocommerce/archive-product.php

You’ll want to copy it to:

childtheme-folder/templates/woocommerce/archive-product.php

Once you have the file in there, you open it up and you look for the following bit of code:

get_header( 'shop' );

Now, your first effort would be to change this to:

get_header();

See if that has the desired effect you want.

One thing to keep in mind is that IF there’s an update to a plugin, like WooCommerce for example, or an update to the parent theme, you’ll want to check the changelog to see if any of the changes apply to that specific template. If they do, copy the whole thing over and make the change again. As this is a relatively easy and straightforward change it shouldn’t be too big a deal to just copy the whole thing and change the get_header() line.

Hope you get it all working.