header by product

1.- Hi, i need diferent header by product page in woocommerce.

2.- this is my solution

.postid-3375 #Header_wrapper {
    background-repeat: no-repeat;
    background-position: center top;
    background-image: url("../../ppal/cenefas/calaverabicolor.png");
}

I change #header_wraper  depending of postid and insert diferent background-image , #header_wraper its a <div>,

Now the problem is the responsive option not work in all devices.

Any idea.

thanks


Comments

  • Hi,

    please send us url to page where you got a problem so we can have a look on it.

    Thanks!
  • edited February 2016
    This are 2 examples:



    ATTACH IMAGEimage
  • Ok. So you meant responsiveness of those backgrounds. We were wondering what exactly does not work so it's good to know what you mean now. However, background images are not responsive and never won't be. CSS background images and responsive mode are technically incompatible and never won't be unfortunately.
  • ok, the problem its only in mobile devices, any idea for personalization of this part in mobile device.

    Maybe with

    @media ....
  • maybe some code similar for this:

    @media screen and (min-width: 380px) {
    .postid-6225 #Header_wrapper {
        background-repeat: no-repeat;
        background-position: center top;
        background-image: url("../../ppal/cenefas/prueba_1.jpg");
    }
    }
  • If you want, you can try to play with custom css but we don't think so that it would be good idea. Your css is wrong and instead you should use something like below:
    @media only screen and (max-width: 767px) {
        .postid-6225 #Header_wrapper {
            background-image: url('#') !important;
            background-position: center top !important;
            background-repeat: no-repeat !important;
        }
    }
  • Hi, not working your recomendation, only work this:

    @media only screen and (max-width: 767px) {
        .postid-6225 #Header_wrapper {
            background-color:red;
        }
    }

    ANY IDEA....
  • For which page you used our css? Please give us the url of such page and we'll check.
  • edited February 2016
    Hi, thanks for your answer.

    1.- I add the css recomendation in admin option " custom css y js "

    2.- this is the code:
    @media only screen and (max-width: 767px) {
        .postid-6225 #Header_wrapper {
            background-image: url('../../ppal/cenefas/calaveranaranja.png') !important;
            background-position: center top !important;
            background-repeat: no-repeat !important;
        }
    }

    3.- Not work, this is the url:


    thanks
  • We noticed that you did one mistake. You left it it your message and we just missed that part. Instead of TOP you should use BOTTOM attribute for background. So the completely code should be:
    @media only screen and (max-width: 767px) {
        .postid-6225 #Header_wrapper {
            background-image: url('../../ppal/cenefas/calaveranaranja.png') !important;
            background-position: center bottom !important;
            background-repeat: no-repeat !important;
        }
    }
  • YEAHHHHH.

    Thanks

    fabulous technical support
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.