Remove almost everything
-
I would like to remove
1) post date
and
2) posted in/on (category)
from underneath posts, but keep the leave a comment link. I have to code for the date but not the second. All the code I’ve found removes it all in one fell swoop
The blog I need help with is: (visible only to logged in users)
-
Ha, the CSS for this is pretty silly/crazy but it works. Try this:
.entry-meta { position: relative; left: -9999px; } .entry-meta a { position: relative; left: 9920px; } .entry-meta a[rel~="category"] { display: none; }References:
1) Hide parent but show child element: http://stackoverflow.com/a/5521514/8848362) Target CSS rel attributes: http://css-tricks.com/attribute-selectors/
-
“hfzrhmn” dude you’re awesome! I know this isn’t technically child’s play but I’m the mid-30s version of your mom learning how to take a picture on her phone. That plus the delete date code did it!
-
So the new problem is that I changed my theme from Suits to 2010. But the above code doesn’t remove the “posted in (category)” line under the post. I want to keep the “leave a comment link”
-
As I explained in another thread, most CSS is theme specific: code that works one theme won’t necessarily work on another theme.
Add this:.cat-links, .meta-sep { display: none; } -
Thanks! Sorry, I’m still a bit new to this. I found out that codes can be theme specific late last night after looking at about 7000 threads. It worked, by the way
-
- The topic ‘Remove almost everything’ is closed to new replies.