No hreflang field
-
WP 5.5
AMP plugin Version: 1.5.5
Yoast SEO Version 14.8with SEMrush we optimize our SEO and the error tells us that the hreflang attribute reference is conflicting.
Yoast automatically adds these hreflang attributes…
SEMrush seems to crawl the amp URL’s (/?amp)
So what it comes down to is that https://www.example.com (English) needs a self-pointing URL [<link rel=”alternate” href=”https://www.example.com/” hreflang=”en”>]
When calling https://www.example.com/?amp the URL is not self pointing but takes the original URL (https://www.example.com/) as the hreflang value.
Do I have to go into WP_head to add a condition? or is there a workaround for this without touching any code?
-
We’d be happy to test this out from our side. In order to do so can you share your Site Health information so we can check the language plugin used along with mentione plugin versions and your current setup?
You can share privately if preferred.
### wp-core ### version: 5.5 site_language: en_US user_language: en_GB timezone: +00:00 permalink: /%category%/%postname%/ https_status: true user_registration: 0 blog_public: 1 default_comment_status: open multisite: false user_count: 5 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /data/sites/web/scalecloudbe/www wordpress_size: 51.13 MB (53611962 bytes) uploads_path: /data/sites/web/scalecloudbe/www/wp-content/uploads uploads_size: 145.41 MB (152470899 bytes) themes_path: /data/sites/web/scalecloudbe/www/wp-content/themes themes_size: 5.62 MB (5891404 bytes) plugins_path: /data/sites/web/scalecloudbe/www/wp-content/plugins plugins_size: 142.16 MB (149070757 bytes) database_size: 34.17 MB (35831808 bytes) total_size: 378.49 MB (396876830 bytes) ### wp-dropins (1) ### advanced-cache.php: true ### wp-active-theme ### name: Astra (astra) version: 2.4.3 (latest version: 2.5.4) author: Brainstorm Force author_website: https://wpastra.com/about/ parent_theme: none theme_features: core-block-patterns, astra_hooks, align-wide, automatic-feed-links, title-tag, post-thumbnails, html5, post-formats, custom-logo, customize-selective-refresh-widgets, editor-style, woocommerce, amp, infinite-scroll, widgets, menus theme_path: /data/sites/web/scalecloudbe/www/wp-content/themes/astra auto_update: Disabled ### wp-themes-inactive (1) ### Twenty Nineteen: version: 1.7, author: WordPress Team,Auto-updates disabled ### wp-mu-plugins (1) ### Elementor Safe Mode: version: 1.0.0, author: Elementor.com ### wp-plugins-active (25) ### Akismet Anti-Spam: version: 4.1.6, author: Automattic, Auto-updates disabled AMP: version: 1.5.5, author: AMP Project Contributors, Auto-updates disabled Astra Widgets: version: 1.2.5, author: Brainstorm Force, Auto-updates disabled Broken Link Checker: version: 1.11.13, author: WPMU DEV, Auto-updates disabled Countdown Widget: version: 3.1.7, author: Metin Saylan, Auto-updates disabled Display Posts: version: 3.0.2, author: Bill Erickson, Auto-updates disabled Duplicate Page: version: 4.2, author: mndpsingh287, Auto-updates disabled Elementor: version: 2.9.14, author: Elementor.com, Auto-updates disabled Hummingbird: version: 2.5.1, author: WPMU DEV, Auto-updates disabled Jetpack by WordPress.com: version: 8.8.2, author: Automattic, Auto-updates disabled Limit Login Attempts Reloaded: version: 2.15.1, author: WPChef, Auto-updates disabled Password Protected: version: 2.3, author: Ben Huson, Auto-updates disabled Polylang: version: 2.8, author: WP SYNTEX, Auto-updates disabled Polylang Connect for Elementor: version: 1.0.0, author: David Decker - DECKERWEB, Auto-updates disabled Redirection: version: 4.8, author: John Godley, Auto-updates disabled Site Kit by Google: version: 1.14.0, author: Google, Auto-updates disabled Smart Slider 3: version: 3.4.1.8, author: Nextend, Auto-updates disabled Smush: version: 3.6.3, author: WPMU DEV, Auto-updates disabled Starter Templates: version: 2.3.4, author: Brainstorm Force, Auto-updates disabled Ultimate Addons for Gutenberg: version: 1.17.0, author: Brainstorm Force, Auto-updates disabled W3 Total Cache: version: 0.14.4, author: BoldGrid, Auto-updates disabled WP Activity Log: version: 4.1.3.2, author: WP White Security, Auto-updates disabled WP Auto Post Link Title Attributes: version: 1.2.0, author: AJ Clarke, Auto-updates disabled WPForms: version: 1.6.2.2, author: WPForms, Auto-updates disabled Yoast SEO: version: 14.8, author: Team Yoast, Auto-updates disabled ### wp-plugins-inactive (1) ### HREFLANG Tags Lite: version: 1.9.6, author: DCGWS LLC, Auto-updates disabled ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1690 imagemagick_version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org file_uploads: File uploads is turned off post_max_size: 256M upload_max_filesize: 256M max_effective_size: 256 MB max_file_uploads: 20 imagick_limits: imagick::RESOURCETYPE_AREA: 122 MB imagick::RESOURCETYPE_DISK: 1073741824 imagick::RESOURCETYPE_FILE: 768 imagick::RESOURCETYPE_MAP: 512 MB imagick::RESOURCETYPE_MEMORY: 256 MB imagick::RESOURCETYPE_THREAD: 8 gd_version: bundled (2.1.0 compatible) ghostscript_version: 9.27 ### wp-server ### server_architecture: Linux 4.19.129-combell x86_64 httpd_software: Apache php_version: 7.4.9 64bit php_sapi: fpm-fcgi max_input_variables: 20000 time_limit: 300 memory_limit: 128M admin_memory_limit: 256M max_input_time: 60 upload_max_size: 256M php_post_max_size: 256M curl_version: 7.64.0 OpenSSL/1.1.1d suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 5.7.29-32-log client_version: mysqlnd 7.4.9 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /data/sites/web/scalecloudbe/www/wp-content WP_PLUGIN_DIR: /data/sites/web/scalecloudbe/www/wp-content/plugins WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined DB_CHARSET: utf8 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable ### jetpack ### site_id: 176555708 ssl_cert: No time_diff: undefined version_option: 8.8.2:1597737483 old_version: 8.8.1:1597650053 public: Public master_user: #2 philipdenys ([email protected]) current_user: #2 philipdenys ([email protected]) tokens_set: Blog User blog_token: PY20ZMJuN75f0YFX$$SeYA&lY2RFeK*F user_token: j#WWjbfjX*y^#Ay@OOT#fsYpu)eDtSrX version: 8.8.2 jp_plugin_dir: /data/sites/web/scalecloudbe/www/wp-content/plugins/jetpack/ plan: free HTTP_HOST: www.scalecloud.be SERVER_PORT: 443 HTTPS: on REMOTE_ADDR: 94.143.189.246 protect_header: {"trusted_header":"REMOTE_ADDR","segments":1,"reverse":false} full_sync: {"started":"Tue, 28 Apr 2020 07:42:30 +0000","finished":"Tue, 28 Apr 2020 07:42:32 +0000","progress":{"options":{"finished":true},"functions":{"finished":true},"constants":{"finished":true},"users":{"total":"1","sent":1,"finished":true,"last_sent":"2"}},"config":{"options":true,"functions":true,"constants":true,"users":[2]}} sync_size: undefined sync_lag: 0 seconds full_sync_size: undefined full_sync_lag: 0 seconds idc_urls: {"home":"https:\/\/www.scalecloud.be\/","siteurl":"https:\/\/www.scalecloud.be\/","WP_HOME":"","WP_SITEURL":""} idc_error_option: false idc_optin: true cxn_tests: All Pass. ### wpforms ### version: 1.6.2.2 license: basic lite: Nov 4, 2019 @ 10:23am pro: Dec 30, 2019 @ 9:05pm db_tables: nj0f_wpforms_entries, nj0f_wpforms_entry_fields, nj0f_wpforms_entry_meta, nj0f_wpforms_tasks_meta total_forms: 10 total_entries: 7 ### google-site-kit ### version: 1.14.0 php_version: 7.4.9 wp_version: 5.5 reference_url: https://www.scalecloud.be amp_mode: secondary site_status: connected-site user_status: authenticated active_modules: site-verification, search-console, adsense, analytics, pagespeed-insights, optimize, tagmanager required_scopes: openid: ? https://www.googleapis.com/auth/userinfo.profile: ? https://www.googleapis.com/auth/userinfo.email: ? https://www.googleapis.com/auth/siteverification: ? https://www.googleapis.com/auth/webmasters: ? https://www.googleapis.com/auth/adsense.readonly: ? https://www.googleapis.com/auth/analytics.readonly: ? https://www.googleapis.com/auth/tagmanager.readonly: ? search_console_property: https://www.scalecloud.be/ adsense_account_id: pub-731????????????? adsense_client_id: ca-pub-731????????????? adsense_account_status: approved adsense_use_snippet: no analytics_account_id: 1614????? analytics_property_id: UA-1614??????? analytics_profile_id: 2141????? analytics_use_snippet: yes optimize_id: none tagmanager_account_id: 6000?????? tagmanager_container_id: GTM-TL8???? tagmanager_amp_container_id: none tagmanager_use_snippet: yes ### amp_wp ### amp_mode_enabled: transitional amp_templates_enabled: post, page, attachment, elementor_library, is_singular, is_front_page, is_home, is_archive, is_author, is_date, is_search, is_404, is_category, is_tag amp_serve_all_templates: true amp_css_transient_caching_disabled: false amp_css_transient_caching_threshold: 5000 transients per day amp_css_transient_caching_sampling_range: 14 days amp_css_transient_caching_transient_count: 291 amp_css_transient_caching_time_series: 20200818: 0 20200819: 290 20200820: 290 20200821: 291 ### pll_options ### browser: 1 rewrite: 1 hide_default: 1 force_lang: 1 redirect_lang: 1 media_support: true sync: 0 post_types: post, page, wp_block, attachment, elementor_library taxonomies: 0 domains: 0 version: 2.8 default_lang: en primary: en => 2 | nl => 28 footer_menu: en => 3 | nl => 30 previous_version: 2.7.4 ### pll_language_en ### term_id: 8 name: English slug: en term_group: 1 term_taxonomy_id: 8 count: 138 tl_term_id: 9 tl_term_taxonomy_id: 9 tl_count: 7 locale: en_GB is_rtl: 0 w3c: en-GB facebook: en_GB flag_url: https://www.scalecloud.be/wp-content/plugins/polylang/flags/gb.png home_url: https://www.scalecloud.be/ search_url: https://www.scalecloud.be/ mo_id: 1520 page_on_front: 86 page_for_posts: 1335 flag_code: gb ### pll_language_nl ### term_id: 5 name: Nederlands slug: nl term_group: 2 term_taxonomy_id: 5 count: 36 tl_term_id: 6 tl_term_taxonomy_id: 6 tl_count: 1 locale: nl_BE is_rtl: 0 w3c: nl-BE facebook: nl_BE flag_url: https://www.scalecloud.be/wp-content/plugins/polylang/flags/be.png home_url: https://www.scalecloud.be/nl/ search_url: https://www.scalecloud.be/nl/ mo_id: 1519 page_on_front: 1522 page_for_posts: 2234 flag_code: be
- The topic ‘No hreflang field’ is closed to new replies.