It would be awesome if plugin and theme authors had a hook into the <head> attributes like we do for <html>, but there does not seem to be a standard for that at the moment. An alternative to modifying your header template(s) would be to activate the WPSSO JSON extension (aka WPSSO Schema JSON-LD Markup). In that case, WPSSO Core would not need to add Schema meta tags to the <head> section (all Schema markup would be contained in the JSON-LD block instead), which also means that WPSSO Core does not need to define the Schema type in the <head> HTML tag attributes – so no modifications required. 🙂
A hook for the <head> attributes would also allow plugin and theme authors to include Open Graph namespace attributes in a better location — all plugin and theme authors now use the ‘language_attributes’ hook, which places them in the <html> tag attributes, but that container applies to the whole HTML document, not just the <head> container, which is where Open Graph meta tags are located.
js.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Huh?
However, the change does not work on ww.wp.xz.cn sites, even the business plan, because they do not allow theme edits.
@fraughtithrouble, Where did you get that from?
If you need support to edit the theme’s files we can help you, but I’m really confused now. It sounds like you’re mixing WordPress.com (a completely separate entity) in with ww.wp.xz.cn (an open source project).
Wordpress.com I meant to say…typo….
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
@jsmoriss, Do you know why the OP is experiencing a problem with your plugin’s feature to modify the <head> tag? This would seem your domain and not Twenty Seventeen.
Edit: See below; that would explain it.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
@fraughtithrouble, As you have a WordPress.com issue please post on their forums: https://en.forums.wordpress.com/
We cannot support WordPress.com issues here.
I understand that the issue about not being able to modify it is a wordpress.com issue, but my topic is about the theme lacking the SEO compliant header tag. And that is a ww.wp.xz.cn forum topic for the theme.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
I don’t know how I can help you if you’re using WordPress.com.
JS, I tried what you said, and the error message does not reoccur. So I presume it works. A BIG THANKS! Now if only the support at wordpress.com reads this thread!
Witam. Nie potrafie zmienić nagłówka oraz tła . Wersja 4.9.1
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support