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
3
votes
1answer
364 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 ...
2
votes
4answers
187 views

How can I change the front-page title when front page is not /node?

I changed the site's front page from /node to another page. However, now the title of the front page is page name | site name. To clear up any confusion, by "title," I mean the phrase ...
0
votes
2answers
539 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
0answers
10 views

metatag_hreflang outputting extra hreflang tags

I need to generate hreflang tags in my website and I've installed metatag_hreflang submodule (belongs to metatag module) It's now outputting the following <link rel="alternate" hreflang=&...
21
votes
6answers
27k 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" />
0
votes
1answer
17 views

How do I add multiple images in JSON to meet Google's schema.org requirements?

The Google guidelines for article on schema.org state: For best results, provide multiple high-resolution images (minimum of 300,000 pixels when multiplying width and height) with the following ...
0
votes
2answers
574 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
14 views

Meta-tags doesn't work in Views

I dont know why the meta-tags is not working in Views. I'm using the Meta-tag Version: 7.x-1.27 My views version: Version: 7.x-3.24 I try to change the views meta tag to any text, but it is still not ...
1
vote
1answer
1k 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
4answers
885 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?
7
votes
5answers
9k 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
1answer
65 views

How to handle the cache per user in REST Resource?

I have a requirement to expose a specific content type data via REST end point. Below is my code: public function get() { $current_user = $this->currentUser->id(); $user = $this->...
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 ...
-2
votes
1answer
194 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
756 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?
4
votes
2answers
823 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
391 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 ...
0
votes
0answers
43 views

Change meta description

I created a website for my small company and I wanted to share it on social media site. Doing so, I noted I get the Lorem Ipsum dummy text as meta description. How do I change that text?
1
vote
1answer
21 views

Metatag migration from html

Drupal 8.8 Modules: Metatags & Migration plus. I am trying to convert a tag in an XML file to an open graph image metatag. File: modules/custom/my_module/dataxml.html This is the url that has ...
0
votes
0answers
50 views

How do I dynamically add og:image meta tags in drupal multisite

I have drupal 8 multisite setup, where I am creating multiple site using some script technique and rendering the data using domain name via twig files by fetching from dynamodb records. So my ...
0
votes
0answers
34 views

How to change base url protocol to HTTPS?

I wanted to update the protocol of my base url to HTTPS. I have added nginx configuration to redirect all http requests to https. But in meta tag, when I choose [site:url], it returns a http url, http:...
0
votes
1answer
19 views

Show metatags on node add/edit pages on custom theme

I have a user role which can add/edit metatags (Metatag module) and when I allow overlay and admin theme access for that user role - everything is OK. But if they are editing/adding node from my ...
3
votes
1answer
119 views

How can I disable meta tags provided by the Metatag module for a custom route?

I have created a custom module for displaying the players information. Module will create dynamic pages and each page will display players stats. With the help of the following links, I was able to ...
0
votes
1answer
42 views

Output og:image:url if the og:image exists

I'm working on a website with Drupal 8 and the metatags module. I need to not output the metatag og:image:url if the og:image exists. If it possible to do using the module? If not I would have to ...
0
votes
0answers
91 views

Dynamic meta tags and description in custom pages [duplicate]

I have a custom drupal module which will generates pages for players in my site. The players stat data is meant to be updated most of the time, so for ease of use, I have created a custom module for ...
0
votes
2answers
833 views

Generate meta in 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 ...
4
votes
2answers
1k views

How can I reorder meta tags?

According to my client's requirement, I need to change the order of meta tags. The requirements are also to hide some of the meta tags. The order requested is similar to the following one. <Title&...
0
votes
0answers
13 views

Add property to schema_article_author (schema_metatag)

I want to add the property honorificSuffix to the authors of an article. Since the author is not a group in terms of schema_metatag definitions, i cannot add the field, as shown via ...
0
votes
0answers
26 views

How to add meta tag to a hook_menu page which return json output?

I have a custom page which I have created using hook_menu $items['list'] = array( 'page callback' => 'page_callback', 'type' => MENU_CALLBACK, 'access arguments' => array('access ...
0
votes
0answers
30 views

Open meta tag tab by default

Is it possible to open the meta tag tab by default on each of my content (pages and articles) only through admin section ? To have this when I create/edit a content:
0
votes
0answers
31 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
24 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
26 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
0answers
35 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 ...
-2
votes
1answer
63 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
681 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.....
1
vote
0answers
54 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
764 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
34 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
28 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 ...
0
votes
0answers
23 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
476 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 ...
10
votes
1answer
4k 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
48 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
53 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 ...
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
vote
1answer
62 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
269 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
18 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
2 3 4 5 6