Origin Theme – remove author AND "by", remove tags from home page
-
Using the origin theme
Would like to hide the author meta-data on the main page and on individual posts. I have tried such CSS code as:.entry-meta .sep, .entry-meta .entry-date {
display: none;
}and
.byline span.author.vcard {
display: none;
border-bottom: 0 solid #fff;
}These codes have removed the author, but leave the word “by” in it’s place. I would like to remove the author and the word by so it isn’t by nobody. Follow me?
Same and different, I would like to remove the tags from the main page as well. I would like to keep the tags active, and at this point I think that I would like to keep the tags in the posts’ footers, but would like them removed off the main page.
Any advice is much appreciated.
The blog I need help with is: (visible only to logged in users)
-
Please try this style and see if the result is what you want:
.byline { visibility:hidden; } .byline .author { display:none; } .byline .published, .byline a[rel="category tag"], .byline .comments-link { visibility:visible; } .byline a[rel="category tag"]::before { content: "Posted in "; font-weight:bold; margin-left:-40px; } -
This worked to eliminate the author and “by” note, but for some reason the tags are now overlapping. I tried to change the margin but it didn’t stop the overlap. Also, it says “Posted in” in front of each tag, when I would prefer it to say it just once followed by a list of tags. I will try to fiddle with it, but if you know the fix to it that’d be great. I’ve left it overlapped so someone could maybe identify the problem. Thanks again
-
Oops, I did not realize the “Posted in” repeats for every category name. We can fix it by updating the last style in my previous update to the following:`
.byline a[rel=”category tag”]:nth-of-type(1)::before {
content: “Posted in “;
font-weight:bold;
margin-left:-40px;
}`Could you add multiple categories to posts so I can see how they are overlapping so we can fix it :-)
-
Here is the formatted CSS:
.byline a[rel="category tag"]:nth-of-type(1)::before { content: "Posted in "; font-weight:bold; margin-left:-40px; } -
Woops, looks like another admin took out the multiple categories. I’ve used your latest suggestion, added a few categories to the posts, and everything looks great. Thanks.
-
- The topic ‘Origin Theme – remove author AND "by", remove tags from home page’ is closed to new replies.