[Resolved] Remove “by author” only on specific posts

Home Forums Support [Resolved] Remove “by author” only on specific posts

Home Forums Support Remove “by author” only on specific posts

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1612880
    Jorge

    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

    #1612962
    David
    Staff
    Customer Support

    Hi there,

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

    #1612967
    Jorge

    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

    #1612983
    David
    Staff
    Customer Support

    Use this CSS:

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

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

    #1613004
    Jorge

    Awesome! it works perfectly.

    Thanks a lot David

    #1613247
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.