Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created April 26, 2022 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hivepress/66c6fa13c0f0b7dcf4000ff007ce6388 to your computer and use it in GitHub Desktop.
Save hivepress/66c6fa13c0f0b7dcf4000ff007ce6388 to your computer and use it in GitHub Desktop.
Hide the listing publication date #hivepress #listings
.hp-listing--view-block .hp-listing__created-date,
.hp-listing--view-page .hp-listing__created-date {
display: none;
}
@ess-lay
Copy link

ess-lay commented Jan 30, 2024

this comes back with this error, any ideas?
"Snippet automatically deactivated due to an error on line 1:
Syntax error, unexpected token ".", expecting end of file"

@hivepress
Copy link
Author

It's a CSS snippet, please try adding it to the Appearance/Customize/Additional CSS field.

@marvinbik
Copy link

marvinbik commented Feb 18, 2024

This works when removing the date and the author from the listings
what about the blog posts how can we remove the date and the author ?

@hivepress
Copy link
Author

The blog layout is implemented by the theme you're using (not HivePress plugin), but if you use one of our official themes, then this CSS snippet may work:

.post__date,.post__author{display:none!important}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment