Hi @robbie13
Actually, I have not received any email from your post. Sorry for the late reply.
Go to the file: wp-content/themes/Newspaper/includes/wp_booster/td_module_single_base.php on line 661 and edit the file like this: http://prntscr.com/mrw2sg and also edit these lines according to this screenshot: http://prntscr.com/mrw5ns – and clear cache and then let me know.
Thanks!
-
This reply was modified 7 years, 3 months ago by
Sayan Datta.
Hi Sayan,
No problem, I thought you didn’t receive the message, that’s why I created a new topic.
I’ve tried what you said and reindexed my site on google search console. I waited 2 days to see if it would work, but no changes so far.
Can you check if I’ve made the changes correctly?
Thanks for your help!
Hi
Go to that file and also edit this part: http://prntscr.com/mrw5ns
Thanks!
Hi! Thanks once again!
I cleared the cache and so far no difference, but maybe I have to wait until google update the changes.
Will this code show my last update page on serp on hide it completely?
thanks and have a nice weekend!
Hi @robbie13
Newspapaer theme by default uses Article type schema and datePublished is a mandatory property of Article Schema. So I told you to edit your theme file and disable those markups and you successfully did it. Now please wait upto 7 days as Google will fetch the new schema info very soon and it may take some time to show last modified date in SERPs.
Thanks!
Hi Sayan!
I have checked today but it still shows the date: https://prnt.sc/mx28qq
Could you take a look and check if I did something wrong, please?
Thanks!
π
Hi @robbie13
I have already told you to edit this part also: http://prntscr.com/mrw5ns. Go to the file
wp-content/themes/Newspaper/includes/wp_booster/td_module_single_base.php on line 539
and comment on those lines and save the file. Then Check in Google Schema Tool.
Currently, you have some error: https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fholandesando.com%2Fkeukenhof-guia-completo-tulipas-holanda%2F
Thanks!
Hi Sayan!
I hadn’t noticed the /* on line 539 the first time, so I changed only the end (return ”).
Now I fixed everything and according to google there are no errors. Hope it works now! π
Once again, thank you for all your support!
Hi Sayan!
Everything was working fine until the last update of Newspaper, where they made some big changes to the files.
I think the changes I’ve made to the td_module_single_base.php [that is now located on public_html/wp-content/plugins/td-composer/legacy/common/wp_booster] are fine, but the parameters on public_html/wp-content/themes/Newspaper/loop-single.php have changed, so I can’t add the lines below anymore. Can you please help me again? Because of that the last update date on post is not working anymore. Thanks!
<?php if (!empty($td_mod_single->td_post_theme_settings[‘td_subtitle’])) { ?>
<p class=”td-post-sub-title”><?php echo $td_mod_single->td_post_theme_settings[‘td_subtitle’];?></p>
<?php } ?>
<div class=”td-module-meta-info”>
<?php echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<br style=”line-height:14px;”/>
<?php echo do_shortcode( ‘[lmt-post-modified-info]’ );?>
<?php echo $td_mod_single->get_comments();?>
<?php echo $td_mod_single->get_views();?>
</div>