#134996 Custom header on product page single

Landing Forums JupiterX WordPress Theme Custom header on product page single

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
  • Six Pixels

    Hi there,

    My site has 2 custom headers : one for the classic site, one for the shop

    In the shop, I succeeded in putting my custom header on every page of the shop. But not on the product page !

    Can’t find how to assign a custom header on product page.

    Please tell me.


    Amir Rather Support Team

    Hello There

    The Product Page will show the Header you set Globally in Customize > Header

    This Page doesn’t have the Post Options since I assume it is an Archive Page on your site, I could verify this only when I see the page though.


    Six Pixels



    My whole site have this header : https://adapei-varmed.fr/

    My whole shop must have this header :

    Home shop : https://adapei-varmed.fr/boutique-2/
    Product page has the wrong header : https://adapei-varmed.fr/produit/jexiste-je-veuxabonnement-annuel-2021/
    Cart page and any chekout page is ok : https://adapei-varmed.fr/panier/

    My only problem deals with the product page header  : do you have any suggestion to have the right header on product page ?

    Thanks in advance.




    Amir Rather Support Team

    Could you please send over your administrative WordPress access(in a private reply) so we can check what might be going on in the backend? We’ll need permission to debug this.

    Six Pixels
    This reply has been marked as private.
    Alexander Hutsol Support Team


    In this case you need to set the “Header WooCommerce” header template as global header in Customizer > Header, and then set “Header Template” as a custom one in the Post Options section for each other pages which are not shop related https://i.imgur.com/t3NwejX.png



    Six Pixels

    Unfortunately, I have hundreds of pages with the global header and ONLY ONE type of product page to set with woocommerce.

    This way, this solution isn’t usable.

    Could you give me a clue to override a hook in “functions.php” with something like

    “if (is_product_page) header = header_woocommerce”

    Thanks in advance for your help

    Mohsin Al-Rabieai Support Team

    Hi there,

    This snippet may do the trick for you:

    add_action('init', 'customHeaderForProductPages');
    function customHeaderForProductPages(){
        add_filter( 'theme_mod_jupiterx_header_template', function($header) {
        	if ( function_exists( 'WC' ) ) {
    			if (is_product() ){
    		    	return 137; //ID of your desired custom header template
    		return $header; 

    You need to change the 137 with the desired custom header template ID. You can get the ID from Elementor -> Templates.

    Soon there will be options to customize the header for different post types and conditions in Jupiter X. After that, you won’t need any snippet to display the headers with conditions.

    Hope it helps 🙂


    Six Pixels
    This reply has been marked as private.
    Amir Rather Support Team
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic.