WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Remove Author/Date/Category from all posts twentytwelve (10 posts)

  1. ian277
    Member
    Posted 1 year ago #

    Hi all, I've tried looking into the Loop to remove all the

    Author/Date/Category from all posts in twentytwelve but I'm having major difficulty following http://codex.wordpress.org/The_Loop

    Any advice on how to do it?

    Thanks.

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    The easier way to do what you want is to use "display: none;" in the CSS code...

  3. ian277
    Member
    Posted 1 year ago #

    Not sure where to place "display: none;"
    In the style sheet?

    What will it remove?

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You can use it to hide whatever element you assign it to - generally using a class or id for that element. If you post a link to your site, someone can give you specific help. But make sure you are not making changes to your theme files -- you need to have a child theme or custom CSS option set up.

  5. ian277
    Member
    Posted 1 year ago #

    Thanks -

    http://www.heavybrunch.com

    I've got a twenty twelve child theme up and want to remove date, author, etc from the posts.

  6. ian277
    Member
    Posted 1 year ago #

    I've looked in the twenty twelve theme for php _time, _date, _author in the Index.php and everywhere else but could not find it to delete or comment it out after copying it to my child theme folder.

    Since twenty twelve is still new so there aren't many things online I can find about it.

  7. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You need to use a CSS selector so the display: none; gets applied to something.

    Try this:

    .entry-meta {
       display: none;
    }

    (In the style.css file -- don't mess with php files.)

  8. ian277
    Member
    Posted 1 year ago #

    I did that - copied
    .entry-meta {
    display: none;
    }

    to my child theme style.css and it removed the twenty twelve style.

    Is there any way to avoid that?

  9. ian277
    Member
    Posted 1 year ago #

    Whoa, nevermind about the last issue - for some reason the import code got screwy. Thanks for the help WPyogi!

    Marking this as resolved.

    :)

  10. Matthew Tickle
    Member
    Posted 5 months ago #

    Hi, I have exactly the same issue, except I cannot resolve it - I have child theme up and working and have tried posting this in to style.css:

    .entry-meta {
    display: none;
    }

    but still the date is shown in the posts... the post is here:
    http://www.dgbc.org.uk/welcomesheet/
    if anyone can help, I would be very grateful!
    Matthew

Topic Closed

This topic has been closed to new replies.

About this Topic