Removing publication date from posts and pages

Hello Everyone, I want to remove the publication date from my Ghost blog posts and pages. I read this post:

The thread is now closed.

One of the commentators mentioned the following code will hide the publication date =
.post-meta time{ opacity: 0; }

However, I am not sure where I should insert this?

I have inserted in code injection, I tried header and footer, and it didn’t work. I then tried the code injection for the individual post, and that also didn’t work.

Could you please let me know the solution if you know the answer. Thank you.

A post was merged into an existing topic: Can we remove the publish date from Ghost?