Plugin Support
Anca
(@ancavictoria)
Hello,
Hreflang tags should not appear on pages that are excluded from translation, and I’ve checked the page you mentioned: https://www.aippt.com/feature/slideshow-maker, and hreflang does not appear on it.
I’d suggest checking the referring page – you may have recently excluded this page and Google hasn’t updated the information yet.
If the problem persists, please send me a screenshot so I can see how the hreflang appears for this page.
Kind regards,
Anca
I didn’t dare enable multilingual support, because it causes errors, so I wanted to ask you why. I didn’t enable translation on these pages, but Google can still crawl these links, which is very strange.
Plugin Support
Anca
(@ancavictoria)
Hello,
Could you please clarify what you mean when you say you don’t have multilingual support enabled but Google can still crawl these links? Are you perhaps using the ‘Translate Only Certain Paths‘ option and haven’t added a page to be translated, but hreflang tags still appear on it and Google crawls that page? If so, please send me the following:
– The link to this page
– A screenshot showing the paths added in the ‘Translate Only Certain Paths’ option
– A screenshot of the referring page from Google Search Console where the crawl appears
It’s possible that the page was detected before it was excluded, and it may take some time for the new information to be updated in Google’s index.
I’d also like to mention that apart from excluding a page using the ‘Do not translate certain paths’ option, there is no other option to enable or disable translation on specific pages. Every page on your site will be available in all languages even if it hasn’t been translated, and hreflang tags will be present on all pages as well.
Kind regards,
Anca
-
This reply was modified 6 months, 3 weeks ago by
Anca.
I’ll provide the address tomorrow, please take a look.
I am having an issue similar to this. I have used ‘Translate Only Certain Paths’ . I dont want my blog posts to be translated. But unfortunately my blog posts are getting hreflang tags when the SEO Audit bot crawls. How do I fix this? Will this following code snippet in functions.php help?
add_filter( ‘trp_register_post_type_for_translation’, ‘trp_exclude_posts_from_translation’, 10, 2 );
function trp_exclude_posts_from_translation( $register, $post_type ) {
if ( $post_type === ‘post’ ) {
return false; // exclude blog posts
}
return $register;
}
-
This reply was modified 6 months, 1 week ago by
manjuhari.