Making WordPress.org

Opened 5 years ago

Last modified 5 years ago

#4897 new defect (bug)

Gutenberg page omits hreflang tags

Reported by: jonoaldersonwp's profile jonoaldersonwp Owned by:
Milestone: Priority: lowest
Component: General Keywords: seo
Cc:

Description (last modified by dd32)

Gutenberg pages, like https://ary.wordpress.org/gutenberg/, omit hreflang tagging.

As per other templates, a matrix of hreflang equivalents should be generated and output.

Change History (2)

#1 @dd32
5 years ago

  • Description modified (diff)

#2 @diddledani
5 years ago

The hreflang output in the rest of the W.org site is handled by https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/functions.php#L192. I'm unsure whether copying this code into either a shared location to be called from both wporg theme and gutentheme, or into the gutentheme directly will be suitable to fix this issue.

The Gutenberg section is actually a separate multisite blog so I'm not certain that the same localisation will work in both places. The WordPress-meta-environment in VVV isn't helping me here because it doesn't know about the Gutenberg site.

Last edited 5 years ago by diddledani (previous) (diff)
Note: See TracTickets for help on using tickets.