- This topic has 6 replies, 4 voices, and was last updated 5 years, 4 months ago by
Elvin.
-
AuthorPosts
-
November 28, 2020 at 9:53 pm #1555843
Thomas
I have some sticky post, I would like to highlight it on the home page, before 3.0, I just modify css file:
.sticky {
background-color:#ededed;
border:1 px solid #f5f5f5;
color:#272727;
}it works great, the new 3.0 seems change it, and it no longer works that way, could you please help me with that?
November 29, 2020 at 5:12 am #1556218David
StaffCustomer SupportHi there,
can you share a link to your site so i can see the issue
November 29, 2020 at 11:06 am #1556973Thomas
I make all sticky post on the front page, first a few lines.
November 29, 2020 at 12:27 pm #1557109Elvin
StaffCustomer SupportHi,
Can you temporarily disable any caching and CDN so we could check the cause of this?
Your site is currently using a cached stylesheet from
https://secureservercdn.net/104.238.68.196/i0r.fcb.myftpupload.com/wp-content/cache/wpo-minify/1606638476/assets/wpo-minify-header-be8628b1.min.css?time=1606676017which is overriding the background-color you’ve set on your CSS code:Also, your border property’s value has to be fixed.
border:1 px solid #f5f5f5;has a space between1andpxthat has to be removed. Use this instead:border:1px solid #f5f5f5;November 29, 2020 at 12:48 pm #1557135Brooke.
Looks like you’ll want to use
.sticky .inside-articleinstead of just.sticky(or use!important😬 ). This is because you have the following rule further down in your stack setting the background on the.inside-articleto white overriding that of the outer.stickycontainer.separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .one-container .container, .separate-containers .paging-navigation, .inside-page-header { background-color: #fff; }November 29, 2020 at 1:25 pm #1557178Thomas
Brooke,
Thank you so much.
// Make the sticky color grey, to outstanding
.sticky .inside-article {
background-color: #edededed;
}Works great!
Thomas
November 29, 2020 at 1:34 pm #1557190 -
AuthorPosts
- You must be logged in to reply to this topic.