Forum Replies Created
-
AuthorPosts
-
March 12, 2020 at 5:31 pm in reply to: How Do I prevent the date of my blog post from showing up in search results? #497303MazParticipant
The Yoast SEO date setting applies to the snippet preview you see on your post in the Yoast SEO meta box. This does not impact whether or not Google shows a date but, instead, allows you to adjust the snippet preview to match how Google handles your site.
https://yoast.com/help/date-appears-search-results/
Adding the below code to the theme functions.php will remove the date from search results for any Studiopress users who want to be able to do this without using a plugin.
Add the below code to the very bottom of (functions.php)
//* Remove the post info function
remove_action( 'genesis_before_post_content', 'genesis_post_info' );I went to Google Search Console and had them refresh a blog post link on my site. After waiting approximately 10 minutes I went back and searched the resubmitted link and now the date is gone in Google Search.
I hope this helps any StudioPress users who are looking for a way to manually remove the date from appearing in Google Search.
March 12, 2020 at 6:30 am in reply to: How Do I prevent the date of my blog post from showing up in search results? #497292MazParticipantThanks Anita.
"Anything else will remove the date from the posts on the front end, which I assume you want to keep."
I added the CSS code on my blog to remove the date on my blog posts for visitors to my site.
I have checked some of my links in Google search and many of them have the date excluded and some still have the date added. So I am hoping the code I added to functions.php worked.
I checked the source code too. It looks like The Yoast SEO plugin is automatically adding the date published.
Adding the following code below to my functions.php should remove it from Studiopress.
//* Remove the post info function
remove_action( 'genesis_before_post_content', 'genesis_post_info' );I'll have to wait and see once Google updates my search results hopefully without the date showing.
As I mentioned before. Using the Simple Hooks plugin allowed me to remove the date from showing in search results. However, I didn't want to add another plugin just to perform that function when I am sure there is a code change I can make that would perform the same function.
March 11, 2020 at 9:01 am in reply to: How Do I prevent the date of my blog post from showing up in search results? #497268MazParticipantYes. My blog is over 8 years old and I believe that showing the date in search engines may hurt click through rates. I blog about personal development so most of my content is evergreen. But having the date show in google search I believe is hurting my CTR.
I already have the date hidden on my blog posts on my site using CSS.
.post-info {
display:none;}
March 10, 2020 at 6:48 am in reply to: How Do I prevent the date of my blog post from showing up in search results? #497241MazParticipantThanks, ShariLee. I already have it set up this way in WordPress.
Yesterday I added the code below in my functions.php.//* Remove the post info function
remove_action( 'genesis_before_post_content', 'genesis_post_info' );I'm hoping this will remove the date from my blog posts in Google Search.
I'll have to wait and see.
March 8, 2020 at 6:35 pm in reply to: How Do I prevent the date of my blog post from showing up in search results? #497220MazParticipantThank you for responding. I don't want the date to show in Google search results. I was using the Simple Hooks Plugin for this, but I would rather not use a plugin to 'unhook' show post data in Google Search results.
December 30, 2019 at 9:08 pm in reply to: What is the best Social Sharing Plugin for Genesis Themes #495699MazParticipant -
AuthorPosts