Hi - I am running a blog via Ghost Pro and am using the free Leibling theme. I am looking for a way to quickly remove or hide the publication date with the code injection feature. Thanks in advance!
This will hide dates from post page
.m-heading__meta__time {
display: none;
}
& this from cards
.m-article-card__timestamp span:nth-child(1) {
display: none;
}
all together
<style>
.m-heading__meta__time {
display: none;
}
.m-article-card__timestamp span:nth-child(1) {
display: none;
}
</style>
Worked perfectly, thank you!
You are welcome! Happy to help.
Does anyone have code for removing the reading time from cards on the Liebling theme?
It’s going to be almost the code above, but you’ll need different selectors. Here’s a quick tutorial on how to work it out.
Thanks for the tutorial. I think I’m still missing something. It appears to be the same selector?
Can you show your code injection please? Use the code button for nicer formatting :)
Or try none!important for the setting
I used the code injection suggested above by inoryum
<style>
.m-heading__meta__time {
display: none;
}
.m-article-card__timestamp span:nth-child(1) {
display: none;
}
</style>
I want to remove this entire section:
<div class="m-article-card__timestamp">
<span>a day ago</span>
<span>•</span>
<span>1 min read</span>
</div>
The code injection seems to disregard the <span>•</span> <span>1 min read</span>
That’s targeting the “a day ago” - or it should be!