Home Forums WoodMart support forum Header and text colour in product page

Header and text colour in product page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #28674

    bennygordo
    Participant

    Hi,

    How can I have the header and text colour the same in all pages? it seems the product page changes it to dark text with white header.

    Thanks

    #28688

    Artem Temos
    Keymaster

    Hello,

    We are glad to know that you considered using WoodMart for your web-site. I hope you will be happy with it.

    Try to add the following code snippet to the functions.php file in the child theme

    function woodmart_custom_header_styles( $rules ){
        
        if( is_product() ) {
            $rules['header_color_scheme'] = array(
                'will-be' => 'light',
            );
            $rules['menu_color_scheme'] = array(
                'will-be' => 'light',
            );
        }
        
        return $rules;
    }
    add_filter( 'woodmart_get_specific_options', 'woodmart_custom_header_styles' );

    Kind Regards
    Xtemos

    #28719

    bennygordo
    Participant

    Thanks, but it didn’t work.

    Please have a look at my 2 links and see the difference.

    #28729

    Artem Temos
    Keymaster

    Did you add this code to the child theme and enabled it in Appearance -> Themes.

    #28734

    bennygordo
    Participant

    Ah, thats it thanks

    #28746

    Artem Temos
    Keymaster

    You are welcome!

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Header and text colour in product page’ is closed to new replies.