- Issue created by @monaw
Here's a blog post https://www.morpht.com/blog/unleashing-power-metatag-custom-tags which would help you.
I'll write a drupal org handbook page for custom tags- π§πͺBelgium gillesbailleux La Roche-en-Ardenne
Greetings,
@naveenvalecha's blog post begins with an example of a custom meta tag:
<link rel="alternate" type="application/rss+xml" href="https://example.com/rss.xml">
The blog post continues with a custom meta tag added through the metatag_custom_tags module:
<meta name="sitename" content="Custom Meta Tag - Demo Site">
To my understanding, the metatag_custom_tags module currently allows two attributes and not three as mentioned in the first example.
Here is the custom meta tag I would like to create:
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
Here are the informations implemented in /admin/config/search/metatag/custom-tags/icon:
- Name: icon
- Description: SVG favicon
- HTML element: Link
- Attribute name: Rel
- Value attribute: Href
Adding the value /favicon.svg in the custom tags field, this generates the following custom tag:
<meta rel="icon" href="/favicon.svg" />
How do I add the type="image/svg+xml" attribute in the custom tags field? Not with a comma because this generates two custom tags. Neither with a pipe: I tried numerous possibilities and none worked.
Please tell me how to add the type="image/svg+xml" attribute. Thank you.
@gillesbailleux
The Custom Meta tags is designed to support the single html attribute.
I have updated the blog post to reflect that https://www.morpht.com/blog/unleashing-power-metatag-custom-tags
I have also updated the issue title and description and converted it to a feature request to seek @damienmckenna thoughts and approval on it before doing the code changes.- π§πͺBelgium gillesbailleux La Roche-en-Ardenne
Thank you @naveenvalecha
- πΊπΈUnited States DamienMcKenna NH, USA
This would be a great feature improvement for 2.2.x
- Merge request !178Issue #3488276 by Naveen Valecha, gillesbailleux, monaw, damienmckenna: Custom Meta tags - Support multiple attributes β (Open) created by naveenvalecha