FAQ Database Discussion Community


htaccess rewrite url is causing error with og metatags

.htaccess,meta-tags
My church website has og meta tags for the description and images and all that jazz. They have all been working fine. Recently they asked me to remove the .php extensions from the url, so I used htaccess to achieve that. All the rewriting seemed to be working fine using...

Are there any differences between Facebook, Twitter meta tags?

html,facebook,twitter,meta-tags
I have been working on a project and I have a question about meta tags. One of the tags I use for title of a content. <meta name = "subject" content = "post-title"> I was looking for more tags than I use for adding between < head > < /head...

Facebook finds thumbnail but doesn't use it in snippet

facebook-opengraph,meta-tags
When checking some of our articles on the FB Debugger, it correctly gets the image to use, along with all other tags but does not put the image in the snippet. Eg; on the debugger put this url in;http://www.nova969.com.au/entertainment/katy-perry-getting-slammed-her-latest-costume It shows the following; It does this on all our links....

Wordpress replace meta description

php,wordpress,meta-tags
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...

Canonical url for google to prevent duplicate meta?

seo,meta-tags,google-webmaster-tools
Today i went to Google Webmaster Tools to check for duplicate meta description. On almost all my news pages, this is true cause my rss feeds links to the news piece with a parameter (?rs=rss) so i can track my traffic from rss feeds. I thought the following snippet would...

How to get Google to re-index a page after removing noindex metatag?

web-crawler,sitemap,meta-tags,google-webmaster-tools,noindex
By accident, I had put <meta name="robots" content="noindex"> into lots of pages on my domain. I have now removed this meta-tag, but how can I get these pages to be re-indexed by Google? Any tip? I have tried re-submitting my sitemap.xml in Webmaster Tools, but I'm not sure if it...

PHP script now working for meta description? Update for twitter cards

php,meta-tags
I'm just trying to make this random script to make meta, open graph and twitter cards eisier together. This is my PHP Code <?PHP $Title = "This is the Open Grah script"; $Description = "This is the one and only Description, or better yeh the first 150 charecters of the...

How can I set a meta description tag in Sailsjs using ejs templates?

sails.js,meta-tags,ejs
I would like to be able to set the description meta tag from the sails controller action. I have searched all over, but the only example involves the page title. This is my first node.js and sailsjs site, am I going about this the wrong way? Something like this: module.exports...

Why should name attribute not be set if http-equiv is set in meta tag?

html,meta-tags,http-equiv
I am stuck on one sentence while reading about meta tag in html that "If the http-equiv attribute is set, the name attribute should not be set" . I've done search about this but I couldn't find any reason behind this. Would anyone tell the reason behind this?...

Disabling android's chrome pull-down-to-refresh feature

android,html,html5,google-chrome,meta-tags
I've created a small HTML5 web application for my company. This application displays a list of items and everything works fine. The application is mainly used on android phones and Chrome as browser. Also, the site is saved on the home screen so Android manage the whole thing as an...

Let page override quirks mode set in developer toolbar

html5,internet-explorer,meta-tags
By using <meta http-equiv="X-UA-Compatible" content="IE=9"/> I am able to ensure that the Document mode is IE9. However, when I set the Document Mode to Quirks using the developer tools and then bring up my application, it remains in Quirks Mode instead of going into IE9 mode. Is there a way...

Meta Refresh IP Address Redirect Once Every 3 IP Addresses

php,meta-tags
I'm now coming to StackOverflow after trying several forums and searching through at least 80 questions on Stack Overflow for some sort of answer, so please do not mark this as spam. I am looking to have a META REFRESH redirect activate only once per IP Address, and of this...

Using a different image for microdata that isn't displayed in the article?

html,metadata,meta-tags,meta,microdata
I'm working on a website that has a bunch of articles. I'm looking to find a way to add an image that is invisible without putting it inside a hidden div. When users add an article, there is a "main" image of the specific proportions that the users upload (which...

How to “connect” my facebook page to my wbsite/domain?

wordpress,facebook,facebook-graph-api,meta-tags
I created a Facebook page a year ago, and last month I created a website (Wordpress) that I want to have that Facebook page connected to. I've tried to set my personal facebook account (which is admin of the Facebook page in question) as fb:admins in a meta tag on...

Insert og:image in wordpress

wordpress,facebook,facebook-opengraph,opengraph,meta-tags
I have the following hook for facebook's og:image tag. In my template file: <?php do_action('wp_head', $mypost) ?> In my functions file: add_action('wp_head', 'add_fb_og'); function add_fb_og($mypost) { if (isset($mypost["wpcf-bgleft"][0])) { echo '<meta property="og:image" content="'.$mypost["wpcf-bgleft"][0].'" />'; } } What I'm trying to do is to pass the background image of a custom...

Fail to find OpenGraph tags with jSoup on some websites

java,html,jsoup,meta-tags,open-graph-protocol
I'm trying to extract OpenGraph metadata from webistes to show the user a preview. I'm using jSoup, and in particular, I'm having problems extracting an image url. For some (or most, actually) websites that I've tested, the code below works just fine, but a handful are giving me problems. Most...

RSpec Rails wont find my meta tags

ruby-on-rails,rspec,meta-tags
I am just writing a couple of test and I want to make sure that I can test that some meta tags are on the page. describe "article", :type => :feature do it "has correct meta tags", js: true do love_article = FactoryGirl.create(:love_article, title: 'Kitten Takes Over the World!', created_at:...