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
0
votes
0answers
23 views

How can I change the value of the og:image meta tag?

I want to change the value of og:image property for below tag programmatically. <meta property="og:image" content="https://example.com/sites/default/hotelier_in/styles/themes/hotelierindia/logo....
0
votes
0answers
22 views

Wrong path of Image for property = “og:image” of meta tag in content view source

I have uploaded an image in my content. When I checked view source of the page, it shows the wrong image path for og:image property of meta tag. After uploading the image in my content, image path ...
0
votes
1answer
19 views

Link formatter to display link title, image and summary

I know I've seen a module that does this at some point in the past but can't seem to find it right now. In Drupal 8, I have a link field. I want to fetch that link's metadata so I can display the link'...
0
votes
4answers
855 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
0answers
32 views

How can I get the metatag_config site name by consulting my db with php?

I want to obtain the metatag_config data through a mysql query with php from my db drupal, in order to obtain the site name, description, keywords and abtract. How can I do it? Or where they are ...
-1
votes
0answers
30 views

Changing $base_url

In drupal8 , when i tried to set $base_url in settings.php its not reflecting.I am using below code. if (isset($_ENV['AH_SITE_ENVIRONMENT'])) { switch ($_ENV['AH_SITE_ENVIRONMENT']) { ...
-2
votes
1answer
23 views

How to use apostrope in meta description

Whenever I use an apostrophe in a meta description the browser prints the code as &#039;. Is there a way to prevent this? These are coming trough a custom module that builds out the page.
2
votes
1answer
620 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.....
0
votes
1answer
374 views

Install Meta Tags and Meta Tags Quick modules on the same site

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 ...
1
vote
1answer
719 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?
3
votes
1answer
360 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 ...
17
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
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?
2
votes
1answer
686 views

Add Meta tags and Title on hook_menu “page callback” [closed]

How to add Meta and Title tags to the document head on hook_menu "page callback"? Drupal 7
0
votes
1answer
25 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?
0
votes
1answer
18 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
911 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
552 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
16 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
15 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
1answer
404 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
52 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 ...
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?
0
votes
0answers
45 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
37 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
51 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
268 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
41 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
116 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
50 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
785 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
90 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
442 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
215 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
1k 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
25 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
2k 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 ...
10
votes
4answers
3k 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
180 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
31 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 ...