Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Change background colour of blog
New Landing › How can we help? › Themeforest Theme Support › Dante › Change background colour of blog
- This topic has 17 replies, 4 voices, and was last updated 8 years by David Martin – Support.
-
Posted in: Dante
-
July 21, 2016 at 4:57 pm #283034
Hi there,
Is it possible to help me with changing the background colour for the blog page: http://www.varrojoanna.com/thoughts/
I have tried the below code but it did not work. I am not able to locate the class of the content wrapper.
/* THOUGHTS PAGE STYLING */
.page-content clearfix {
background:#fff !important;
padding: 50px !important;
border: 3px solid #f7f7f7;
}Thank you,
Joanna
July 21, 2016 at 5:01 pm #283035Hi,
Try this one instead
.container { background:#fff !important; padding: 50px !important; border: 3px solid #f7f7f7; }
-Rui
July 21, 2016 at 5:55 pm #283057Hi there,
No, this one don’t work. It makes whole container white (please see on screenshot) and I would like just the posts list container (excluding sidebar) to have white BG like I have on the single post pages http://www.varrojoanna.com/weekly-colours-inspiration-berries-green-pink-orange-yellow/
It also makes white the container on other pages and I would like to influence only the blog page.
Thanks,
Jo
Attachments:
You must be logged in to view attached files.July 22, 2016 at 7:31 am #283107Hi,
Your website is down as i checked many times.
Thanks
MohammadJuly 22, 2016 at 7:48 am #283110Hi there,
Here all works fine. Please find attached the screenshot. What error you are receiving?
Jo
Attachments:
You must be logged in to view attached files.July 22, 2016 at 8:18 am #283117Your initial code was almost correct, try this one.
.page-content.clearfix { background:#fff !important; padding: 50px !important; border: 3px solid #f7f7f7; }
-Rui
July 22, 2016 at 9:51 am #283137Hi there,
That worked but unfortunately it influenced all the pages (Please see on the screenshot). Is there a way to influence only the blog page?
Thank you
Joanna
Attachments:
You must be logged in to view attached files.July 22, 2016 at 10:17 am #283149Hi,
Replace last code with this code:-/*Just change page id 2 with your blog page id*/ .page-id-2 .page-content.clearfix { background:#fff !important; padding: 50px !important; border: 3px solid #f7f7f7; }
Thanks
MohammadJuly 22, 2016 at 10:22 am #283150Hi there,
Super, that worked now.
Thank you,
Joanna
July 22, 2016 at 10:26 am #283154I forgot about that specification. Thanks Mohammad.
-RuiJuly 22, 2016 at 12:52 pm #283262Hi there,
I have tried to do the same thing with this page: http://www.varrojoanna.com/shop
I added exact same code with just different page id but it did not work./* SHOP PAGE BACKGROUND*/
.page-id-19 .page-content.clearfix {
background:#fff !important;
padding: 50px !important;
border: 3px solid #f7f7f7;
}I also tried with the class: .col-sm-9.clearfix
Any idea what am I doing wrong, with this page?
Thank you,
Joanna
July 22, 2016 at 2:32 pm #283309Try the code below that is specific to the shop page.
.post-type-archive-product .page-content.clearfix{ background:#fff !important; padding: 50px !important; border: 3px solid #f7f7f7; }
-Rui
July 22, 2016 at 2:43 pm #283312Hi there,
Super, that worked out! Any idea why my products are flying around instead of being in some column grid? Attached on the screenshot.
Thanks,
Jo
Attachments:
You must be logged in to view attached files.July 22, 2016 at 2:50 pm #283318it’s because of the padding and the border that you added.
You will have to reduce the width of the product elements.You need add the code below.
@media only screen and (min-width: 1200px){ body.woocommerce .has-no-sidebar ul.products li.product, body.woocommerce .has-one-sidebar ul.products li.product { width: 238px!important; } } body.woocommerce .has-one-sidebar ul.products li.product { width: 196px!important; } @media only screen and (max-width: 991px){ body.woocommerce .has-one-sidebar ul.products li.product { width: 140px!important; } }
-Rui
July 22, 2016 at 2:53 pm #283319Super, that worked out now. Thank you very much for your time!
Joanna
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.