Sticky element in Sandbox
-
Can somebody point me to the element/class for sticky posts in Sandbox (the old version)? I can’t find it. Thanks!
-
I’m not sure if there is sticky element in sandbox. But I could make a sticky post look different from other posts by tagging it ‘sticky’ and throw this code into the css editor:
div.post.tag-sticky .entry-title {bla-bla-bla}A bit painful, yes. But it’s the only way I know.
-
Hmm – I made my first post a sticky and tried this:
div.post.tag-sticky .entry-title a { background-color:#F4783E; text-color:white; }No change. What am I missing?
-
-
-
-
Well, in the meantime, I’ve tried this:
.sticky .entry-title { background:#F4783E; color:#FFFFFF; }It gets the background orange (which is what I want) but the text color does not change to white. (I found that reference in another CSS file somewhere so apparently, even though I couldn’t locate the element in the CSS file, it works – at least partially.)
So – what am I missing on the text color?
-
maybe
.sticky .entry-title h2 {color:#fff;}
or.sticky .entry-title h2 a:link {color:#fff;}I’m on my mobile right now, so I’m just guessing.
Anyway, I’m sooo glad you’ve found the sticky element. I can use that too. Cheers!
-
Well, maybe when you get back to your computer, you can figure out how to change the text color. I tried both of those and various iterations of them and nothing worked :(
-
Oh, shame on me. It supposed to be
h2.entry-titlenot .entry-title h2I’m really sorry that I’ve wasted your time.
-
If that doesn’t change anything either… I’m gonna have to hide from you for a few days until you forget that I’ve acted like a know-it-all.
-
Nope, that doesn’t work, either. I tried:
.sticky h2 .entry-title { color:#FFFFFF; }as well as
.sticky h2 .entry-title a { color:#FFFFFF; }and the text is still orange.
I obviously don’t understand CSS very well, because I got the orange text defined in .entry-title a. But when I wanted it blue, I have it defined in body.single .entry-title (without the a) and .page h2,.archive h2,.category h2 (again, without the a) and it works.
All I know about CSS I’ve learned through trial and error, I’m afraid.
-
You don’t have to hide from me – you’re trying to help and that’s a good thing! You know more about this stuff than I do – I’ve seen your work!
-
oh, Jesus!
.sticky h2.entry-title { background:#ff6600; }.sticky h2.entry-title a { color:#fff; }.sticky div.entry-content { background:#f0f0f0; } -
You may want to view the sticky on my blog. I saved them for you.
I know why it didn’t work for you. You added one space between
h2and.entry-title -
Oh, I’m sorry. I think my last sentence sounds a bit rude, while what I really meant to say was “there is a space between h2 and .entry-title’.
Pardon my English.
-
Just getting back to this. And I still cannot get the entry-title to change colors.
.sticky h2.entry-title { background:#F4783E; } .sticky h2.entry-title a { color:#FFF; text-decoration:none; }So I want the orange background (#F4783E) and the white letters (#FFF) but the letters remain orange (as defined in the original .entry-title a) and no matter what I do, will not change.
Something is causing the earlier command to override the later one.
Can you give me a link to the blog where you have this working? The one in your user name isn’t using the old Sandbox theme. Thanks!
(And I didn’t think you were rude.)
- The topic ‘Sticky element in Sandbox’ is closed to new replies.