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.

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. ...
0
votes
1answer
310 views

Node Metatag data migration with the Migrate-Update\Drupal-Upgrade module

I ask this for freshmen like myself, and others, who want to make sure they are making the best migrate-update possible: I have created a local copy of a Drupal 7 site and have also created a brand-...
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 ...
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( '...
0
votes
2answers
100 views

Page title unable to overwrite default title

admin/config/search/page-title - Global default title is abc admin/config/search/page-title - Content type BOOK -> title is def meta tag -> Content -> page title is ghi meta tag -> Content -> BOOK -...
0
votes
1answer
43 views

Tokens keep 'disappearing', drush rr fixes the website for a time, sometimes hours sometimes seconds

As title suggests my problem is missing tokens, at random intervals tokens will just cease to work on the site in question which makes any webform entries that are emailed out to a client appear empty....
0
votes
1answer
69 views

How to automatically assign child taxonomy terms?

I'm building a virtual network like Instagram but its contents (images) are about a certain event. The strategy of selecting taxonomy terms is to display all of the tags (about 20 ones) and a ...
2
votes
2answers
839 views

Title tag not overriding after using meta tag module

I have created a content type for uploading user details. I have changed the title as UPLOAD PAGE using drupal_set_title. I have installed Meta Tag module, now page title remains same but title tag i....
0
votes
2answers
1k views

How to add metatag module data to the Search API indexes

I am in the process of building a new site that will have some content in the form of videos and PDFs. To make those more searchable I added the metatag module. We are also using the Search API to ...
1
vote
2answers
30 views

meta tags don't display when not authenticated

I'm using Drupal 7, Meta Tags/Open Graph meta tags 7.x-1.0-alpha6. When logged in, meta tags act as I would expect. I see the meta tags when I view the page source. When not logged in, the meta ...
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 (...
0
votes
1answer
33 views

Aggregate & Compress CSS / JS Kills Metatag Fieldsets

I had to turn on aggregate and compress CSS and JS for my site as the performance was terrible and I was getting a lot of CSS errors (admin bar would disappear intermittently or not load correctly or ...
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 ...
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 ...
1
vote
4answers
837 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
1answer
370 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
724 views

How do I add og:image script in meta? [duplicate]

My facebook is grabbing the wrong image. I try to adding this open graph image in my head. <meta property="og:image" content="<?= $_GET['image'] ?>" /> and <meta property="og:image" ...
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 ...
0
votes
1answer
77 views

What are the “Files” that Metatag module allows adding Metadata to?

In Drupal 7, if you go to Configuration > Search and metadata > Metatag > Settings (Tab) the module Metatag allows you to add Metatags to "Files"... What are these files?... As everyone are ...
0
votes
1answer
31 views

After uploading Metatag module all my Meta descriptions were deleted

I am using Drupal 7.37 and Metatag 1.5.7 (the fresh new version). After uploading Metatag module all my Meta descriptions where deleted ! moreover, I can't edit the meta of any page. What is going ...
0
votes
2answers
42 views

Meta-Tag Module that can use existing fields

On my node, I have several existing fields, such as field_introduction and field_book_tags. These fields were created by me and do not come with Drupal by default. I would like to know if there are ...
1
vote
1answer
593 views

How to translate the description metatag for a view

I have a multilingual site based on drupal 7 with Internationalization i18n and Metatags modules. I made a multilingual view and it works fine, I could translate all entities except the view-...
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] | [...
1
vote
2answers
172 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 ...
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 ...
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 ...
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 ...
1
vote
1answer
377 views

How to print meta property using custom meta tag module

I have implemented the custom meta tag module found here: http://www.phase2technology.com/blog/creating-custom-meta-tags-with-the-metatag-module/ The following code creates my new meta tag, the ...
0
votes
1answer
954 views

Create custom meta tag with the metatag module

Just this. I need to create some metatag using the metatag module: https://www.drupal.org/project/metatag Something like: <meta property="og:locale" content="en_US" /> <meta property="og:...
0
votes
1answer
568 views

How to correctly add meta tags to custom menu items?

I want to be able to use the meta tag module for everything my site, but currently I have no idea how to add meta tags to custom pages. For example, I have this page: function mymodule_menu() { ...
2
votes
1answer
2k views

Add a meta content=“noindex,nofollow” tag on a node created programmatically

Is it possible to add a meta content="noindex,nofollow" tag to the head on the page of a node created programmatically (and onl this node)? I have created the node like this: function ...
1
vote
1answer
467 views

Metatags and Commerce - pass taxonomy metatags to commerce product view

I have a Commerce Product view that pulls in products based on a taxonomy term in the url (category/taxonomy-term). This is done using relationships. Ideally, I would be able to edit metatags for ...
0
votes
2answers
547 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
1answer
138 views

Fallback values for OG Meta Tags / hiding some unused OG fields

I'm using D7 and the Open Graph Meta Tag module to allow open graph meta tags to be set for various content types. With the OG:summary field if not specified it falls back to the first 200 characters ...
0
votes
1answer
366 views

Meta tags on Drupal blog home page

How can I overwrite meta tags on the Drupal blog homepage? I'm using a "Blog" module ( which creates a blog homepage with the URL www.mysite.org/blog ) and a "Metateg" module for generating and ...
1
vote
2answers
5k views

Metatag: How to programmaticaly set a node's canonical URL

I am using the metatag module for defining several meta tags. As a default value, canonical tags use '[current-page:url:absolute]'. Now I want to create a module that sets the value of the canonical ...
0
votes
1answer
448 views

How to replace metatag description using views argument?

I'm having trouble while trying to use views arguments for replacing metatags description. In the view title you can easily add the view argument for example "Blog posts in category %1" so the "%1" ...
1
vote
1answer
100 views

Print node tags in html header

I am trying to print the articles tags in the meta area of the html. I am able to print them, however, they contain all the markup, where as I just need the plain text, comma separated list, much like ...
2
votes
1answer
652 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 Thanks!
1
vote
1answer
713 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
151 views

How can I translate string templates in Metatag module?

I use Metatag module. How can I set different string templates for each site language? Or translate these templates.
9
votes
1answer
6k views

Trying to add an html head tag in Drupal 8, beta 2

With Drupal 8.0 beta2, drupal_add_html_head() has been deprecated in favor of #attached. So the old way was: function MYTHEME_page_build(&$page) { $viewport = array( '#type' => '...
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 ...
0
votes
1answer
871 views

Dynamic Views Pages - How to add in meta tags to these generated pages?

I have 1000s of dynamically generated views pages using contentual filters. I want to be able to take certain keywords from these generated pages and add them to the on page meta tags. Currently I do ...
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 ...
1
vote
2answers
1k views

Programmatically changing the global site name?

I'm making a multi-site setup using the same install and the same database, basing it off domains. I'm trying to programmatically alter the site_name variable so that it displays a different site name ...
1
vote
2answers
438 views

Metatag Database updates need to be ran

When im trying to add new node it gives me Error : The website encountered an unexpected error. Please try again later. When I checked in Reports. I got this. PDOException: SQLSTATE[42S22]: Column ...
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 ...
0
votes
1answer
1k views

Metatags not showing despite calling render in template

My custom page.tpl.php is not outputting metatags. I've tried all of these: render($page['content']) print render($page['content']) render($page['content']['metatags']) print render($page['...
1
vote
1answer
124 views

Add meta tags when block exist on page and its cached

I have block with social sharing buttons. Need add 'og' and 'twitter' meta tags on page where block exists. I know that can add it throw drupal_add_html_head() inside block content render, but if ...