Home Forums WoodMart support forum Can I set category images on title on PC but not in mobile?

Can I set category images on title on PC but not in mobile?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #405952

    diegobaronducis
    Participant

    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?

    #405954

    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

    #405955

    diegobaronducis
    Participant

    Yes, I need a CSS code to set all the titles styles like the “default” in mobile

    #406129

    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

    #406330

    diegobaronducis
    Participant

    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.
    #406537

    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

    #406556

    diegobaronducis
    Participant

    Hello!

    Ok!

    #406635

    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

    #406999

    diegobaronducis
    Participant

    Now it works great.

    Thanks so much!

    #407131

    You are welcome! We are here to help.

    Wish you a wonderful day!

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Can I set category images on title on PC but not in mobile?’ is closed to new replies.