Text Appears under Page Builders
-
Even if I specify for the text to appear before the content, it appear after the content when using Thrive Architect to build posts.
The page I need help with: [log in to see the link]
-
As, you are using Thrive Architect buider, I think you need to add shortcodes to display last modified info on posts or pages. Shortcode for post is
[lmt-post-modified-info]
and for page is[lmt-page-modified-info]
.Thanks!
I was able to make the updated date appear, but oddly Gooogle is not finding the associated schema in the Structured Data Testing tool.
Page: https://www.cheatsheetwarroom.com/blog/fantasy-football/draft/strategy-guides
I have schema mark-up enabled on posts: https://www.screencast.com/t/mRtGNvBtK
Hi, your theme does not compatible with basic schema structure. So Google can’t recognize the schema type and fails to show last modified schema markup. I would suggest you to use any SEO plugin like Yoast to get basic schema for your website. If you do not want to use any SEO plugin, then you have to make some changes to your theme files to make your theme schema compatible. Add this piece of code to body tag
itemscope itemtype="https://schema.org/WebPage"
this will make your website compatible with schema and shows last modified schema markup. Demo Screenshot: https://prntscr.com/m7ljpmThanks!
I use SEOPress and it seems to have no problem registering mark-up without the piece of code you specified in the body tag.
Review: https://www.cheatsheetwarroom.com/blog/fantasy-football/site/fantasypros-review
Mark-up In Search Results: https://bit.ly/2FwUMZG
Hi @bperniciaro
Please add this snippet to the end of your active theme’s functions.php file and check the schema markup via Google Structured Data Tool.
function lmt_add_schema_attributes( $attr ) { // return the new attribute return $attr.'itemscope itemtype="https://schema.org/WebPage"'; } add_filter('language_attributes', 'lmt_add_schema_attributes');
Hi, is it ok to select the manual option and also add the shortcode on the same page? In thrive themes the manual option sets it below the content even when above is selected.
@bperniciaro how did you go with adding that code from @infosatech into the thrive theme? Did it help you show last modified in the google structured data?
Thanks
I think maybe you HAVE to use the manual option with the shortcode. I thought they went hand-in-hand?
I was able to get the structured testing tool to recognize dateModified after adding the bit of code to the functions.php file.
https://www.screencast.com/t/ladB9WNa59
But the @type is set to WebPage. Is this correct or should it maybe be Article or BlogPosting?
Hi @bperniciaro
WebPage schema type is ok if you want to show only ‘dateModified’ schema type to SERPs. If you use Article (https://prntscr.com/m81601) / BlogPosting (https://prntscr.com/m817m4) then you have to specify all other required fields shown in screenshot as those schemas are required for Article/BlogPosting. If you specify all fields then Google will show the ‘datePublished’ date to SERPs and ‘dateModified’ schema will be ignored in that case.
As an example, view this website and schema results. It is the website of one of the users of this plugin.
Website: https://lushpalm.com/surfing-punta-mita/
Schema Test: https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Flushpalm.com%2Fsurfing-punta-mita%2F
Google SERP Screenshot: https://prntscr.com/m81bit
His Review: https://www.ads-software.com/support/topic/works-like-a-charm-1390/
I think it would clear your doubts.
Thanks!
- This reply was modified 5 years, 10 months ago by Sayan Datta.
Yes, that’s exactly what I’m looking for. Thank you.
Hey @bperniciaro, what option do you select in seopress to markup your standard blog posts. There is an article option but the sub categories are only news, tech article, social post etc?
Hi @infosatech,
I tried to add the snippet:
function lmt_add_schema_attributes( $attr ) {
// return the new attribute
return $attr.’itemscope itemtype=”https://schema.org/WebPage”‘;
}
add_filter(‘language_attributes’, ‘lmt_add_schema_attributes’);to the end of my active theme’s (thrive themes) functions.php file as you recommended to @bperniciaro so that I can show last modified date in google search.
However I got this error message when trying to add:
Your PHP code changes were rolled back due to an error on line 1435 of file wp-content/themes/focusblog/functions.php. Please fix and try saving again.
Cannot redeclare lmt_add_schema_attributes() (previously declared in wp-content/plugins/wp-last-modified-info/includes/trigger.php:118)
Any feedback would be greatly appreciated
Hi @selfmade23 and @bperniciaro
There is no need to add this code snippet any more to the end of your functions.php file as I have already added this feature in plugin v1.4.4. So if you have already added it, you can remove it from functions.php file.
@selfmade23, have you checked it that your theme does not support basic schema? If already supports then you do not need to add this snippet to functions.php file.
Now @selfmade23 you can check schema markup by using Google structured data testing tool.
PS: I will implement an option in the next release i.e. v1.4.5 of this plugin at Settings > WP Last Modified Info > Misc Options to turn on/off this feature as many theme has already supports basic schema structure. This feature is helpful for those themes in which basic schema is not already implemented. So that already supported users can turn it off.
You need to just turn on this on after plugin update. I will release this version very soon.
- This reply was modified 5 years, 10 months ago by Sayan Datta. Reason: Typo
Hi @infosatech ,
I have tried to follow all of your prompts and looked at the support discussion re: Thrive themes issues but cannot get schema to show on testing tool correctly. Here are my settings for post https://www.screencast.com/t/My5HzMmS and pages https://www.screencast.com/t/np7XHEmz. Please help me show the correct date and schema in google. Here are is a post from my site and a page from my site. Any feedback will be greatly appreciated!.
Hi @selfmade23
Post of your site: https://verticaljumpworld.com/vince-carter-vertical-jump/
Schema Screenshot of the above post: https://prntscr.com/m88jjyPage of your site: https://verticaljumpworld.com/vertical-jump-training-articles-videos/
Schema Screenshot of the above page: https://prntscr.com/m88jwyThose are working perfectly.
But which type of post this is: https://verticaljumpworld.com/vertical-jump-testing-guide-plus-equipment/
Thanks!
That last one is a page . It looks like it is not working for all the pages except that one. See the navigation bar for links to all the pages.
any ideas how to fix?
Also, I see that my review posts are now showing webpage and review schema. However the review shows date published. Will google show this over date last modified?
- The topic ‘Text Appears under Page Builders’ is closed to new replies.