• hello,
    i have use this code for change header on site

    function my_homepage_header_style( $style ) {
    
    	// Return the transparent header style
    	if ( is_front_page() ) {
    		$style = 'custom';
    	}
    
    	// Return
    	return $style;
    
    }
    add_filter( 'ocean_header_style', 'my_homepage_header_style' );

    however, I want it to select a particular template from library that I have created.

    is that possible?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    SOrry but not getting what exactly you want to achieve. can you please explain more?

    Do you mean to set the custom header different for different pages?

    Thread Starter j007

    (@j007)

    Do you mean to set the custom header different for different pages?

    Yes, I would like to use different personalized headers

    i’m sorry for my english. i use a translator

    Hello,

    Not an issue.

    You can edit the page(not with elementor), scroll down and go to the header tab in the Oceanwp settings section.

    From here select the header style as per need and these settings will apply for that selected page only.

    Thread Starter j007

    (@j007)

    Hi there,
    I already know about the sides. however, i would like to display this in special woocommerce categories or products. can you change the code snippet so that it is possible?

    Hello,

    To do it, try to use ocean page level settings. Edit the page(not with elementor) scroll down at the header tab in the oceanwp settings section, select the header style, or select a template if you selected custom header. This setting will apply to that page only.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Altering custom Header Style by Page’ is closed to new replies.