WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing "This entry was posted in " section in home page of Twenty Twelve theme (13 posts)

  1. Vivek Nath.R
    Member
    Posted 1 year ago #

    I want to remove

    This entry was posted in
    section from home page? What is the exact code for this?

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Do you have a child theme set up or custom CSS option/plug-in?

  3. Vivek Nath.R
    Member
    Posted 1 year ago #

    Yes, I'm using My Custom CSS for adding new css code.

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    IF you post a link to your site, someone can likely help you with the code to add.

  5. Vivek Nath.R
    Member
    Posted 1 year ago #

    Ohh sorry, Now i'm editing twenty twelve theme locally using Instant wordpress.

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Okay, well try adding this to the CSS:

    .entry-meta {
        display: none;
    }
  7. Vivek Nath.R
    Member
    Posted 1 year ago #

    This piece of code removes all info just below the excerpt. All I want is only to remove "This entry was posted in" text.

    For reference please check this blog that guy is using Twenty twelve theme. http://tenocation.com/

    Hope you got what I'm asking.

  8. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Ah, that's more complicated -- can't be done in the CSS code, and I'm not sure where the php would need to be changed. Just tried to find it -- without success. But hopefully someone will happen along who knows -- and then we'll both learn something :).

  9. Vivek Nath.R
    Member
    Posted 1 year ago #

    Okey, Lets wait someone will help.
    Thanks for your replies.

  10. zeaks
    Member
    Posted 1 year ago #

    I don't think you can individually style or hide sections of the meta information. You can copy the meta information function from Twenty Twelve into a child theme and edit it that way. Even add classes to each section to style it through CSS.

  11. Vivek Nath.R
    Member
    Posted 1 year ago #

    @ WPyogi : Got the code.
    If you want to do the same go here

    @zeaks : Thanks a lot for your help.

  12. travern
    Member
    Posted 1 year ago #

    How did you do it? I want to do the exact same thing. The link is 404.

  13. zeaks
    Member
    Posted 1 year ago #

    @travern I think the link was an old forum post, the forums were moved. Check this article out http://zeaks.org/2013/use-genericons-with-twenty-twelve-theme it shows how to go about editing the meta info.

    You basically have to copy the function from Twenty Twelve then add it to your child theme then change the info however you want. The article shows how to add classes to it and icons.

Topic Closed

This topic has been closed to new replies.

About this Topic