Background image product page
-
Hello,
How to add a background image at the header level of a product page ?
For example here : https://cycle.oceanwp.org/product/rbd-1-3/I can’t find where I can add the image which is at the header level.
I tried to use this code but it doesn’t work, no image is loaded : https://docs.oceanwp.org/article/459-alter-the-page-header-background-image
I have created a folder ‘img’ in child folder and added my image. I have modified this line with my image name :$bg_img = get_stylesheet_directory_uri() . '/img/myimagename.jpg';
It works when I add image here :
Edit product > OceanWp settings > Title > Title Style > Background imageBut it’s not a good idea because I have to add the image background for all products…
Thanks for help !
- The topic ‘Background image product page’ is closed to new replies.