Header Page problem
-
Hello,
I am using this function for change category product
function my_page_header_bg_img( $bg_img ) {
if ( is_product_category( ‘friends’ ) ) {
$bg_img = get_stylesheet_directory_uri() . ‘https://joaquinm.sg-host.com/wp-content/uploads/2020/03/wp2001489.jpg’;
}// Retrun
return $bg_img;}
add_filter( ‘ocean_page_header_background_image’, ‘my_page_header_bg_img’ );But the image doesn′t show. In inspector CSS by Chrome I can see this rute url( https://joaquinm.sg-host.com/wp-content/themes/oceanwp/uploads/2020/03/wp2001489.jpg ) !important
Where is the problem? I don′t understand this problem
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Header Page problem’ is closed to new replies.