• Page is in development so I cannot share, but the issue is this:

    The transparent header is activated via Customize > Appearance > Header settings. It works beautifully on the whole site, and I see where I can edit the settings on individual pages as desired.

    But I can’t remove it from my Search Results page, or other archive-type templates. So I end up with a white page and invisible white logos/nav.

    Suggestions? Fixes?

    I do have Ocean Extra installed.

    • This topic was modified 6 years, 8 months ago by getblanc.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Add the below code to the fucntions.php file of the oceanwp child theme to do it –

    function prefix_header_style($style) {
    
        if ( is_archive() || is_search() ) {
            $style = 'minimal';
        }
        return $style;
    }
    add_filter('oceanwp_header_style','prefix_header_style');

    You can choose a style from the minimal, transparent, top, full_screen, center, medium, vertical, custom.

    Thread Starter getblanc

    (@getblanc)

    Thanks for your reply. I tried this and it doesn’t seem to make a difference…

    You can see the results page live here. I tried both minimal and medium in the functions.php file. I’m not very versed in PHP, so maybe I put it in there wrong?

    Have you added it to the child theme’s functions.php file? It should work.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Transparent header issue on archive templates’ is closed to new replies.