Site logo

Archived topic

Remove "by author" only on specific posts

5 replies · Started by Jorge on January 10, 2021

Viewing posts 1–6 of 6

Hi there,

I know I can disable "by author" site wide, but I want just to do it on a few posts. I tried these codes:

.entry-meta {display:none;} but it removes the date too
.author {display:none;} but it doesn't remove the "by"

Any help please?

Thanks

Hi there,

which posts do you want to remove the author meta from ? For example: Are they posts within a specific category ?

Hi David,

No, they are not. They are posts from different categories. The criteria to remove the author name has nothing to do with categories or follow a patron.

I just want to deactivate "by author" with CSS individually in the posts I want to.

Thanks

Use this CSS:

.entry-meta .byline {
    display: none;
}

byline is the class that wraps the author meta including the by / por

Awesome! it works perfectly.

Thanks a lot David

You're welcome

This archived topic is closed to new replies.