Tagged: x
-
AuthorPosts
-
March 9, 2017 at 9:33 pm #1401451
demonboyParticipantHi,
I want to add a background image to my shop at http://www.followtheboat.com/shop. I have been able to do this with my blog, for which I use:
.blog .site { background-image: url("http://xxx.com/wp-content/uploads/2015/08/sailboat-thailand-tropical-holiday-esper.jpg"); overflow-y: hidden ! important; overflow-x: hidden ! important; background-color: #f8f8f8; /*background-size: cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover;*/ background-size: contain; background-repeat: no-repeat; background-position: top left; }I was hoping that by just replacing ‘blog’ with ‘shop’ this might do the trick, but it doesn’t. I know this one’s simple, but how do I achieve it?
Thanks in advance.
March 10, 2017 at 1:01 am #1401589
RupokMemberHi there,
You need to use .woocommerce.archive as selector instead of .blog selector. So it should be :
.woocommerce.archive .site { background-image: url("http://xxx.com/wp-content/uploads/2015/08/sailboat-thailand-tropical-holiday-esper.jpg"); overflow-y: hidden ! important; overflow-x: hidden ! important; background-color: #f8f8f8; /*background-size: cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover;*/ background-size: contain; background-repeat: no-repeat; background-position: top left; }You can also set background image for a page from Page Settings. So I’d suggest to do that instead of applying CSS.
Cheers!
March 10, 2017 at 1:54 am #1401632
demonboyParticipantThank you!
March 10, 2017 at 1:56 am #1401634
RupokMemberYou are welcome!
Feel free to let us know if you face any other issue. We’ll be happy to assist you.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1401451 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
