• Hello
    I use OceanWP and Elementor to create simply page. Because page is in 2 languages I need 2 different headers and footers.
    Unfortunately I can’t change them on Woocommerce Archive Page and Single Product Page even I choose a different template LINK
    Probably Woocommerce is overwriting something, but I can’t find where is the problem and how I can solve it.
    Do you have any suggestions on how to make the selected template used, not the main one?
    Best regards
    Robert

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter pogoshow

    (@pogoshow)

    I add to functions.php this code, but nothing happend at page. Still at Single Products Page and at Archive Page I have Default Header

    function prefix_header_style($style) {
        if ( is_woocommerce() || is_product_category() || is_product() ) {
            $style = 'custom';
        }
        return $style;
    }
    add_filter('oceanwp_header_style','prefix_header_style');
    • This reply was modified 4 years, 6 months ago by pogoshow.
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Header and Footer on woocommerce Archive and Single Page’ is closed to new replies.