meta-tags

Dynamically adding meta tags using javascript or jquery [twitter cards]

拜拜、爱过 提交于 2019-12-30 10:28:08
问题 I want to add twitter card meta tags to my website. i cannot add static tags since the content attribute in the meta tag has to change dynamically. Plz help if someone has a solution. 回答1: You can't, at least not in any way that Twitter is going to recognise. When Twitter fetches the page, it is always going to get the meta elements that are in the HTML, never ones added with client side JavaScript. If you are changing content dynamically then make use of the history API to update the URI,

How do I stop Wordpress from inserting a noindex meta tag?

梦想与她 提交于 2019-12-29 08:24:15
问题 I'm trying to get my website to be indexed by search engines. According to this, something from Wordpress is injecting a meta tag that's preventing search engines from crawling my site: https://aw-snap.info/file-viewer/?protocol=secure&tgt=chrispokey.com I'm beginning to think it's something to do with the wp_head(); function. What next steps can I take to remove the noindex tag that's somehow getting inserted in my website's header section? Thanks! <?php if ( is_singular() ) wp_enqueue

Changing the content of meta refresh does not change refreshing time

一世执手 提交于 2019-12-29 08:12:13
问题 I have a meta http-equiv="refresh" inside the <head> . <head> <meta name="mymeta" http-equiv="refresh" content="2" id="myMeta"> </head> Using Javascript , I'm trying to change the content attribute of this meta tag. var myMeta = document.getElementById("myMeta"); myMeta.content="10"; When I display the content via document.write(myMeta.content); , I get the changed value which is 10 , however, the meta tag will keep refreshing each 2 seconds. I have tested this both in Firefox and Opera. FULL

HTML meta tag for content language

假如想象 提交于 2019-12-29 02:48:22
问题 What is the difference between the following two HTML meta tags, for specifying spanish web page content: <meta name="language" content="Spanish"> and <meta http-equiv="content-language" content="es"> 回答1: <meta name="language" content="Spanish"> This isn't defined in any specification (including the HTML5 draft) <meta http-equiv="content-language" content="es"> This is a poor man's version of a real HTTP header and should really be expressed in the headers. For example: Content-language: es

Facebook Debugger lint tool gets HTTP 206 - doesn't detect Open Graph meta tags (others tools do)

北战南征 提交于 2019-12-29 01:38:17
问题 I believe my site has the correct markup for Facebook & Open Graph meta tags. But checking Facebook's linter shows that none of the tags are being detected. You can see for yourself here: http://developers.facebook.com/tools/debug/og/object?q=goodloesolitaire.com When I use a different site, the tags are found: http://www.opengraph.in/?url=goodloesolitaire.com&format=html I went through the similar questions and none of those check out. Any ideas on why Facebook's debugger might see nothing?

Multiple <meta> Tags with the Same Name

末鹿安然 提交于 2019-12-28 14:37:11
问题 I need to specify multiple copyrights or authors using the <meta> tag. Can I use a <meta> tag with the same name multiple times? <meta name="copyright" content="Company A" /> <meta name="copyright" content="Company B" /> Will the search engine respect both values? Or, do I need to comma-separate them in one <meta> tag? Thanks. 回答1: Using multiple meta tags with the same name is valid HTML. But we don't know how search engines and other readers will interpret them. Either two meta tags will be

Which X-UA-Compatible takes precedence? Http-header or Meta-tags?

ぃ、小莉子 提交于 2019-12-28 03:54:07
问题 As the question states basically. If you have X-UA-Compatible in both your HTTP headers and a meta tag on your document, and they conflict, which one gets respected by IE? 回答1: TL;DR: The meta tag wins I found the following (updated) flowchart here (link is broken) and associated blog post that provides an explanation of how IE9 determines document mode: 来源: https://stackoverflow.com/questions/9128739/which-x-ua-compatible-takes-precedence-http-header-or-meta-tags

Is there a public API or meta data to integrate with Twitter new media system?

佐手、 提交于 2019-12-25 14:46:29
问题 Now that twitter is on a media rampage you can see on twitter pictures and youtube videos directly imported from a few sites. Twitpic also has a full integration with Twitter. My question is : Are there some metatags that I can add so that Twitter pick up the pictures from my site ? A special declaration to make somewhere ? I wasn't able to find any documentation and I'm afraid this is only a special integration with authorized partners. 回答1: I would normally flag this as a dupe, but since I

Facebook Crawler not picking up my meta tag / Open Graph Object Debugger

怎甘沉沦 提交于 2019-12-25 06:22:20
问题 Facebook crawler not able to read my metatags on http://nitansh.fwd.wf/article/travel/best-all-inclusive-resorts-for-romance/3189783/ but it successfully read the tags for the http://nitansh.fwd.wf/nurture/ Both are on made using extending same template base.html and by injecting metatags.html into them. you can refer the HTML code by inspecting element. 回答1: While http://nitansh.fwd.wf/nurture/ shows the metadata even without having JavaScript enabled, http://nitansh.fwd.wf/article/travel

Adding schema.org tags to a site's header: how and which schema?

自古美人都是妖i 提交于 2019-12-25 04:27:50
问题 I have a website that provides transportation services, not products (with this I mean that we don't sell widgets of this brand, this other model...; we just provide one kind of transportation service). I'm a bit unclear about how should I add schema.org microdata to my site, so I basically looked at what Ryanair was doing (since our product most resembles theirs) and copied their markup (changing it to our company's name, obviously). Their markup is as such: <meta content="IE=edge" http