• Resolved anusha75

    (@anusha75)


    Hi I used this plugin on oceanwp to add a custom header hook on a woocommerce product category page. But it doesnt work, or rather i cannot see how to use it, once it is placed.
    this is what they recommended I use in child functions.php. But I do not know how to use child theme and am terrified i will lose everything if there is an error. Can someone advise what to do?

    function prefix_header_style($style) {
    if ( is_product_category() ) {
    $style = ‘custom’;
    }
    return $style;
    }
    add_filter(‘oceanwp_header_style’,’prefix_header_style’);

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Hi @anusha75,

    You should be able to install this plugin, create a new snippet, activate it, and then you’re done. No need to mess around with child themes.

    Unfortunately, I can’t speak to the validity of the snippet itself as I don’t use the OceanWP theme, but if you received it from the theme developers then that seems like a very reliable source.

Viewing 1 replies (of 1 total)
  • The topic ‘OCEANWP’ is closed to new replies.