Archived topic
Remove Posted Date & Show Updated Date only
12 replies · Started by optimizeit on December 7, 2019
Hello! If anyone could help me with the following changes:
1. I want to remove the Posted/Published Date if a Post is Updated and Show the Updated Date instead. (Best possible solution which will help me in SEO and SERP Results)
2. I want to put "Updated on" before Updated Date and "Posted on" before Posted Date.
Screenshot for Reference: https://i.imgur.com/7aWwU0T.png
Thanks.
Hi there,
Have you tried this here?
https://docs.generatepress.com/article/show-the-updated-post-date/
Let me know if this helps :)
Hi, Yes. I did read to be honest.
Problem is, somewhere it was written (on a thread) that it still shows the information in the coding (view-source) but hides for the human eyes only. Am I correct?
I want to basically know, what's the safest bet in terms of SEO?
Basic Doubts:
1. Google likes updated more than published or not?
2. Google likes having both updated and published mentioned OR Question 1?
3. I should never show Updated?
These are the 3 cases. Please let me know which is best suited and advice me accordingly (the coding and styling part for it).
Question for Team: What are your support timings/dates (with TimeZone)? It will help me make a optimized schedule to work on theme and post queries here.
Thanks.
We really can't comment on what Google likes or doesn't like - they have their own complicated Algorithm.
You can modify the HTML output as well:
https://docs.generatepress.com/article/generate_post_date_output/#only-show-updated-date
Our policy is to answer every question in 24 hours - most of the time it's much less than 12 :)
Hi. Thanks for the reply. If you don't mind telling me?
Where am I suppose to to add those PHP codes?
Secondly, Are those updated for the 2019 December Version of Generate Press?
Thanks.
- Adding PHP: https://docs.generatepress.com/article/adding-php/
- Yes
Thank you. I think you can see the website URL.
If you open that, you can see right now category and tags are coming in the right of the featured image (Home Page).
How can I make it below the featured image?
Please don't refer or mention website.
Hmm the snippet shouldn't change the location of the meta.
Was it below the featured image before you add the snippet?
Hi! I have added the PHP Code using the Code Snippets Plugin as you have mentioned here: Post #1 & Post #2.
Further Questions:
1. How do I add "Updated On:" and "Published On:" before the Dates now?
2. Using so many plugins, Don't you think it will make website-heavy?
About Categories and Tags as mentioned here.
This is totally a different issue and have no related with Code Snippet or Date. I thought to ask here rather making new thread.
I want to make them appear below the Featured Image rather than in the side of the image.
Like this: https://i.imgur.com/rDkWTgp.png
1. This is to show in the live site right?
Try this CSS:
.entry-date.published:before {
content: "Published: ";
}
2. You can run your site through speed test. Code Snippets is a very simple plugin which allows you to add code and that's it. You can also use the child theme method suggested in the article.
Please open a new topic for the totally different issue.
Thanks!
Hi, Thanks.
1. That CSS you have provided me with is going to be HTML Output which Google can acknowledge?
2. I want for Published on: and Updated on: both.
New Topic Opened for the Tags and Categories here.
Thanks.
Hi, Thanks.
1. That CSS you have provided me with is going to be HTML Output which Google can acknowledge?
2. I want for Published on: and Updated on: both.
Thanks.
P.S.: I am using GeneratePress Child Theme.
Google doesn't need to read the "Published" and "Updated" text, as the HTML contains microdata telling Google what it is.
Try this:
.entry-date.published:before {
content: "Published: ";
}
.entry-date.updated-date:before {
content: "Upaded: ";
}