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.

0
votes
0answers
12 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
19 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
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
9 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
37 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
1answer
73 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
32 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 ...
1
vote
1answer
38 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 ...
1
vote
1answer
470 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
1answer
252 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
144 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?
0
votes
2answers
165 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. ...
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
23 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
868 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 ...
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
29 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(...
0
votes
1answer
281 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
33 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 ...
1
vote
0answers
86 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
83 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 ...
0
votes
0answers
22 views

Custom Meta Tags Using Views and Node

I've made some custom code for a view on my website that looks at the node being displayed on server and gets the title for it and then changes the title of the view. This works really well for custom ...
3
votes
1answer
270 views

How to use default field_image if value is not provided?

We are using Schema.org Metatag module to display meta tag attributes to the Article content type. We have a field that we using as an ImageObject using the field_image field. The field_image is setup ...
0
votes
1answer
59 views

What is the proper way to cache a http header tag?

I find examples of adding a header meta tag, such as using an event subscriber or using hook_page_attachments. The problem I have is that both of these methods add the tag only in the case of an ...
2
votes
1answer
83 views

How to increase meta tag description field to 320 characters?

We are using metatag v8.x-1.5 on our D8 site (v8.5.3). When filling out the metatag description field, we enter any where from 180-320 characters into the field. However, when the page is displayed it ...
2
votes
2answers
738 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 ...
2
votes
0answers
206 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 ...
0
votes
0answers
60 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
1answer
68 views

Remove “<em> edit Article </em>” and [current-page:pager]

I'm working on a Drupal 7 site in which I'm using Meta tag module for SEO purpose. I have configured the meta-tags global and content settings. When I try to edit a node for a content type, for ...
1
vote
1answer
93 views

Add a field in node metadata

I am trying to make a module that has two parts: 1) It calls an API when article is set to published. The API returns a work id. 2) The workid must be saved to the articles metadata or ...
0
votes
1answer
577 views

Drupal 8 hide meta tag fields in node form

I am just wandering is there a way to hide some of the input fields in MetaData while creating/editing a node. For example, I want to hide, Geographical place name and Geographical position, that ...
0
votes
2answers
417 views

Generate meta in drupal 8 controller

I'm creating a custom module. This module displays public custom content without node and views . For this content custom page , I would like to add dynamic meta keyword and meta description . I ...
1
vote
1answer
740 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. ...
2
votes
3answers
399 views

Blank spaces opening RSS XML file - How to solve?

All of the sudden, we are experiencing problems with our RSS feed which comes with the Drupal core 7.x . It is no longer valid due to two spaces before the opening XML tag. The following error is what ...
0
votes
1answer
231 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: ...
-1
votes
1answer
126 views

How to fetch taxonomy details from uuid or from taxonomy alias

How canI fetch the taxonomy details from the uuid or from taxonomy alias. My url looks like http://test.com/jobs/finance-accounting?job_category=a4c24884-d2g7-41c6-99f5-eb9783d6b992 which is a ...
-1
votes
3answers
54 views

Adding metatags in hook_preproccess_node()

I want to add variable meta tags depending on the node (a picture and custom title). These custom variables are generated in hook_preprocess_node(). Is there a way to add the metatags inside this ...
1
vote
2answers
94 views

How to control metatag module's tags from a page callback?

I have some pages which are created by page callback functions. I'm using the metatag module. I'm on D7 I need to control the metatags output (specifically the description/og:description). This ...
-1
votes
1answer
148 views

Does Yoast SEO put “Focus Keyword” as H1 Tag?

At the outset thanks you all for not assuming that I do coding. My question is related to my very simple and a first-timer's website http://enconengineers.in/ written in Drupal-8 with Zircon theme. ...
4
votes
1answer
642 views

How do I configure meta tags for a panel page?

How do I configure meta tags for a panel page? I want to change title, keywords and description. Ideally I want to use Yoast.
0
votes
1answer
183 views

Custom Theme - Add page specific meta tags / title to pages

I am new to Drupal, but I am very familiar with WordPress. In WordPress, I am able to hook into the head of a document with wp_head to add things like page specific meta tags. When using a custom ...
0
votes
1answer
36 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 ...
0
votes
1answer
18 views

add “items_per_page” number in title tag and meta tag

I created a view which has set up "Exposed items per page options." I used "24,48,72" as my options. Here is my view "Exposed setting": When I choose "items per page" as 72, the url of that page will ...
0
votes
1answer
29 views

How do I block individual content items from search engines?

I need to create multiple landing pages for my food business running a Drupal 7 site, same page, different prices, offers, coupons, different OGP tags for Facebook posts etc. So I will have dozens of ...
-2
votes
1answer
574 views

Edit meta tag for taxonomy terms

I have around 15 categories in my site. I need different meta tags for each category page. How is that possible? I have tried using meta tag context.But it didn't worked. I have these modules enabled: ...
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. ...
2
votes
0answers
716 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 ...