meta-tags

How can I add meta tags for sharing a particular link in React.js?

会有一股神秘感。 提交于 2020-03-04 15:34:06
问题 Say, I have an online shop application built with React.js and I want to customize the look of the URL that is shared on social media (e.g. add a description and an image) using HTML meta tags. Besides, I want the route of particular product (e.g. https://www.mywebsite.com/product/<productId> ) to preview the appropriate picture and description of it, so it is not acceptable to just include the meta tags in the index.html . I have tried to use react-helmet and other packages that are used for

Can I stop a meta refresh using javascript?

感情迁移 提交于 2020-02-21 10:32:19
问题 The following code allows the user to stop the meta refresh from happening - and it successfully removes the meta refresh from the page, but the browser nonetheless refreshes the page. Any idea how to make it work? <!doctype html> <html> <head> <title>Test</title> <meta charset="UTF-8" /> <meta http-equiv="refresh" content="5" id="refresh" /> <script src="//code.jquery.com/jquery-1.11.2.min.js"></script> <script type="text/javascript"> $(function(){ $("a").click(function(e){ e.preventDefault(

Can I stop a meta refresh using javascript?

我的未来我决定 提交于 2020-02-21 10:30:29
问题 The following code allows the user to stop the meta refresh from happening - and it successfully removes the meta refresh from the page, but the browser nonetheless refreshes the page. Any idea how to make it work? <!doctype html> <html> <head> <title>Test</title> <meta charset="UTF-8" /> <meta http-equiv="refresh" content="5" id="refresh" /> <script src="//code.jquery.com/jquery-1.11.2.min.js"></script> <script type="text/javascript"> $(function(){ $("a").click(function(e){ e.preventDefault(

Script For Assigning Viewport Meta Parameters, iPhone / iPad Conundrum

拜拜、爱过 提交于 2020-01-24 17:05:26
问题 I am using a JavaScript snippet to set the content parameters of the viewport meta tag, based on the width of the browser window. The script does almost what it should: it sets the initial scale value for any large screen device as 1, for iPad in portrait mode as 0.5, and for any devices smaller than 700px in screen width, back to 1. However, it seems to ignore the value assigned for iPad in landscape mode: 0.75. I suspect somehow I incorrectly the conditional for width in the landscape mode.

Open Graph META Tags for several Share buttons

大兔子大兔子 提交于 2020-01-23 03:40:28
问题 Is there a way to have specific og meta tags for each FB share button? <meta property="og:title" content="Youtube video 1" /> <meta property="og:description" content="First link to a youtube video" /> <meta property="og:image" content="http://www.plasticoperator.com/youtube_logo_black.png" /> <a href="http://www.facebook.com/sharer.php?u=http://www.youtube.com/watch?v=FXPXHK7I1iQ" onClick="return fbs_click(626, 305)" target="_blank" >SHARE 1</a> <a href="http://www.facebook.com/sharer.php?u

driver.page_source returns only meta name=“ROBOTS” content=“NOINDEX, NOFOLLOW” using Selenium

若如初见. 提交于 2020-01-21 19:29:05
问题 I want to scrape one website, to get the page content with this code: from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities driver = webdriver.Remote("http://adress:4444/wd/hub", DesiredCapabilities.CHROME) link = 'website_url' driver.get(link) s = driver.page_source print((s.encode("utf-8"))) driver.quit() this is what receive: <meta name="ROBOTS" content="NOINDEX, NOFOLLOW"> I also tried a lot of different ways, Luminati, proxy

valid xhtml meta tags for facebook open-graph and twitter cards

倖福魔咒の 提交于 2020-01-19 06:21:07
问题 to make valid: xhtml twitter cards facebook-graph-api for http://www.theyact.com/acting-classes/los-angeles/ I've managed to get my code to come up valid everywhere... save 1 error on http://validator.w3.org/ there is no attribute "property" but only 1 instance among the many in the code, only the below seems to ruffle the validator's feathers: <meta name="og:description" property="og:description" content="... I'd like the code to be completely valid in validator.w3.org's eyes. What am I

What happens if the meta tags are present in the document body?

百般思念 提交于 2020-01-18 15:55:36
问题 I am working on a ASP application and the code, template and files are organized in a way that does not allow me to alter anything outside the body tag. So I am thinking about inserting the meta tags inside the body -- like this: <!-- FEW ASP INCLUDES --> <html> <head> <!-- FALLBACK TITLE AND DESCRIPTION --> <title>Default Title</title> <meta name="description" content="Default Description"> </head> <body> <!-- SOME HTML MARKUP --> <div class="dynamic-content"> <!-- InstanceBeginEditable name

What happens if the meta tags are present in the document body?

爷,独闯天下 提交于 2020-01-18 15:51:45
问题 I am working on a ASP application and the code, template and files are organized in a way that does not allow me to alter anything outside the body tag. So I am thinking about inserting the meta tags inside the body -- like this: <!-- FEW ASP INCLUDES --> <html> <head> <!-- FALLBACK TITLE AND DESCRIPTION --> <title>Default Title</title> <meta name="description" content="Default Description"> </head> <body> <!-- SOME HTML MARKUP --> <div class="dynamic-content"> <!-- InstanceBeginEditable name

What happens if the meta tags are present in the document body?

淺唱寂寞╮ 提交于 2020-01-18 15:50:53
问题 I am working on a ASP application and the code, template and files are organized in a way that does not allow me to alter anything outside the body tag. So I am thinking about inserting the meta tags inside the body -- like this: <!-- FEW ASP INCLUDES --> <html> <head> <!-- FALLBACK TITLE AND DESCRIPTION --> <title>Default Title</title> <meta name="description" content="Default Description"> </head> <body> <!-- SOME HTML MARKUP --> <div class="dynamic-content"> <!-- InstanceBeginEditable name