iamwpuser
Forum Replies Created
-
Archives always disabled, thank you
- This reply was modified 4 days, 8 hours ago by iamwpuser.
I use the free version of the yoast seo plugin
Forum: Plugins
In reply to: [Yoast SEO] og:locale changingthis
function remove_locale_and_alternate_presenters( $presenters ) {
return array_filter( $presenters, function( $presenter ) {
// Удаляем Locale_Presenter и Locale_Alternate_Presenter
return ! ( $presenter instanceof Yoast\WP\SEO\Presenters\Open_Graph\Locale_Presenter ||
$presenter instanceof Yoast\WP\SEO\Presenters\Open_Graph\Locale_Alternate_Presenter );
});
}add_filter( ‘wpseo_frontend_presenters’, ‘remove_locale_and_alternate_presenters’ );
and this
function remove_locale_and_alternate_presenters( $presenters ) {
return array_filter( $presenters, function( $presenter ) {
// Удаляем Locale_Presenter и Locale_Alternate_Presenter
return ! ( $presenter instanceof Yoast\WP\SEO\Presenters\Open_Graph\Locale_Presenter ||
$presenter instanceof Yoast\WP\SEO\Presenters\Open_Graph\Locale_Alternate_Presenter );
});
}add_filter( ‘wpseo_frontend_presenters’, ‘remove_locale_and_alternate_presenters’ );
and this
function remove_yoast_og_locale_alternate( $presenters ) {
return array_filter( $presenters, function( $presenter ) {
// Убираем не только Locale_Presenter, но и Locale_Alternate_Presenter
if ( $presenter instanceof Yoast\WP\SEO\Presenters\Open_Graph\Locale_Alternate_Presenter ) {
return false;
}
return true;
});
}add_filter( ‘wpseo_frontend_presenters’, ‘remove_yoast_og_locale_alternate’ );
NOT HELPS, DO YOU KNOW HOW?
Forum: Plugins
In reply to: [Yoast SEO] og:locale changingForum: Plugins
In reply to: [Yoast SEO] og:locale changingok,ok, I have deleted <meta property=”og:locale” content=”ru_RU” class=”yoast-seo-meta-tag” /> with
function remove_locale_presenter( $presenters ) {
return array_filter( $presenters, function( $presenter ) {
// Удаляем Locale_Presenter, чтобы он не выводил
return ! ( $presenter instanceof Yoast\WP\SEO\Presenters\Open_Graph\Locale_Presenter );
});
}add_filter( ‘wpseo_frontend_presenters’, ‘remove_locale_presenter’ );
But I can not delete this string in the same way
<meta property="og:locale:alternate" content="ru_RU" />
HOW TO DELETE THIS og:locale:alternate STRING?
- This reply was modified 2 months, 2 weeks ago by iamwpuser.
Forum: Plugins
In reply to: [Yoast SEO] og:locale changingalso I have tried this:
add_filter( ‘wpseo_locale’, function( $locale ) {
// Убираем вывод тега
return ”;
} );and this:
add_action( ‘wpseo_head’, function() {
// Удаляем вывод тега
ob_start(function($output){
return preg_replace(‘/]+>/i’, ”, $output);
});
}, 9999 );Not helps, can anybody help?
Forum: Plugins
In reply to: [Yoast SEO] og:locale changingI can use only ru or ru-ua, ru-ru hurts my site’s search engine visibility!
HOW CAN I DELETE THIS STRING
<meta property="og:locale" content="ru_RU" class="yoast-seo-meta-tag" />
???????????????????????????????????????????????????????????
Forum: Plugins
In reply to: [Yoast SEO] og:locale changingSo if I can not edite ru-ru, I have to delite this string <meta property=”og:locale” content=”ru_RU” class=”yoast-seo-meta-tag” />
Forum: Plugins
In reply to: [Yoast SEO] og:locale changingSome differences
<link rel="alternate" href="https://site.com" hreflang="ru-ua" />
https://developers.google.com/search/docs/specialty/international/localized-versions?hl=ru#language-codes
https://www.aleydasolis.com/english/international-seo-tools/hreflang-tags-generator/Forum: Plugins
In reply to: [Woo Custom Gateway] Plugin compatibility with PolylangI had to disable your sitemap file because the pages that I added several months ago are still not in the index
your sitemap is a piece of shit, more than two years ago file /sitemap_index.xml/ was added to google search console, zero links found in sitemap by google, but I have 1000 pages in total, in 15 years I never had a problem with my sitemap until I installed your plugin!
And the main thing is that you didn’t forget to insert your fucking link on every page of my site
??thank you
?? thank you
Thank you??