Maggie96
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Virtue] Remove Post Date from SERPSHi Hannah,
The 4th result down the page – Madison Reed Review – Just one example – it shows the original post date instead of the Last Updated Date.
The website owner set up her blog as a category – not as a page – and then all her blog posts are linked to subcategories. In search results – the subcategories come up and the last updated date shows. But individual posts that come up – like the one above – show the old date instead.
(Her website is https://www.ireadlabelsforyou.com)
The website owner would now prefer to stop dates showing up in SERPS. She doesn’t want readers to bypass an updated post, because it shows an old publish date.
I’m still learning PHP so this is where I get stuck.
Thanks –
Meagan
Forum: Themes and Templates
In reply to: [Virtue] Remove time (hours-minutes) from Last Updated DateIgnore this request – I got the answer from the WordPress forums. ??
- This reply was modified 7 years, 4 months ago by Maggie96.
Forum: Developing with WordPress
In reply to: Removing time (hours-minutes) from post metaHudsonValleyWebDesign(@jaycbrf)
It worked! Thank you so much! Based on your response I left a period and an apostrophe behind when I tried it. I’ve got to be more careful.
Anyway – thank you again for the help – I really appreciate it!
??
Forum: Themes and Templates
In reply to: [Virtue] Remove “Archives” from blog post title search resultsHi –
I’m still having issues with the original post date – and the word “Archives” showing up in Search results.
I added code to show Last Updated Date.
I also followed your advice to add code to remove the word “Archives” from Search results.
The original date and the word “Archives” do not show up when you click into a blog post. But they still show in SERPs. And that’s the problem. (See my attached link to a page I brought up doing a search). Clients see the original post date (not the Last Updated Date) as well as the word “Archives” – and they don’t click to read the posts.
https://www.google.com/search?q=wood+cutting+boards++ireadlabelsforyou.com&oq=wood+cutting+boards++ireadlabelsforyou.com&gs_l=psy-ab.3..35i39k1.14194.19504.0.19711.23.23.0.0.0.0.147.2104.13j8.21.0….0…1.1.64.psy-ab..2.21.2101…0j0i22i30k1j0i8i13i30k1.0.7h4NdnMhghA
We are using the Virtue Child Theme. (I’ve removed Archives from the Yoast SEO plugin but that doesn’t seem to help.)
The Virtue Child theme has only a few files. A functions.php file, a Landing Page Template, and a style.css file.
-
Listed below are the code snippets I’ve added to the functions.php file.
-
//Code to add Last Updated Date to Irina’s Blog Posts
function wpb_last_updated_date( $content ) {
$u_time = get_the_time(‘U’);
$u_modified_time = get_the_modified_time(‘U’);
if ($u_modified_time >= $u_time + 86400) {
$updated_date = get_the_modified_time(‘F jS, Y’);
$updated_time = get_the_modified_time(‘h:i a’);
$custom_content .= ‘<p class=”last-updated”>Last updated on ‘. $updated_date . ‘ at ‘. $updated_time .'</p>’;
}$custom_content .= $content;
return $custom_content;
}
add_filter( ‘the_content’, ‘wpb_last_updated_date’ );//Code to remove the word Archives from blog post title in Google Search
function my_theme_archive_title( $title ) {
if ( is_category() ) {
$title = single_cat_title( ”, false );
} elseif ( is_post_type_archive() ) {
$title = post_type_archive_title( ”, false );
}return $title;
}add_filter( ‘get_the_archive_title’, ‘my_theme_archive_title’ );
-
//Code to remove blog post date from SERPS
remove_action(‘kadence_single_post_before_header’, ‘virtue_single_post_meta_date’, 20);
remove_action(‘virtue_single_post_before_header’, ‘virtue_single_post_meta_date’, 20);Would you have any other suggestions I can try to remove the word “Archives” and to not show original post date but Last Updated Date in search results?
Thank you,
Meagan
Forum: Themes and Templates
In reply to: [Virtue] Is there a way to remove blog post date from SERPS?Hi Ben/Hannah
I added the code to the functions.php file – thank you. I’m going to assume it takes awhile to take effect?
If it doesn’t work I’ll try Hannah’s suggestion next.
Thank you both so much for the guidance – at least I’m on the right path now!!
Meagan
Forum: Themes and Templates
In reply to: [Virtue] Is there a way to remove blog post date from SERPS?Hi Hannah,
I saw that post earlier today but was confused buy it because inside the Virtue Child theme I don’t see the files called:
“index.php”, “single.php” or “archive.php” where the author says to put the code.
I only see the functions.php file.
Do you have any idea of where I should place the code inside the child theme?
Thank you ??
Meagan
Forum: Themes and Templates
In reply to: [Virtue] Remove “Archives” from blog post title search resultsHi Hannah,
Yes – I’ve gotten feedback from testers and it worked! Thank you!!
Meagan
Forum: Themes and Templates
In reply to: [Virtue] How to show Last Updated Date on a post?Hi Hannah,
That moved it up above the post title.
So – thank you!!
Meagan
Forum: Fixing WordPress
In reply to: Edits show up in Desktop but not MobileI just realized his mobile site is an older m. (M.Site). So. This should be fun. This means there is a separate file for the mobile site (I think).
Does anyone know where separate mobile files get stored in WordPress? I’ve never created a separate m.site before – so I apologize for the lame questions. Just googling everything I can right now. ??
Thanks!
Forum: Fixing WordPress
In reply to: Edits show up in Desktop but not MobileHi Adam,
Hmm. Great suggestion. I double checked but I don’t see a separate plugin for mobile pages.
Where would I find a separate “mobile caching system”? (If that is a plugin then there isn’t one).
I just added a WP Fastest Cache and ran it a few minutes ago but that didn’t help.
Now, no matter what changes I make in the Editor, they show up in desktop but not in mobile.
He has the UltimateTinyMCE plugin that needs to be replaced – but I can’t see how that would allow updates in desktop but not in mobile.
This is nuts. lol.
Hi Jeremy – thank you!
I understand now ??
Meagan
Forum: Themes and Templates
In reply to: [Virtue] Home Portfolio CarouselOh – wait – I think I understand. No – she has a page set up for each of her ebooks – already built out with content and information and the eBook download. I can’t ask her to redo all of those pages.
She is already using the Home Slider for different items. I would have just used that instead. But she saw the Carousel was available and I thought it would work – just put in the image and link it to the correct page.
I think you are telling me that cannot work. If we want a carousel/slider we need a separate plugin. Is that correct?
Forum: Themes and Templates
In reply to: [Virtue] Home Portfolio CarouselHi Hannah,
What free download? Sorry – I did not install the theme for her ??
And this will let us link each image in the carousel to a different page on the site?
Meagan
Forum: Themes and Templates
In reply to: [Virtue] Home Portfolio CarouselHi Hannah,
I am playing with the CSS you sent to see if I can make the images look better in the Carousel. Thank you ??
And if I understand you correctly – there is no way in the free version of Virtue to link an image in a portfolio carousel to a page where my client offers a free download?
(She is not using woocommerce. She uses Easy Digital Downloads to offer eBooks to customers).
Thank you ~ Meagan
Forum: Themes and Templates
In reply to: [Virtue] Home Portfolio CarouselHi Hannah,
I’m so sorry I missed your reply – thank you!
They are moving now. Yes. A bit slow. Do you know how I can speed that up a little?
Also – the images are showing up huge….is there an optimal image size for the Carousel?
Thank you ??