This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Header on WooCommerce pages

  • Creator
    Topic
  • #25998
    cfunkyk
    Participant

    How do I tell WooCommerce to use the transparent header in it’s various views (archive, single, cart, etc).

    By default it is using my standard header.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #25999
    cfunkyk
    Participant

    Or maybe a different approach:

    Is there a way to set the transparent header as the default header, rather than having to set it on every page?

    #26000
    Jason Bobich
    Keymaster

    Hi,

    You’d filter suck_up of the themeblvd_frontend_config array —

    function my_frontend_config( $config ) {
    
        if ( function_exists('is_woocommerce') && is_woocommerce() ) {
            $config['suck_up'] = true;
        }
    
        return $config;
    }
    add_filter('themeblvd_frontend_config', 'my_frontend_config');

    https://docs.woothemes.com/document/conditional-tags/

    #26001
    Jason Bobich
    Keymaster

    Is there a way to set the transparent header as the default header, rather than having to set it on every page?

    Would be forced on every page with no way to change it in the admin…

    function my_frontend_config( $config ) {
        $config['suck_up'] = true;
        return $config;
    }
    add_filter('themeblvd_frontend_config', 'my_frontend_config');
    #26008
    cfunkyk
    Participant

    Great – is there documentation about themeblvd_frontend_config somewhere?

    #26013
    Jason Bobich
    Keymaster

    Hm, nope I don’t think so. The best thing to do is just to simply look at it in the theme. You would just open the theme in a text editor and search for “themeblvd_frontend_config” and find where you see apply_filters( 'themeblvd_frontend_config' .... But I’ll save you an extra second and tell you it’s currently here:

    /framework/includes/class-tb-frontend-init.php, lines 234 – 589

    #26014
    cfunkyk
    Participant

    Thanks Jason!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.