Hide views and the date on posts

Editorial asked that we hide the date on posts in the following categories:

  • Events
  • Virtual Events
  • Webinars
  • Clinical OMICs Live

They also asked that we hide the views on all posts site-wide.

This is the css I used:


body.single-post article.category-events span.td-post-date,
body.category-events span.td-post-date,body.category-virtual-event span.td-post-date,body.category-virtual-event td-post-date td-post-date-no-dotbody.category-clinicalomics-live span.td-post-date,body.category-webinars span.td-post-date,body.single-post article.category-webinars span.td-post-date {display: none;}.td-post-template-7 .td-post-title .td-post-date {    display: none;}

.td-post-template-7 .td-post-title .td-post-views {     display: none;}

Click to copy