metatag

Add meta data to a Drupal page that isn't in the CMS?

泄露秘密 提交于 2019-12-31 04:02:32
问题 I'm new to Drupal and I'm having to work on a site coded by another developer. We have found and installed the Metatag module in order to give us access to change metadata on content inside the CMS. This is great for most things, however there are some types of content (not sure the exact Drupal terminology here) such as Testimonials and Case Studies. Each individual testimonial and case study has their own area in the CMS to edit the content, and these each have the Metatag module area to

Android not respecting metatag removal?

此生再无相见时 提交于 2019-12-29 05:35:09
问题 I created a sample script to add and remove metatags from the head. But Android 2.2 doesn't seem to respect it's removal. However it does respect the addition of the metatag on click for example.. How do I get it to respect the removal of the tag and revert to the default viewport through javascript? <script type="text/javascript"> $(document).ready(function(){ function initMeta(){ var headID = document.getElementsByTagName("head")[0]; var metaNode = document.createElement('meta'); metaNode

Display an article rating in Google search results

[亡魂溺海] 提交于 2019-12-18 03:10:31
问题 Im writing a review site where the community rates posts. I have noticed that Google can pick up on this ratings and display them in its search results. Does anyone know how this is achieved? An example is a review site like IGN, where in their screen shot below they have indicated their review has a rating of 9.3/10. How can I indicate to Google my own review rating? Maybe some sort of custom meta tag or something. 回答1: You can do that with a Span class. Check Google's Structure Data guide

Is it valid to use time stamp instead normal date format in meta tags?

浪子不回头ぞ 提交于 2019-12-12 12:25:57
问题 Is it valid to use time stamp instead normal date format in meta tags? for example: <meta name="revised" content="Wednesday, September 24, 2014, 2:51 pm" /> to <meta name="revised" content="1431475718" /> or for <META NAME="Expires" CONTENT="1431475718"> 回答1: You may not use revised or expires in HTML5, as these metadata names are neither defined in the spec nor registered on MetaExtensions. No one tried to register revised . Someone tried to register expires , but a spec was missing, so it

iPhone 4 ignoring viewport meta tag

扶醉桌前 提交于 2019-12-06 13:30:54
问题 I have just added the following HTML to the <head> section of my iPhone web app: <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;"/> This (supposedly) limits the zoom of the page so the user can't zoom in. On iOS versions prior to 4.0, this tag is respected - but iOS versions 4.0+ completely ignore it, and lets you zoom in all you want. Furthermore, if you rotate, iPhone 4 will weirdly zoom in automatically. So what I'm asking is, How

iPhone 4 ignoring viewport meta tag

纵饮孤独 提交于 2019-12-04 20:17:25
I have just added the following HTML to the <head> section of my iPhone web app: <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;"/> This (supposedly) limits the zoom of the page so the user can't zoom in. On iOS versions prior to 4.0, this tag is respected - but iOS versions 4.0+ completely ignore it, and lets you zoom in all you want. Furthermore, if you rotate, iPhone 4 will weirdly zoom in automatically. So what I'm asking is, How can I "lock" the zoom for my app? Can anyone point me in the right direction? If you have Zoom enabled

Safari Mobile full screen

孤者浪人 提交于 2019-12-04 09:41:07
问题 I'm trying to set the full screen mode on my iPhone Web App, I have read the Apple's documentation on apple-mobile-web-app-capable meta tag, but it doesn't work, can you help me? Thanks 回答1: You can also add a javascript function : <body onload="setTimeout(function() { window.scrollTo(0, 1) }, 100);"> 回答2: <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple

Safari Mobile full screen

不想你离开。 提交于 2019-12-03 03:02:56
I'm trying to set the full screen mode on my iPhone Web App, I have read the Apple's documentation on apple-mobile-web-app-capable meta tag, but it doesn't work, can you help me? Thanks You can also add a javascript function : <body onload="setTimeout(function() { window.scrollTo(0, 1) }, 100);"> malinois <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> Make sure you do what Bala Clark mentioned

Put in bold part of description in metatag Drupal module

半城伤御伤魂 提交于 2019-12-02 13:21:45
问题 I'm using Metatag module of Drupal 7. I want to put part of the description in bold . For example, I have the following source code: <meta name="description" content="My new content of web page" /> and I want to put "My new content" in bold. Is it possible? 回答1: This is not possible. The meta-description can only contain text: The value must be a free-form string that describes the page. Even if you’d enter HTML elements, they would just be displayed as text. 来源: https://stackoverflow.com

Add meta data to a Drupal page that isn't in the CMS?

本秂侑毒 提交于 2019-12-02 07:04:07
I'm new to Drupal and I'm having to work on a site coded by another developer. We have found and installed the Metatag module in order to give us access to change metadata on content inside the CMS. This is great for most things, however there are some types of content (not sure the exact Drupal terminology here) such as Testimonials and Case Studies. Each individual testimonial and case study has their own area in the CMS to edit the content, and these each have the Metatag module area to give us control over the metadata. These types of content also have 'index pages' on the front-end (e.g.