• Resolved dpap

    (@dpap)


    I don’t want to display the author’s name neither number of comments. Only the date. How can i do this, please ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • If you’ve created a child theme then add the following rule to your child theme’s style.css file. Otherwise, use a CSS plugin like Jetpack or Custom CSS Manager. Don’t edit the theme’s style.css file directly or your changes will be lost the next time you update the theme.

    .autor-in-full-posts,
    .comments-in-full-posts {
       display: none;
    }

    Thread Starter dpap

    (@dpap)

    CrouchingBruin, thanks for your reply. I put the code directly in my theme’s style.css to see the result but nothing changed. Author and comments still shown.
    BTW, i also need tho hide them in excerpts.
    Any idea, please ?

    Can you please post a link to your site? Thanks.

    Thread Starter dpap

    (@dpap)

    livadeia.gr

    The problem is that you stuck the rule inside a media query for print (@media print), so that’s not going to show up on your desktop. Move the rule to the very end, after the last right brace. Also, you want to make the following change to the rule so the elements are hidden on your blog page as well (the rule that I gave you will only apply to single post pages):

    .autor-in-full-posts,
    .comments-in-full-posts,
    .autor-in-excerpts,
    .comments-in-excerpts {
       display: none;
    }

    Thread Starter dpap

    (@dpap)

    Many thanks! it works right!

    Great. Don’t forget to move the rules out of your style.css file into either a CSS plugin or into a child theme. Otherwise, when you update the theme at some point in the future, your changes will be lost.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘display only the date on posts’ is closed to new replies.