Can I set category images on title on PC but not in mobile?
-
I would like to use the individuals category images on titles in PC (setting this on category attributes).
But in mobile, I would like to use always the default title style (set up on the woodmart theme settings)
Can I do it?
Hello,
You can set individual images in every category: https://xtemos.com/docs-topic/product-category-menu/
Then you can set the same image for all the categories on mobile using custom CSS. Let us know if you need help with CSS code.
Best Regards
Yes, I need a CSS code to set all the titles styles like the “default” in mobile
Hello,
Please add this code to the Theme Settings > Custom CSS > Mobile:
body.tax-product_cat .page-title-default {
background-size: cover;
background-position: center center;
background-image: url(https://z9d7c4u6.rocketcdn.me/wp-content/uploads/2021/04/blog-title-bg6-opt.jpg);
}
You need to replace the image URL to yours. If the code does not work, please provide the page URL. I will correct.
Best Regards
It doesn’t work.
I still see the category images on mobile instead of the title set in CSS.
Attachments:
You must be
logged in to view attached files.
Hello,
Sorry for the delay. Your site is under construction, I cannot view it. Could you kindly provide site admin access? Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.
Best Regards
Hello,
Please use this code:
body .page-title-default {
background-size: cover;
background-position: center center;
background-image: url(https://z9d7c4u6.rocketcdn.me/wp-content/uploads/2021/04/blog-title-bg6-opt.jpg)!important;
background-repeat: repeat;
}
If you have any questions please feel free to contact us.
Best Regards
Now it works great.
Thanks so much!
You are welcome! We are here to help.
Wish you a wonderful day!
The topic ‘Can I set category images on title on PC but not in mobile?’ is closed to new replies.