meta-tags

Smart App Banner showing as blank, gray bar

爱⌒轻易说出口 提交于 2019-12-10 23:05:56
问题 I added the smart app banner meta tag to my page and it was working fine at one point yesterday. However, now the banner only appears as a gray bar with no content in it. It appears to try to load something for a second, but then stops. Not sure what I changed in the code that would break it. Link for screenshot included below or see for yourself live: http://grahamgram.com 回答1: I think the service is currently down. Been having the same problem myself, have just tested the ted.com site and

php get_meta_tags not fetching property=“og:type” tags

只愿长相守 提交于 2019-12-10 17:52:51
问题 so php's get_meta_tags would fetch the meta tags that has a name field to it but sometimes there are meta tags that has no fields but uses property="" as identifier instead and this function is not fetching it.... is there any better way to get meta tags including those with property="" identifiers in php? 回答1: Parse the XML or HTML yourself with DOM's loadHTML and run an xpath on it. 来源: https://stackoverflow.com/questions/4894068/php-get-meta-tags-not-fetching-property-ogtype-tags

Don't save URL in history, any header or meta-tag?

你说的曾经没有我的故事 提交于 2019-12-10 15:57:53
问题 Is there any HTTP-headers or meta-tags one can use to avoid getting a URL into the browser history? For example, I don't want http://domain.td/show/super-secret-unique-token-that-is-private to show up in the browser URL bar, when I start typing "domain.t". Currently I have a (POST) search form on the website to load the tokens, and they don't come up. But later I want to load the tokens via links, from let's say an album. 回答1: I don't think you can. You can save the token as a cookie, or use

How to remove click-to-call links for IE mobile browsers

笑着哭i 提交于 2019-12-10 14:34:24
问题 Hi I am able to remove click-to-call links for labels / numbers in Iphone & Blackberry by keeping the above tags in the header part. <meta name="format-detection" content="telephone=no"> //for Safari <meta http-equiv="x-rim-auto-match" content="none"> //for Blackberry Like this do we have any property for Internet Explorer ( Windows Mobile Browser ) ? 回答1: It appears that this functionality is not present in the current release of the OS and IE will parse numbers, addresses and emails

ASP.NET Change facebook og properties from content page

匆匆过客 提交于 2019-12-10 12:43:16
问题 I want to dynamically change in code behind facebook og properties like < meta property="og:image" content="image_link" /> < meta property="og:title" content="title" /> How to do this? btw. I'm adding regular meta tags like this: HtmlMeta tag = new HtmlMeta(); tag.Name = "description"; tag.Content = message; Page.Header.Controls.Add(tag); 回答1: Here is how you add the proprietary Facebook "property" attribute to a standard META tag: HtmlMeta tag = new HtmlMeta(); tag.Attributes.Add("property",

How to check for existing meta tag before generating a new one with javascript (or jquery)?

筅森魡賤 提交于 2019-12-10 12:33:26
问题 I'm developing a widget that creates basic SEO tags that could already exist on a page so I'm wanting to make sure the widget checks for existing tags before the new tag is generated. For example, one of the tags that the widget produces is <meta name="description" content="Description of the webpage"/> Since this tag is one that most pages already have, is there a way to use javascript to check for the tag before writing it? 回答1: Here is the plain Javascript solution (no libraries): Check

Return tiff file from outputstream on JSP

a 夏天 提交于 2019-12-10 12:04:07
问题 I am using a JSP to display a single TIFF file. The flow is as follows: I am given a PDF to convert to a TIFF. I feed a 'black box' API the PDF in the form of a File object and an OutputStream (I am currently using a ByteArrayOutputStream but that can change as needed. The 'black box' converts the PDF to a TIFF and saves the result to the OutputStream. I use out.println(outputstream) to spit out the TIFF. The problem is that I am getting a text stream instead of a displayed image. I have used

Can I use HTML character entities in meta tags?

牧云@^-^@ 提交于 2019-12-10 09:51:14
问题 I have a web site in two languages - English and Chinese. In the English homepage, which uses UTF-8 charset, I have, e.g.: <meta name="description" content="Available in English and Chinese"> That appears in search results. I would like to change it to: <meta name="description" content="Available in English and 中文"> ...where 中文 is the ISO entity for "Chinese". Would that be rendered as "中文" in the search results? I can't paste "中文" directly into the HTML file in Textpad* (pastes as ?? ). *

Inject a meta tag from a document's body?

左心房为你撑大大i 提交于 2019-12-10 08:06:41
问题 I need to add a meta tag (specfically, <meta name="apple-itunes-app" content="app-id=xxxxx"> ) to a certain page, but the way our templates are set up, it's not possible for me to edit the code for the HEAD tag directly (for corporate, not technical, reasons). Therefore, is there a way using JQuery within the BODY tag to add this meta tag? 回答1: Maybe you can try this: jQuery: $('head').append('<meta name="apple-itunes-app" content="app-id=xxxxx">'); Javascript: document.getElementsByTagName(

How implement SEO (Metatags) in Angular 2 (with Angular universal for rendering on server side)?

杀马特。学长 韩版系。学妹 提交于 2019-12-10 03:52:11
问题 I'm searching a fully working example about SEO or Metatags with Angular 2 using Angular universal to render on server side (to be recognize by facebook, twiter, and other metatags) but I had not success.. I found multiple articles, but there are incomplete (no all source code is available) or oldest (not compile with the latest versions): a) blog.devcross.net/2016/04/17/angular-2-universal-seo-friendly-website/ NOTE: Excelent post with source code, but It's not working. b) builtvisible.com