Remove Author's and Category names from specific posts only

Discussion in 'Blackriders WordPress Theme' started by cholcombe, Feb 19, 2014.

  1. cholcombe

    cholcombe New Member

    Joined:
    Oct 12, 2013
    Messages:
    19
    Likes Received:
    0
    I have two Posts I want to remove the Author's and Category names on, but I want the rest of the Posts to remain as is (showing the information.) Is there a way to do that?

    Thanks
     
  2. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,

    Through post id selector you can apply css style code only for specific posts.

    Firstly go to the Posts> All Posts in your dashboard and hover the edit option of that post from which you want to remove the Author's and Category names and copy its post-id number.

    See the image for reference
    [​IMG]

    Now, add that post id in the css code given below( current post id is 412)
    after that paste the code given below in Custom CSS section
    (Appearance -> Theme Options -> Styling Options -> Custom CSS) of your dashboard.

    Code:
    .postid-412 .post .post_meta .posted_by {
    display: none;
    }
    .postid-412 .post .post_meta .post_category{
    display: none;
    } 
    This will solve your issue.
     

Share This Page