Questions tagged [meta-tags]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
70 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
793 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 ...
0
votes
1answer
983 views

How do I add a meta tag when creating a node via REST API?

So I have this code, using Guzzle POSTing to create node via Drupal REST API. No error, but the field_meta_tags value is empty on the node created (still using default [node:summary] for the meta ...
1
vote
1answer
140 views

Edit meta tags per entity via field or entity property?

Is there a way in Drupal 8 to override the global meta tags at the entity (node) level when adding or editing content? I thought the option previously existed in 7.x, but I am not seeing it in 8.x. ...
1
vote
2answers
357 views

How do I add Google Scholar meta tags to a custom content type?

I use drupal 7 and I have custom content type named "Journal" I want add Google Scholar meta tags to "Journal" nodes. Like this: <meta name="citation_journal_title" content="Journal Name"> <...
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 ...
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?
5
votes
2answers
2k views

How do I add a specific meta-tag to all the pages of a site?

I want to prevent Google from indexing my website. I know I need this meta tag added to the header. <meta name="robots" content="noindex" /> How can I add this meta-tag to all the pages of a ...
1
vote
1answer
195 views

Is it possible to use different tokens in metatag based on content type

Lets say I have the summary field enabled on article type but not on page type and then I setup meta tag descriptions to use the token [node:summary] would is be possible to do something like if [node:...
1
vote
1answer
126 views

How can I use Metatag Module to set specific tags on specific nodes?

I'm using the Metatag module to set tags on content generally throughout my project. But there is one group of content where I want to be able to set the metatags for specific nodes. Because these ...
1
vote
1answer
900 views

META tags module description [node:summary] doesn't work [closed]

I have a content type with title, image, body field (long text with summary). I use meta tag module and when I add in Description: [node:summary] or [node:field_body:summary] nothing appears in the ...
7
votes
5answers
7k views

How do I add custom meta tags to a view page?

There doesn't seem to be an answer for Drupal 8 yet. I have the metatag module installed, it's a great module, but doesn't seem to address views at all. This post for Drupal 7 says that it comes with ...
1
vote
2answers
1k views

How to override default meta tags?

The meta tags module sets default meta tags that are rendering. However, I have a page with a panel and I am trying to override the default meta tags. I went into the panel and replaced the default ...
1
vote
0answers
51 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?
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 ...
16
votes
3answers
21k views

How do I add a meta tag in <head>…</head> section?

How can I add the following meta tag inside the <head>...</head> section in Drupal 8? <meta http-equiv="X-UA-Compatible" content="IE=edge" />
1
vote
1answer
64 views

Using a field for populating the meta-tags of view pages

I've got taxonomy pages that are emulated by real views. The vocabulary terms have an additional field "field_meta_description", where meta-description tags can be added. On the view page of each term,...
0
votes
1answer
471 views

Meta description to views [duplicate]

Is there a way to add meta description to views in Drupal 8?
0
votes
1answer
53 views

How to use the path suffix in the Metatag page title?

My articles currently have a Metatag page title [node:title]. Sometimes this results in duplicate page titles (articles can have the same title), which isn't desirable from a SEO point of view. ...
4
votes
3answers
2k views

Meta tag module not visible under individual node

I have installed Drupal 8 on my local machine with Metatags module for SEO. The global settings are available to edit under Configurations → Search and Metadata → Metatag but the Metatag tab is not ...
0
votes
2answers
2k views

The website is way too slow Error while sending QUERY packet. PID=11597 in /home/******/public_html/sites/all/modules/apdqc/apdqc.mysql.inc [closed]

all the pages on the website are taking more than 1 minutes to be displayed, and sometimes they are showing Connection Reset, I had a previous issue which caused the server to be down once I clear ...
2
votes
1answer
43 views

When and where should I replace tokens on a custom path for metatag context?

I have custom tokens defined in hook_token_info() and hook_tokens(). I need these tokens to populate metatag data for the metagag module on a custom path. I have the context module installed as well....
0
votes
1answer
277 views

Add metatags import to migration

I have made a migration module to import the full content from a legacy Drupal 6 site to my new Drupal 7 site, using the migrate d2d module. Everything works fine, but I have just discovered that ...
0
votes
2answers
294 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
154 views

How to set specific Meta Tag values while creating Article Content.?

I am using Meta tags(Module: Metatag) on my Article content type page. I want to set specific Meta Tag values depending on Article type I select for example by default check some check box for robots....
1
vote
1answer
108 views

how to add tags to article pages [closed]

I'm new to Drupal. I accidentally deleted the Tag feature on our article page. Could someone explain how I can add it back to that page. It also populated on a specific page.
2
votes
1answer
2k views

How to use drupal_add_html_head() to add the same metatag multiple times?

I have a node which has multiple images attached to it. And each image should also be printed in a <meta property="og:image" content="image_url" /> metatag. I have tried to use ...
0
votes
1answer
717 views

Can we migrate basic Metatag data without customization? [closed]

I'm ought to Migrate-upgrade from D7 to D8 and deleted all modules besides Metatag (and its dependencies --> Ctools and Token). You might have an idea how could I keep all the basic Metatag data for ...
2
votes
0answers
104 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 ...
1
vote
1answer
27 views

Meta title content based on node fields

Is there a module that will allow me to set the default meta title for a content type to be the title field of the node displayed?
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 ...
3
votes
1answer
2k views

Simplest way to get a full set of favicons and touch icons

So you've generated a big batch of favicons, touch icons, tiles and whatever to cover the full range of files a broswer might look for, and the generator you used has helpfully given you a whole lot ...
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
0answers
235 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 ...
0
votes
1answer
1k views

Modify metatag description programmatically Drupal 8

I modified the meta-tag title for a view in hook_preprocess_html() using the following code. if (isset($variables['head_title'])) { $variables['head_title'] = $variables['page']['#title'] . " | ...
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 ...
1
vote
0answers
40 views

Site changes multiple title tags on load [closed]

My site is https://www.swiftdigital.com.au. Its built in Drupal 7 and uses Bootstrap 3 theme. The issue is with <title> tag. When I load the site in browser firstly it displays the correct site ...
0
votes
1answer
39 views

Disable rewrite of html_tag?

In my module function hook_page_attachments(array &$page) { $og_image = array( '#type' => 'html_tag', '#tag' => 'meta', '#attributes' => array( ...
3
votes
1answer
2k views

How can I add meta tags for pages created with views in Drupal 8? [closed]

I need to add meta tags for pages created using views in Drupal 8, I tried to use Metatag module. but it seems like there is no views integration on D8 version of this module. I also tried to install ...
1
vote
0answers
69 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 ...
0
votes
1answer
24 views

Hotel Diamond and Metatag: the META information doesn't appear in front page

I have a site using Drupal 7 and the Hotel Diamond theme. I am trying to add META tags to all the pages in my site (description, Open Graph tags, etc.), and it's working in all of them except the ...
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 ...
-1
votes
2answers
830 views

How to unset $page['#attached']['html_head_link'] from head?

Help me with this question please: how to unset html_head_link from pages in my Drupal 8.0.3 site. I mean, delete this META: <link rel="delete-form" href="/node/{id}/delete" /> <link rel="...
0
votes
1answer
81 views

Second Product variant image in fb share is not coming

I am using [node:field-product:0:field_images] metatag image. With which I am getting top level variant image always. How can I get my second product variant image in facebook share, when I select ...
0
votes
0answers
529 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 ...
1
vote
1answer
261 views

How to not have an image in a facebook share

I have a problem Although many have the problem with not have the right image, I'm trying to have no image at all. I have ads on the page that get chosen because the content type has no image. I ...
0
votes
1answer
129 views

How do I edit individual meta tags on a panelized page?

Setup I have: Drupal 7, Panopoly 7.x-1.30, Metatag 7.x-1.13 I've installed and enabled both the metatag and metatag_panels modules. Perhaps I'm just not looking in the right place, but I don't see ...
0
votes
1answer
78 views

How to translate metatag token into text?

I'm trying to get the data from meta tag using node_load and for some reason when is using the default field, which is Token it gives me this ugly array. Instead of title and description that ...
0
votes
1answer
208 views

Canonical link for multidomain multisite

I have different domains in a site in Drupal 7, which is multidomain and multilanguage, using modules Domain Access and i18n. I have duplicate content in some URLs accross domains, and I want to avoid ...
1
vote
1answer
605 views

How to pass metatags from a node into a view?

I'm sending the information of my node into an external application and I need to be able to send the meta tags of that node as well. Unfortunately, I do not see the meta tag fields. My question is.....