Where are the extra meta tags coming from?
Permalink
So, on my site,http://www.e4gcontracting.com, I noticed when I use website grader that it shows none of the pages have titles, descriptions, or keywords. This isn't the case. When you look at the page source there are duplicate meta tags. I can't figure out where these are coming from. Any help?
<head> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>E4G Contracting :: Licensed Colorado General Contractor</title> <meta name="description" content="Experienced general contractors in Aurora offering residential and commercial building and restoration services. Licensed Colorado contractor. " /> <meta name="keywords" content="Remodeling, Additions, Contractor, Aurora, Centennial, Tenant finish, Consulting, Basement, Licensed, Insured, HOA, Licensed Contractor Denver, Douglas County, Arapahoe County, Crawlspace Repair, Kitchen, Bathroom, Renovations, Residential, Commercial, Construction, Hail Damage " /> <meta name="generator" content="concrete5 - 5.4.2" />
Check out your theme files (check the .php files in "/themes/E4G Contracting/" directory)
Most likely you will find out these lines (or something alike) there:
Remove it, because concrete5 automatically adds the meta tags (this is done via calling the 'header_required' element, don't touch it)
Most likely you will find out these lines (or something alike) there:
<meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
Remove it, because concrete5 automatically adds the meta tags (this is done via calling the 'header_required' element, don't touch it)
Hi,
As mentioned above, looks like your theme.
A typical head content for me:
As mentioned above, looks like your theme.
A typical head content for me:
<!DOCTYPE HTML> <html> <head> <link rel="stylesheet" type="text/css" href="<?=$this->getThemePath()?>/style.css"> <?Loader::element('header_required'); ?> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head>
Not sure how that snuck in there but yes, you are all correct. Somehow I left the meta tags in the <head>. I think I may have used the wrong files when I did an update and brought them back in. Thank you!
Check your themes header file and see if there is duplicate meta info coded in there.