meta-tags

Meta tags for Open Graph - Facebook can't create thumbnail

亡梦爱人 提交于 2019-12-06 14:23:50
问题 These are the meta tags that I use (I hope am using them right). What do you use mostly? Also I have a problem when sharing my website on facebook. the og:image is for forcing facebook to use an image of my preference as a thumbnail. Instead of that facebook is using a wrong image and marked it as "safe_image" (safe_image.php). Why is this happening? <meta property="og:title" content="Myname - Best Products in Town"> <meta property="og:type" content="Product"> <meta property="og:url" content=

W3C validator: “Bad value robots for attribute name on element meta”

纵然是瞬间 提交于 2019-12-06 11:31:07
What has changed with <meta name="robots" content="index,follow"> meta tag? I use HTML5 and W3C validator marks my page as invalid. There is robots meta name allowed in http://wiki.whatwg.org/wiki/MetaExtensions . Exact validator error: Bad value robots for attribute name on element meta : Keyword robots is not registered. unor The validator is wrong. The robots name is registered according to HTML5’s rules , so you can use it. You’ll probably see the same problem with all other registered names, too (e.g., with the google name ). 来源: https://stackoverflow.com/questions/22100619/w3c-validator

How to do the share extension to show the http shares and not the https?

空扰寡人 提交于 2019-12-06 07:56:28
I have this situations on Facebook Object Debugger: This one is if I input the http link and this one for https link The code of my joomla extension is: <?php /*------------------------------------------------------------------------ # mod_ofblikebutton - Optimized Facebook Like Button # ------------------------------------------------------------------------ # author: Optimized Sense # copyright: Copyright (C) 2013 http://www.o-sense.com. All Rights Reserved. # @license: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Websites: http://www.o-sense.com # Technical Support: http://www.o-sense

How to add meta keyword with django

安稳与你 提交于 2019-12-06 07:15:27
I am using below code to add meta keywords - in view.py @template_render("mysite/category.html") def category(request, slug): slug = slug.lower() product_type = local_settings.CATEGORY_NAME_TO_ID.get(slug, False) if not product_type: raise Http404 products = models.Product.objects.active().filter(product_type = product_type).all() return { 'products' : products, 'slug' : slug, 'key':'wholesale ipad, ipad with retina display, ipad mini, ipad 3, ipad 2',} And in template file - {% extends "base.html"%} {%load appletrade_tags%} {% block key %}siteTrade - {{key}}{% endblock %} {%block title%}site

Trying to set MetaTag dynamically

青春壹個敷衍的年華 提交于 2019-12-06 06:58:02
问题 i'm trying to dynamically set a metatag to the head of my document. This is a mobile device specific metatag that I need to add through code. I found this solution here: Having trouble using jQuery to set meta tag values but it doesnt seem to work, what am I doing wrong? function setOrCreateMetaTag(metaName, name, value) { var t = 'meta['+metaName+'='+name+']'; var mt = $(t); if (mt.length === 0) { t = '<meta '+metaName+'="'+name+'" />'; mt = $(t).appendTo('head'); } mt.attr('content', value)

Custom fields for Shopify User Registration Form

对着背影说爱祢 提交于 2019-12-06 06:51:37
问题 I can't find any documentation on how to add custom fields for the user registration forum so I tried something but didn't work: <div class="single-full-width customer"> <div class="login"> {% form 'create_customer' %} {% if form.errors %} {% for field in form.errors %} <p class="input-error-wrapper"><span>{{field}} {{ form.errors.messages[field] }}</span></p> {% endfor %} {% endif %} <p> <label>First Name:</label> <input type="text" value="" name="customer[first_name]" class="input-text-1" /

article:publisher meta tag cannot be parsed as profile

旧街凉风 提交于 2019-12-06 06:43:17
According to this update... https://developers.facebook.com/blog/post/2013/06/19/platform-updates--new-open-graph-tags-for-media-publishers-and-more/ ...I thought article:publisher (with page ID or URL) would put a like button for the representative page when shared links are posted to walls? The debugger seems to think differently... what am I missing? Debugger info: Object at URL 'http:// domain.com/post/' of type 'article' is invalid because the given value 'http:// www.facebook.com/mypage' for property 'article:publisher' could not be parsed as type 'profile' article:publisher is for

Can I declare two different charsets on one HTML page using a meta tag?

二次信任 提交于 2019-12-06 04:08:02
问题 Is possible to specify two different character sets on a page using meta tags, like: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> I tried to add both of them and doesn't work :P Thanks 回答1: No, it's not possible. What would be the point of adding two different charset declarations? You should add only one declaration that matches your content. 回答2: A "character set" is better referred to in this

Charset UTF 8 does not work when used with Ionic Framework

Deadly 提交于 2019-12-06 03:42:59
问题 On my web app I have characters like 'Å' and I have the meta tag <meta charset="utf-8" > but these characters are not shown in the browsers. They are shown like question mark '?' . I am using Ionic framework ? What am I missing ? 回答1: Open the file with VS and change the save options in File -> Advanced Save Options -> Unicode (Utf8...) 来源: https://stackoverflow.com/questions/28736324/charset-utf-8-does-not-work-when-used-with-ionic-framework

node js puppeteer metadata

余生长醉 提交于 2019-12-05 21:41:42
I am new to Puppeteer, and I am trying to extract meta data from a Web site using Node.JS and Puppeteer. I just can't seem to get the syntax right. The code below works perfectly extracting the Title tag, using two different methods, as well as text from a paragraph tag. How would I extract the content text for the meta data with the name of "description" for example? meta name="description" content="Stack Overflow is the largest, etc" I would be seriously grateful for any suggestions! I can't seem to find any examples of this anywhere (5 hours of searching and code hacking later). My sample