clansh
Forum Replies Created
-
Dear Author,
Please use a higher priority like 999 in the filter to remove the Schema on certain pages:
add_filter( ‘rank_math/json_ld’, function( $data, $jsonld ) {
return [];
}, 10, 2);I add this to all pages in my website and it doesn’t work.
how to add priority to this add_filter statement?
how do the statement specify desired page?You said that the AMP tool shows warning only when Rank Math’s Schema is used. That should not be happening.
Assuming you are using the latest version of all the plugins, themes, and WordPress (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.
To determine that, please follow this troubleshooting guide:
https://rankmath.com/kb/check-plugin-conflicts/You will have to disable the plugins and themes without using the Health Check plugin. We would recommend doing this on a staging site.
Only the site admin would know and your users won’t be affected by this troubleshooting.
I tried the check-plugin in my website but it doesn’t work as expected (all pages are blank).
So I did as your recommendation directly. I disabled every plugin and updated WP to latest 5.5 and AMP plugin to latest 2.0.0.
Currently, I’m using theme Twenty Twenty with plugins Rankmath and AMP ONLY.
However, The issue is still there. The result is really frustrating.
page with issue
https://yiwulife.co/category/travel/taoyuan/?ampresult of google AMP tool
https://search.google.com/test/amp?id=xmt2GFcIi2LqCQspoZHAQw- This reply was modified 4 years, 6 months ago by clansh.
Hi,
Thanks for the suggestions.
I tried to disable the Schema added by my theme and made sure that the schema were removed from the code. However, the result gets warning still.
I turned off the schema generated by Rank math and result shows OK.
However, I added this that you suggestedadd_filter( 'rank_math/json_ld', function( $data, $jsonld ) { return []; }, 10, 2);
It doesn’t work. RankMath still generate Schema.
Could you please explain more about how to add this filter? is there any arguments that I have to modify?
Thanks
Unfortunately, it seems OK with yoast SEO.
I have two same websites for testing. one with yoast and one with rank math.
the only difference between them is SEO plugin.
I hope this could help you to address the problem.Rankmath:
https://yiwulife.co/category/travel/taoyuan/?amp (Rankmath)https://search.google.com/test/amp?id=26CFgj3t2kh4suRowvYHGg
Yoast:
https://yiwulife.tw/category/travel/taoyuan/?amp (yaost)https://search.google.com/test/amp?id=flGZ_LTZcAnfp7MaXhYLJw
Forum: Plugins
In reply to: [AMP] Missing or invalid structured data itemHi, Renee
thanks for your quick responses.
So when I test your structured data directly in the Rich Results Testing tool (linked from Test Your Structured Data in the results you provided) the blog archive page passes and nothing is flagged:
Currently, Rank Math is supplying the structured data on your AMP URLs as well.
Yeah. I know it. the result shows good in rich-result test. However, my all AMP archive page gets ‘Missing or invalid structured data item’ warning in AMP test but 0 error in structure data rich-result test.
I noticed this because of google search console. So there are warnings of AMP archive page in google search console as well.
When I visit your posts with /amp I am redirected to the ?amp version. Were you previously using Reader mode where both versions are accessible for the post?
No, I don’t know AMP much. I chose transition mode immediately when I installed it because my theme provider Astra suggesting that. I don’t remember whether the default setting is reader mode or not. Is there an issue or any drawbacks that I have to notice?
Since you are using Transitional mode, your AMP urls are accessed on the site with ?amp query var. So the plugin is working as intended here. Also note that your non-AMP urls will have a link to your AMP urls in the source code, which tells search engines where to locate them (reference).
Thanks for your explanations. I really appreciate it.
Forum: Plugins
In reply to: [Smart Slider 3] CLS (cumulative layout shift)Hi Ramona,
I’m glad to hear your positive conclusion. I think I will put Smart Slider 3 into my website and wish this score would be corrected by either Lighthouse or Smart Slider 3 in the future.
Thanks a lot
Forum: Plugins
In reply to: [Smart Slider 3] CLS (cumulative layout shift)HI @ramona
Thanks for your support so far.
As your recommendation, I put same 5 images as slider’s into the /test-slider-without-smart-sliders page
and the score of CLS is the same(green).To reply
“I checked your page and I didn’t see any jump”
I know it, however the program of page insight shows not good. And Google claims the CLS and left scores of page insight will be taken into account in the future.Forum: Plugins
In reply to: [Smart Slider 3] CLS (cumulative layout shift)HI Ramona,
Thanks for the quick response.
I had considered what you mentioned and took a try.
However. I created two posts one with Smart Slider and the other without.
The scores of CLS are 0.58(red) and 0.008(green)The post is only made up of words and sliders
https://yiwu.com.tw/test-slider-with-smart-sliders
the CLS score of page insight is 0.58The post is only made up of words and images
https://yiwu.com.tw/test-slider-without-smart-sliders
the CLS score of page insight is 0.008I really like your plugin, however this issue discourages me putting smart sliders into my website. I hope this could be addressed.
Thanks