WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Remove author, date, and category from posts. (9 posts)

  1. vdumse
    Member
    Posted 1 year ago #

    Hi there. I have been exploring through lots of forums here but feeling unlucky removing author, date and category from all my posts. Using Pinboard theme. And here is my websites address: dumse.lt Please help me somebody cause I have got stuck here. Thanks a lot.

  2. mixmastermichael
    Member
    Posted 1 year ago #

    So there are a few ways you can do it, but the easiest would be go to into your css and add display: none to your style sheet.

    So go to your CSS in the editor, and put these:

    .entry-meta {
    padding: 1.5% 2.9%;
    background: #FCFCFC;
    border-top: #F3F3F3 1px solid;
    color: #CCC;
    font-size: 12px;
    font-weight: 300;
    display: none;
    }

    Cool theme.

  3. This is a great place to get help on WordPress related issues, but we tend to support the open-source stuff, but not the premium add-ons. Since you paid for your theme, you may want to contact the theme author for support on your issue.

  4. vdumse
    Member
    Posted 1 year ago #

    JerrySarcastic,
    I am very sorry, but I didn't pay for this theme. I have downloaded it just here on this site. And yes, the creator has made a support forum for this theme, but unfortunately I don't receive any suggestions concerning my problem.
    Thank you mixmaster, for your support. I will try to make these changes in the css code.

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    Firstly, you need to create a child theme.

  6. vdumse
    Member
    Posted 1 year ago #

    Everything is working! Thank you a lot mixmaster.
    Now I can move forward!

  7. sw33triver
    Member
    Posted 1 year ago #

    I found that creating a child theme and putting in the following style removed the By Author line from my posts:

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

    Hope this helps you and future visitors!

  8. dublinedanto
    Member
    Posted 1 year ago #

    Hi,

    I'm trying to achieve the same thing as the first poster, but tried mixmastermichael's method to no avail. Perhaps I wasn't putting it into the correct place in the css editor?

    I went to style.css in the theme editor, and dropped in

    .entry-meta {
    padding: 1.5% 2.9%;
    background: #FCFCFC;
    border-top: #F3F3F3 1px solid;
    color: #CCC;
    font-size: 12px;
    font-weight: 300;
    display: none;
    }

    in a few different places in the file. None had any effect, so I've removed it now.

    Could anyone point me in the right direction, please?

    thanks

  9. HappySage
    Member
    Posted 1 year ago #

    The advice above is accurate it is just missing something.

    If you go to view the post page that you would like to remove the date/author from in your web browser. Using what ever functionality the browser has to look at the raw html code search the code for the author name .

    you should find something that looks similar to

    <h2 class="post-meta"> by <a href="http://www.BlaaBlaaBlaa.com/author/jason/" title="Posts by Jason" rel="author">Jason</a>
    &nbsp;&bull;&nbsp;
    <a class="date-anchor" href="http://www.BlaaBlaaBlaa.com
    ............

    now obviously if your name is not Jason then the title Posts by XXX will say something different :)
    The important thing to see here is the class entry what ever that is in your page code. Here it is "post-meta" also note the class entry "date-anchor"

    if you add to your style.css the lines

    .class-name{
    display: none;
    }

    that class will not display any more (unless it is overriden by a later css entry). so for me the entry
    '.post-meta {
    display: none;
    }'

    removed the date and author
    and looking around a bit more in the code the entry
    '.post-category
    {
    display: none;
    }'
    hides the category entries before the title.

    now if you wanted to remove only the date then the entry
    '.date-anchor
    {
    display: none;
    }
    '
    would do that.

    The class names are not necessarily set in the WordPress implementation but depend on the mood and imagination of the theme creator on the day its css files are written. [This last allegation may be unsubstantiated*]

    happy hacking.

    *the allegation about implementation not imagination, I'm sure programmers have imagination, I like to think i do.

Topic Closed

This topic has been closed to new replies.

About this Topic