Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [meta-tags]

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

3
votes
1answer
108 views

Translation table: How do I restore a deleted metatag string?

At the Translation table module (admin/config/regional/translate/translate), I was translating metatags. By accident I deleted one (metatag:global:og:street-address). I thought I just delete all the ...
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 ...
1
vote
1answer
796 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. ...
1
vote
1answer
49 views

Metatags generated from views results

I'm using the Metatag module to include appropriate Open Graph, etc. tags to delineate site content as it is shared on social media sites. The front page of our site is a Views Page, feature only the ...
1
vote
1answer
76 views

Duplicate Meta description on shared node across multiple subdomains

I have a drupal site with multiple subdomains which share a single node. I installed Yoast SEO for Drupal and added title / description etc. for each node. Now the problem is that it shows same meta ...
1
vote
1answer
590 views

How to make metatags output proper images urls

I'm tring to create set of open graph tags for better sharing of my page. Unfortunatelly I cannot make Metatags output proper path to images attached to nodes. I have node with field_promoted_image. ...
1
vote
1answer
712 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?
1
vote
1answer
55 views

After updating the metatag module I am unable to edit the metatag section of a taxonomy term

Today I have updated the Metatag module to the latest version (7.x-1.0). However, I try to edit the metatags of a taxonomy term and, after saving the change, nothing changes (it doesn't save the ...
0
votes
1answer
20 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 ...
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?
0
votes
1answer
237 views

full html and ckeditor strip some meta tags

I have this code in the field_data_body table in Drupal 7 in the database: <div itemprop="image" itemscope itemtype="https://schema.org/ImageObject" class="ioc" style="width: 276px; margin-right: ...
0
votes
1answer
39 views

Canonical link on node's print version

I'm using Metatag and Printer, email and PDF versions modules, and I want to have the canonical link on the print version of the nodes too, but for some reason they're only showing on the regular ...
2
votes
0answers
213 views

How to set schema.org metatags for products in Drupal Commerce 2?

I'm using https://www.drupal.org/project/schema_metatag for my Drupal 8 + Drupal commerce 2 online store and the question is - how to configure fields and what tokens should be used to display ...
2
votes
0answers
99 views

How do I set meta tag information in a view display based off the contextual filter?

I have a display in a view (page) which uses a taxonomy term id as a contextual filter to choose what content to display. I need to be able to change the meta tag based on the value of the taxonomy ...
2
votes
0answers
26 views

Why doesn't Page Title pull [node:title] in to all pages

In the Metatags section of each page, the [node:title] field is supposed to pull the data into the Page Title. This works for many articles on our site, but doesn't for and many seemingly random ...
2
votes
0answers
51 views

Sites module: get the unprefixed, global URL

Drupal beginner here. I'm working on a site which uses the Sites module to create location-specific URL's for all nodes. So say we have three locations: New York, London and Hong Kong. Plus Global of ...
2
votes
0answers
45 views

Translate Node Metatags using modules: il8n + metatags

How does one configure translation of Node metatags (Title, Description) which allows the content author to translate metatags from the node edit page? Similar to how they translate individual fields ...
2
votes
0answers
96 views

metatag_panels does not work on panel pages

I want to add the <meta name="keywords"/> tag to my pages. For this, I have installed the metatag module. It works fine for all pages except the panel pages. So I activate the ...
2
votes
0answers
385 views

How to add multiple meta tags with the same property?

I'm trying to set up OpenGraph tags on a page containing a video. I'm currently setting up the usual sorts of <meta property="og:video"...> tags with calls to drupal_add_html_head(), and that's ...
2
votes
0answers
574 views

Get Meta Description Tag of a Page

I want to get the meta description of a page and pass it on as a parameter to another function. Something similar to get_post_meta() in WordPress where you can get the meta values after you pass the ...
2
votes
0answers
266 views

Does a user profile using profile2 work with the metatags module?

I am using the profile2 module. I am looking for a way to set my meta tags based on user profile type. For example, I have teachers, students, and parents as profile types and each of their profiles ...
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 ...
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
0answers
89 views

Paragraph fields as node tokens in Drupal 7

Is there a Drupal 7 equivalent to [node:field_paragraph:0:entity:field_hero_image]? I'm trying to use an image field in a paragraph as the og:image using the Metatag module, but the only token I can ...
1
vote
0answers
69 views

<title> blank after installing Metatag

I have a theme that uses several template files like page.html.twig, page--title.html.twig, etc. I installed Metatag to make my website more understandable when sharing links to it via LinkedIn. ...
1
vote
0answers
734 views

facebook change default og:url and canonical URL with metatags module

I moved my site from HTTP to HTTPS, now a few days later my facebook likes are waaay lower. For example one article under HTTP was 25K likes now under HTTPS it is 3K likes. I am face with the facebook ...
1
vote
0answers
47 views

Current Date + 5 days in Date Tokens

[current-date:custom: F, Y] This displays December, 2016 when today's date is 1-31st December, 2016. How can we start showing December, 2016 from last 5 days of November? Thanks in advance.
1
vote
0answers
229 views

Metatag OpenGraph for youtube video using Embbed Video field module

I cannot find a way to make Metatag Opengraph use the correct tokens for sharing video content type on Facebook. My field is field_video and I am using it in video in opengraph. Since this is not ...
1
vote
0answers
66 views

Metatags module not rendering tokens in content

We created custom tokens for a site and they are included in things like titles and summaries, so are picked up by the metatag module. However, when I look at search results in Google, I see the ...
1
vote
0answers
49 views

Context module not changing page title tag

Issue is, that in my case Context module isn't changing <title> tag of the page. I've configured Context module to change Meta tags (title and meta description) for specific view pages of my ...
1
vote
0answers
43 views

Why are comma-separated tags gluing?

I installed metatags module and text list formatter. And I add in metatags keywords a string [node:field_tags]. And at my computer all is good, but on a server. It don't work. It looks like in the ...
1
vote
0answers
220 views

Page title - Token drupal 7 issue

Shortly, here is my situation: I have installed both Metatag and Page Title modules. The Page Title module page shows all my nodes and correspondent meta title I inserted. The issue is that on ...
1
vote
0answers
232 views

How to use drupal_set_html_head in a page created though my module

I have my module like this function mymodule_menu() { $items = array(); $items['mymodule'] = array( 'title' => 'mymodule', 'page arguments' => array('mymodule_form'), ...
1
vote
0answers
368 views

Drupal 7 meta description in block

How can i print a node meta description inside a block? Tried to use tokens but can't figure out the right path...
1
vote
0answers
722 views

Meta tags don't work for “custom content type”

The keywords and descriptions I type show up on all standard pages (articles, basic pages, etc), but they do not show up on any custom content types. All I see are the default meta-tags without the ...
1
vote
0answers
225 views

Domain Acces + Internationalization + Metatag: How?

I am using those three modules i mentioned in title in my installation. I was able to localize it pretty much, but what about meta tags for different domains and languages? I am also using Domains ...
1
vote
0answers
823 views

Metatags quick - no output

So I installed metatags quick module 7.x-2.3+3-dev on D7.12. Since my site is bilingual and I do not need any per entity variations, I decided to go the path-based way and checked the Use path-based ...
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 ...
0
votes
0answers
43 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
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
29 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
39 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
0
votes
0answers
63 views

Use custom metatag generated from reactjs code

I have a chart layout used in ContentTypeX Manage Display. Using reactjs, this chart is converted into an image using toDataURL process. Now I have a Rule that creates a Post content with the URL of ...
0
votes
0answers
33 views

Determine source of data corruption in Metatag module

I've run into data corruption issues on my site that seem to be stemming from the Metatag module. I've currently disabled Metatag and its associated modules, but previously, in addition to the base ...
0
votes
0answers
516 views

Adding custom image field to Metatags D8?

I'm using Metatags module on Drupal 8, all text fields seem to be working just fine. I'm trying to set the OpenGraph Image tag from an image field in my content type, called field_thumbnail. Here are ...
0
votes
0answers
175 views

Drupal 7 commerce meta tags not updating

I am working with commerce module in drupal 7. I have installed metatag module. It working as expected for drupal default entities like node, taxonomy etc. But when I try to add meta tags for ...
0
votes
0answers
46 views

While making custom URL, Meta tags is not displaying custom URL?

I'm using drupal 7 and using meta-tag module, while inserting the custom url I'm not able to get the custom url display in the source code. If i insert in meta-tag page title: user [node:title] | [...
0
votes
0answers
80 views

Meta-refresh based on Link Field

I have a custom content type that contains a Link field. I want to add a Meta refresh to every page of that content type that will redirect to the contents of the link field after a fixed number of ...