Okay
  Public Ticket #1035321
Hide blog post metadata
Closed

Comments

  •  2
    urbaneatin started the conversation

    On the blog grid view, I am currently using CSS to hide the "Comment" bubble, and the author (and one round-divider). 

    However, on the individual blog posts I'd also like to hide the comments, author, and possible tags. The latter two are easy with CSS. But the "No Comments" isn't a CSS tag (it's just a <a> link between two round-dividers), so it can't be hidden. How can I hide this? Plus there will be extra round-dividers that won't be hide-able individually. 

    Better yet, is there a way to hide some of this metadata without CSS?

  •  1,603
    Barry replied

    Hi there,

    There is a theme customizer control (Appearance > Customize > Theme Options > Blog > Hide metadata) to hide all the meta data from the grid/list view and on the single post page. If you want to hide some specifically you need to use CSS.

    Please add the following under Appearance > Customize > Theme Options > Custom > Custom CSS:

    body.single-post .post-meta-data span.author,
    body.single-post .post-meta-data span.tags,
    body.single-post .post-meta-data a:first-of-type { display: none; }
    body.single-post .post-meta-data span.category a { display: inline-block; }
    body.single-post .post-meta-data span.round-divider:not(:first-of-type) { display: none; }
    

    That should do the trick. It will only display the date and categories as you described.

    If you have any questions, feel free to ask

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  2
    urbaneatin replied

    Hi Barry, thanks, this code worked. I also hid the whole metadata section for the list view of category pages.