meta-tags

meta tag parsing in Rails [closed]

自作多情 提交于 2020-01-15 05:47:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I was looking for something to help me parse general meta-tags from websites similar to this github project I found for open graph data. Here's a demo app. Basically, I'd like to be able to have a user input a URL from a news site and have it retrieve from that the Title, Desc, etc., leaving as little work

Scale website to mobile devices

天涯浪子 提交于 2020-01-13 08:17:48
问题 I have a web app where responsive layout is not an option for mobile devices, so I tried playing with the viewport scaling a bit but had no success in doing so. Page size is 1280x720 so on small screens it should be zoom out and on larger ones zoomed in: var scale = $(window).width() / 1280; $('head').append('<meta name="viewport" content="width=device-width, height=device-height, initial-scale=' + scale + ', maximum-scale=' + scale + ', user-scalable=0">'); I've only tried this for width but

Fetch meta-tags from url only by jQuery

瘦欲@ 提交于 2020-01-11 05:26:09
问题 Now a lot of scripts to facebook-style fetching data from url, but all of them work only in combination of jQuery and PHP. Is it possible to fetch url only by jQuery? I have found here how to get mata-tags of page by: $('meta[name=description]').attr("content"); $("meta[property=og:title]").attr("content", document.title); But how correctly insert this query in jQuery.get() to get text values? $.get('http://www.imdb.com/title/tt1375666/', function(data) { $('meta[name=adescription]').attr(

How to change meta title in prestashop module?

情到浓时终转凉″ 提交于 2020-01-07 09:26:35
问题 I'm using prestashop 1.6 and one module is not editable in SEO&URL, to change is meta. Actually, i have the default pretashop meta title. How can i add a custom header.tpl for this module ? Thank you for your help Tony 回答1: Assuming you are talking about a module with a controller, you can add in the base file /modules/mymodule/mymodule.php , inside the method __construct() , a object like this $this->controllers = array('controller_file_name'); , where the controller_file_name is the file

Get hashtag from string and get into meta keywords and tags

元气小坏坏 提交于 2020-01-06 10:51:04
问题 I'm creating a kind of a blog sharing link. Basically, for each link i would extract hashtag from post string and put it into a meta tags and keywords. So, string normally is like this #helloworld #test #video #youtube Bon Iver are the best daily surprise :D Now, how can i get only hashtags and insert into a string like this ? $hashtags = helloworld,test,video,youtube And after insert hashtags in meta tag <meta name="keywords" content="<? echo $hashtags ?>" > <meta name="tags" content="<?

Meta tag migration from HTML 4.01 to HTML5

南笙酒味 提交于 2020-01-05 09:14:41
问题 We are looking at migrating over pages written in HTML 4.01 to HTML5 and am looking at the minimum requirements when including meta tags in the <head> element. For example, my current page which is HTML 4.01 compliant has the following meta tags: <meta name="description" content=""> <meta name="keywords" content=""> <meta http-equiv="title" content=""> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta http-equiv="created" content="2014-02-03T10:10:27.000-04:00"> <meta

How to dynamically set an Angular JS page's Title?

。_饼干妹妹 提交于 2020-01-05 07:32:33
问题 I have a running single-page AngularJS Web Application. To manage my routes, I'm using ui.router. Here is the state for my Splash Screen: $stateProvider.state('splash', { url: '/', templateUrl: 'html/splash.html', controller: 'SplashCtrl', data: { meta: { 'title': 'Splash Screen' } } } ); Did you notice that this state contains a data.meta object? That's because I'm using ngMeta to populate the page's <title></title> tag. Everything works. However, I want to the title to be dynamic, not

How to dynamically set an Angular JS page's Title?

♀尐吖头ヾ 提交于 2020-01-05 07:32:18
问题 I have a running single-page AngularJS Web Application. To manage my routes, I'm using ui.router. Here is the state for my Splash Screen: $stateProvider.state('splash', { url: '/', templateUrl: 'html/splash.html', controller: 'SplashCtrl', data: { meta: { 'title': 'Splash Screen' } } } ); Did you notice that this state contains a data.meta object? That's because I'm using ngMeta to populate the page's <title></title> tag. Everything works. However, I want to the title to be dynamic, not

Meta Refresh for Safari

喜夏-厌秋 提交于 2020-01-05 07:11:23
问题 I used meta refresh but it doesn't work 'Safari'. What can i do? <meta http-equiv="refresh" content="5;URL='http://example.com/'"> 回答1: It is not supported by Safari.. And your not the only one who asked that.. There is 2 possibility: Make a button to let user refresh the page Use Ajax to be able to update parts of your website Hope this helps! 回答2: According to what I found on Google; this may have been a bug in Safari in the past but many people claim it's been resolved. There's also

Meta Refresh for Safari

好久不见. 提交于 2020-01-05 07:11:07
问题 I used meta refresh but it doesn't work 'Safari'. What can i do? <meta http-equiv="refresh" content="5;URL='http://example.com/'"> 回答1: It is not supported by Safari.. And your not the only one who asked that.. There is 2 possibility: Make a button to let user refresh the page Use Ajax to be able to update parts of your website Hope this helps! 回答2: According to what I found on Google; this may have been a bug in Safari in the past but many people claim it's been resolved. There's also