meta-tags

iPhone X website safe area

为君一笑 提交于 2019-12-01 20:27:48
问题 The iPhone X landscape default safe area and notch solution. I added this Question to help others avoid a headache I head trying to fix my website on the new iPhone 10 Basically, the problem is white bars 回答1: The solution is to use viewport-fit=cover <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"> This will use the full screen but what about the notch. create a class .iphoneX{ padding: constant(safe-area-inset-top) constant(safe-area-inset-right)

How to Hide a Particular website page URL from Search engines?

百般思念 提交于 2019-12-01 19:25:24
My project is an E-commerce website that It contains lot of static and dynamic pages. I want to hide only one page from Search engines. If any one search that text then it need not display on search engine like "Google","Yahoo" etc. http://www.mysitename.com/users/download/id The above url need to hide in search engines. If any one searching my mysitename then above link also displaying in Google search as of now. what i can do for this ? Add a file robots.txt in your website root directory with the following contents: User-agent: * Disallow: /users/download/id This approach basically tells

Google Chrome does not honor cache-policy in page header if the page is displayed in a FRAME

徘徊边缘 提交于 2019-12-01 19:23:51
No matter what I do: <meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Expires" content="Fri, 30 Apr 2010 11:12:01 GMT" /> <meta http-equiv="Expires" content="0" /> <HTTP-EQUIV="PRAGMA" CONTENT="NO-STORE" /> Google Chrome does not reload any page according to the page's internal cache policy if the page is displayed in a frame . It is as though the meta tags are not even there. Google Chrome seems to be ignoring these tags. Since I've gotten answers to this question on other forums where the person responding has ignored the operative condition, I will repeat it: this

Open graph meta tags

感情迁移 提交于 2019-12-01 19:05:34
I use Facebook application (shortstack) to make my page. I want to Personalize publication when I share it with short URL. I have test to create a open graph meta tags but it's don't work . You need to put opengraph meta tags in your page like <meta property="og:title" content="The Rock"/> <meta property="og:type" content="movie"/> <meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/> <meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/> <meta property="og:site_name" content="IMDb"/> <meta property="fb:admins" content="USER_ID"/> <meta property="og

Facebook object debugger: Could not retrieve data from URL. (200)

只愿长相守 提交于 2019-12-01 18:15:54
问题 When i use the object debugger, the scraper is not able to see my OG content on my page. The debugger says "Can't download: Could not retrieve data from URL.", even though it's a 200 OK and shows the correct fetched and canonical URL. I have a subdomain on it, and it work fine.So not sure what happen to my main domain. When click on Scraped URL See exactly what our scraper sees for your URL , it just show blank page. 回答1: Your site seems to have some HTML errors: http://validator.w3.org/check

Facebook object debugger: Could not retrieve data from URL. (200)

二次信任 提交于 2019-12-01 17:56:21
When i use the object debugger, the scraper is not able to see my OG content on my page. The debugger says "Can't download: Could not retrieve data from URL.", even though it's a 200 OK and shows the correct fetched and canonical URL. I have a subdomain on it, and it work fine.So not sure what happen to my main domain. When click on Scraped URL See exactly what our scraper sees for your URL , it just show blank page. Your site seems to have some HTML errors: http://validator.w3.org/check?uri=http%3A%2F%2Fspandooly.de You should fix them before attempting to validate your site. Funny thing, I

Google Plus share not picking meta tags from head

淺唱寂寞╮ 提交于 2019-12-01 11:30:48
I am trying to implement Google Plus share on my page but instead of picking title from meta tags it is picking page title from url in share dialog title. Do I need to include anything else? <meta property="og:title" content="Title"/> <meta property="og:description" content="Description"/> <a href="https://plus.google.com/share?url={google.com}"/>Link</a> According to the Google Developer Site, the example code snippet for Google Plus shared links is: <body itemscope itemtype="http://schema.org/Product"> <h1 itemprop="name">Shiny Trinket</h1> <img itemprop="image" src="{image-url}" /> <p

Wordpress replace meta description

大城市里の小女人 提交于 2019-12-01 11:02:39
I need to replace the existing <meta name="description"...> generated by wp_head() function in header.php with a custom meta description. The information in the page is not a regular wordpress post, is taken from an external DB. I was able to add my custom meta but the old one is also there function add_meta_tags() { global $data; if(!is_null($data['metas']['page_meta_description']) ) { echo '<meta name="description" content="'.$data['metas']['page_meta_description'].'">'; } } add_action('wp_head', 'add_meta_tags'); Is there any way to: - delete the default meta description with an action or

Google Plus share not picking meta tags from head

这一生的挚爱 提交于 2019-12-01 08:56:54
问题 I am trying to implement Google Plus share on my page but instead of picking title from meta tags it is picking page title from url in share dialog title. Do I need to include anything else? <meta property="og:title" content="Title"/> <meta property="og:description" content="Description"/> <a href="https://plus.google.com/share?url={google.com}"/>Link</a> 回答1: According to the Google Developer Site, the example code snippet for Google Plus shared links is: <body itemscope itemtype="http:/

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

送分小仙女□ 提交于 2019-12-01 07:54:59
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. 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, and make sure that the server will generate all the content for each URI when the URI is used as an entry