Questions tagged [meta-tags]

The tags placed in the <head> element to provide meta information about the document are called meta-tags.

0
votes
1answer
16 views

Token for first media Image in the body

I need to display an image url in a metatag item. The problem is on one of my node types, the editors only upload an image as a media entity inside the body. What is the best way to handle this?
-2
votes
0answers
14 views

Canonical and shortlink adding unwanted query string [closed]

One of my site adding unwanted query string to the canonical and shortlink. i.e http://sitename.com/test?cid=95900 When i clear the cache that query string is disappeared. But after few days it ...
0
votes
1answer
15 views

Add Open Graph Metatag in backend

I need to set the og:iamge metatag using the Metatag Module. Since there is no option for editing the names of the metatags or adding custom ones, I'm unsure if this is possible. Is it possible to ...
1
vote
1answer
817 views

How to use node field tokens as a value in Metatags module?

I am trying to optimise SEO on my site by ensuring that each page has a unique value for descriptive metatags. I am trying to achieve this using the Token and Metatags modules, and am using Drupal 8. ...
0
votes
2answers
547 views

ShareThis facebook posts previews are perfect, but posts empty images

I have been having problems with facebook integration, and I know there are lots of other posts about this as I've been looking through lots of them. I see plenty of information about FB picking the ...
0
votes
0answers
15 views

Metatag not rendering front-end

I'm using the metatag module to set metadata on a custom content type. I've added metatags as a field and added data to pieces of content but when I check the source on the front-end there is no data. ...
0
votes
0answers
14 views

Automatically add meta tags on node creation

I'm currently maintaining a lot of different sites containing the same information pages (example: profile pages with the same content but on different sites/base URL) and I'd like to consolidate this ...
1
vote
4answers
838 views

Translate homepage meta Title and description

I have a Multilingual Drupal 7 site using i18. But how do I get my homepage meta Title and description translated?
0
votes
1answer
373 views

Need to override page/meta title on views page

I have installed meta tag modules,then enable the meta:views mudule for meta tags. After that i have added meta tags from views interface. Now I need to override these value on the basis of exposed ...
0
votes
1answer
21 views

amp-img tag, replace to simple img

I need to change this tag <img> to <amp-img>, I've been researching about this and I have this function for change the img tag. function amptheme_image($variables) { // Remove RDF ...
1
vote
1answer
714 views

How do i add Meta Tags on panels page?

I want to generate meta tags on panels node pages. I am adding Meta tags using nodewords module, it works fine on other node pages except panels generated layout. Any workaround for this?
8
votes
1answer
3k views

Remove “Generator” meta tag?

What is the easiest way to remove the "Generator" meta tag in Drupal 8? <meta name="Generator" content="Drupal 8 (https://www.drupal.org)" /> Can this just be done in a few lines of code?
3
votes
1answer
357 views

How to pull pictures and summary information from external web pages when posting links?

When posting a link (external web page) to my Drupal blog, is there a way to have Drupal automatically pull the picture and summary information from that link and include it in the post on my Drupal ...
0
votes
0answers
44 views

Description metatag from first row of the view

Okay. Current version of metatag_views does not support views data in it's tokens. The idea is to make custom handler based on Custom text, where theme() method will have the rendered text. If I put ...
0
votes
1answer
367 views

Install Meta Tags and Meta Tags Quick modules on the same site (D7)

Short: Are Meta Tag and Meta Tag Quick incompatible modules? I am configuring a site that has Meta Tag Quick module but it doesn't allow me to have a meta description tag. It creates an Open Graph ...
0
votes
0answers
10 views

Canonical URLs not being generated if field is not translated

Using Field Translation (not creating new nodes for locales), the canonical URL using metatag current-page:url:absolute will not generate current lang prefix if fields are not translated. I guess at ...
0
votes
0answers
19 views

Advanced Meta Tags and Image Uploading

A little background: We have a Drupal 7 site with hundreds of thousands of nodes, each month we create between 5-8,000 new nodes that are essentially products we sell. These nodes are 80% clones of ...
0
votes
0answers
30 views

Add metatag field to content type programmatically

I'm trying to create a metatag field (from the metatag module) to my content type programmatically. I know how to create a textfield to my content type (by using the node.module as example) but can't ...
0
votes
0answers
40 views

How to reset to default overriden Views metatags?

I'm using a Metatag module and also Metatag: Views. This module works fine, but I don't see how I can reset to defaults overriden Metatags in views. It is possible? From this To this
1
vote
1answer
1k views

How to display Meta tag description for Views genereated page

How to display meta tag description for Views generated page. Title is displaying by views but not description. Even I entered in Views description PFA. Along with that I tried "Metatag Views ...
0
votes
2answers
211 views

MetaTag with JSON API won't serialize

I'm attempting to get MetaTag info for a decoupled site but the JSON API is not converting the object to JSON correctly. I'm seeing other fields show up fine - the issue is isolated to the MetaTags. ...
1
vote
1answer
33 views

Does the summary area support input filters?

I have noticed that text filters placed in the summary area don't seem to work, that the raw text appears in the summary info when posted in Twitter, Facebook and the like. Is that some inherent ...
0
votes
1answer
90 views

Facebook does not use article image

We installed the metatag module, and we activated all metatag entries on the modules administration page. On the module settings we selected content type Node:article and went to Open Graph. We edited ...
1
vote
2answers
17 views

How can I change a page's title for each page individually?

I am wondering if there is a way that I can change the page titles so that users can see a nice title but that at the same time, the internal title of that same page be different?
1
vote
1answer
1k views

metatag for custom path [closed]

I need to set some info for SEO and sharing. I know that I can use the Metatag module for nodes, views and front page. In fact, I use it for them. Now I need to set some information for custom paths (...
1
vote
1answer
43 views

Customize the appearance of sharing articles to social media

I am new to Drupal and I just added a few buttons for sharing articles to social media (Facebook, Twitter etc.) I want to customize the appearance of sharing posts. After a few "research" I found out ...
5
votes
2answers
2k views

Drupal 8 Metatag and Media Entity modules to set meta image tags

On a Drupal 8 content type, I have a field with an entity reference field to a Media Entity field. I would like to use the Metatag module to set the image that is on this Media entity in the og:image ...
4
votes
3answers
5k views

How do I overwrite meta tags?

In Drupal 7 I used this to unset unneeded elements and total overwrite meta tags: function MYTHEME_html_head_alter(&$head_elements) { // Unset all. $remove_array = array( '...
1
vote
1answer
578 views

How to override canonical URL?

Following the Translating content documentation we have setup our site to have Spanish, English, and Japanese. When we are adding, editing, deleting, and publishing pages in different languages we ...
1
vote
0answers
88 views

Reduce or Remove duplicate data in metatag table

We are using Metatag 7.x-1.7. Our current metatag table is 1.6 GB's. I'm trying to reduce this table significantly. I've looked for solutions that may have already been brought up for size reduction ...
1
vote
1answer
308 views

Metatag images don't work anymore after updating [closed]

I was on Drupal 8.5.x and Twitter cards and Open Graph on Facebook were displaying correctly. After updating to Drupal 8.6.1, the images don't display anymore. The others data (title, description, ...
1
vote
2answers
164 views

How do I translate a meta tag?

I want to translate the title meta tag added to views on a Drupal 8 site, but I didn't see any option in the Translate View section. How can I translate meta tags?
2
votes
2answers
831 views

Add meta tags on a page generated by a custom module

I am trying to modify the meta tags of one of the pages of my web. For example, I want to change the title, the description and add the robots tag. I have tried using the token and metatag modules to ...
0
votes
1answer
24 views

Adding meta tag to a view

I am working with Drupal 8. I want to add meta tags for title and description for a view. Is there any option?
0
votes
1answer
25 views

Common meta tag description for a particular content type

I am working with meta tag module in drupal8.I want to add common meta title and description for a particular content type.How can i do this?
2
votes
1answer
1k views

Where is the the full tokens list for a site?

In the Metatag module UI it uses tokens but only shows a small list of tokens that are relative to the site information rather than the full content tokens which it can use, in D7 there was an admin ...
9
votes
4answers
2k views

How to force the canonical URL to use http?

On our page we use the Metatag module to show a canonical meta tag. In the configuration we use the [current-page:url:absolute] token. This works fine, but the problem is, that whether the page gets ...
1
vote
2answers
172 views

How to find meta tag source?

I have a site where the conditional, <!--[if IE]><![endif]--> <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> shows in the header, but I can't ...
1
vote
0answers
18 views

Read opengraph property and use as field title

I have a simple site that generates an article content in the page. This content is a link preview of the article URL. My goal is when an article is created I want to use metatag property sitename as ...
0
votes
1answer
30 views

disable translatable route object

I've developed a module which generates and displays dynamic content. The title of the page is also generated dynamically in the controller as show below: if ($route = $request->attributes->get(...
7
votes
5answers
4k views

How do I add description and keyword to the front page?

I would like to know how to set description and meta keywords for the front page. I use the Meta tags module for articles, but it is not working for the front page. I use Panel as my front page. My ...
0
votes
1answer
3k views

Canonical URL for Front Page - without path

I've been looking for a solution to the Front Page URL issue that meets the following criteria. Allows me to keep the Canonical and Description Tags from Meta Tags Quick on Views sub-pages. Allows ...
0
votes
1answer
319 views

can you put views field values into a global token?

Suppose I want to use a paragraph field value of an entity for metatag title (by using metatag views module) I can successfully get the value of the paragraph entity and display it on the view Now, ...
0
votes
1answer
457 views

Meta description to views [duplicate]

Is there a way to add meta description to views in Drupal 8?
1
vote
1answer
710 views

Does using modules Metatags and Metatags Quick together cause SEO problems?

I am checking the SEO of my Drupal 7 site, where I installed the Metatag and the Metatag Quick modules. Does using both the modules together on a site cause SEO problems?
2
votes
4answers
8k views

Meta Tags on Frontpage

It doesn't seem I can get my meta tags to appear on the page--front.tpl.php on a Drupal 7 site. I feel like I have all the correct settings in the Meta tags module configuration, and I have cleared ...
1
vote
3answers
5k views

How to translate the description, and abstract metatag for the front page in a multilanguage site?

I am using the metatag module. In admin/config/search/metatags I am controlling my metatags for my front page using Global:Front page. Here it is my configuration How can I translate these metatags ...
4
votes
1answer
3k views

I can't translate description of front page in my multilingual site

I have a multilingual drupal 7 site. I want to translate my description metatag of my English frontpage version of my site. Any other page show ok in site Greek and English. The problem is it only ...
0
votes
2answers
286 views

Metatag is not showing on front page whereas the front page is set from custom content type

I have a custom content type "Community" and a page from this content type is selected as front page on the drupal 7 site (from system/siteinformation). i am using Metatag module. All other pages are ...
0
votes
1answer
38 views

How can i remove duplicate encoding meta tag

I have repeated charset meta tag in all my drupal pages. I have been using my metatag module. To optimize SEO results, this error is reported as primary to fix. I have used jquery(ready & load ...