Meta Description for ALL my Posts is Being Overwritten!
-
Every single one of my posts meta descriptions are being overritten with the same meta description!
I use Yoast and have proper meta descriptions in my posts, but something seems to be overriding them.
Any idea what could be causing this?
Thank you!!!
- Mike
-
Hey Mike. Not to fret, this is actually a common silly mistake in theme development. The meta description shouldn't be set in WordPress theme because that is handled in the wp_head function. This function is where Yoast, and other plugins, hook into to deliver all the SEO optimized meta and header tags.
-
This is wrong, but right. This is a theme problem. The blog description is a description for the blog website as a whole, and not a description for the page. In Wordpress, you should not set a meta description explicitly in the theme file. That's the job of the wp_head, especially if you are using an SEO plugin to manage your descriptions. It's a common mistake that is easily remedied as evidenced by his reply.
-
The string 'get_bloginfo('description')' spawns the blog description stored in wordpress under settings. But that shoud'nt cause issues with different setup descriptions per page while using a SEO plugin on wordpress. It's more of a theme issue i think because normally that shoud'nt happen.
I woud'nt worry alot about it either; google tends to ignore the description sometimes too and focusses on the actual content on page.
-
Thanks for all the responses!
I did remove the code and it seems to have solved the problem. Now I just don't know if any other different issues could have popped up from removing that code. So the problem seems to be fixed - I'm just sitting a bit in the unknown in terms of if the change had any other unwanted repurcussions.
- Mike
-
Yes and by removing that shortcode you completely remove the description from the blog. But a description is'nt something google takes into account alot now these days. It can actively read the content on your website or page, and align that within search. I mean i have sites that are completely ignored due to the description tag.
It's like meta name keywords all over again.
@Naturalsociety, if you switch the theme to something temporarily, does it appear back again? If so; you have a theme issue.
-
Sounds like a WordPress issue. I suspect there is a meta description defined in your theme file. Check that isn't the case.
It will look like this or very similar:
get_bloginfo('description')
Get rid of the whole meta tag that contains this php code.
If you are unsure how to find this, it will most likely be in your theme's header file. You can find this by going to the theme's folder and look for header.php.
You can also do this through the WordPress Dashboard > Appearance > Theme Editor. On the right hand side select the "Theme Header".
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Wrong Hotel Amenity Being Pulled Into Meta Description
Hey Mozzers, Have a quick question for you hospitality folks. We have a hotel property that has amenities being pulled into the meta description that aren't correct. We do have a custom meta description in the CMS but it is only pulling a portion of our meta description and is then including what appears to be a dynamic list of hotel amenities: "free covered parking; full service catering; complimentary airport shuttle". The airport shuttle is no longer free and the property is charging a small fee. All copy on the page (and across the site) has been updated to reflect this change. My main questions are: 1.) Are these amenities just pulled by Google? Do we have any control over this? 2.) Is there anything we can do to correct this error? Or do we just need to wait for it to hopefully update automatically? Thanks for the help!
Technical SEO | | mbochic0 -
Meta Descriptions
Hi All, Just a quick question regarding Meta Descriptions, I am currently looking at a site where an awful lot of the Meta descriptions are similar (not 100% duplicated). The reason being is that the site contains a lot of the same products, but different weights. For example a 500g, 1kg & 2kg version of the same product. Therefore the Metas are same, apart from the weight that's being discussed. In my opinion the duplication is probably a little too close. Do you think in this circumstance its better to have no Meta descriptions defined at all? Thanks!
Technical SEO | | CarlWint0 -
Google adding strings to meta title in SERPs => Driving my client crazy!
Fellow Mozzers, I'm really baffled by Google's behaviour adding strings before my meta title in the SERPs.
Technical SEO | | TheReference
This behaviour seems random, but it mainly happens on queries that trigger the homepages (multilingual .com domain).
I'm aware of meta title guidelines concerning length, and I know that Google may insert strings if it thinks it could benefit the user.
But clearly their "aid" is not helpful at all... Client is really anxious to get this resolved and we're stumped on what could be the cause for this... Some examples: Query: https://www.google.co.uk/#hl=en&pws=0&q=Ogone - Online payment gateway
Result title: en-gb - Ogone - Online payment gateway
Normal title: Ogone - Online payment gateway Query: https://www.google.at/#hl=de&q=Ogone Online Payment Service Provider
Result title: ogone.at - Ogone. Online Payment Service Provider & e-payment ...
Normal title: Ogone. Online Payment Service Provider & e-payment Deutschland
=> For longer titles it will just prepend strings, and leave out our piece of the meta title Query: https://www.google.nl/#hl=nl&pws=0&q=Support Ogone
Result: Support | Ogone
=> For very short titles, Google doesn't add anything, why does it so for the other results? I really don't understand why this happens. The titles are long enough (but not too long), no strange characters inserted. Please, please help. Thanks in advance! Nikolaas0 -
Meta description and Meta Keywords
Hi, We are new to SEO and have some meta Q's Should Meta descriptions and meta keywords be different on every page? Is it bad to have the same meta data repeated on the site? If it has to be different does it have to be totally different per page of just slightly different? Should the description contain keywords is there an advantage to that? Thanks Andrew
Technical SEO | | Studio330 -
Should I implement pagination(rel=next, rel=prev) if I have duplicate meta tags?
Hi, I just want to ask if it is necessary to implement pagination(rel=next, rel=prev) to my category pages because Google webmaster tools is telling me that these pages are having similar meta title and meta description. Ex. page1: http://www.site.com/iphone-resellers/1 meta title:Search for iphone resellers in US page2:http://www.site.com/iphone-resellers/2 meta title:Search for iphone resellers in US page3:http://www.site.com/iphone-resellers/3 meta title:Search for iphone resellers in US Thanks in advance. 🙂
Technical SEO | | esiow20130 -
Are gallery sites ok post Penguin?
We're getting ready to re-launch a redesigned site and I was hoping to use the opportunity to get some quality links. Are some of the higher-quality web design gallery sites still ok to submit to? Did Penguin have any effect on these? Just looking for opportunities for a little boost from our re-launch.
Technical SEO | | _JP_0 -
Google description showing latest post excerpt
In doing a search for our website, The Tech Block, I realized that our description is not showing what we have in our Yoast settings, but rather the content from the slider: http://d.pr/i/kGjB What can I do to fix this?
Technical SEO | | ttb0 -
Meta description tag missing in crawl diagnostics
Each week I've been looking at my crawl diagnostics and seomoz still flags a few pages with missing meta description although they are definitely in there. Any ideas on why this would be happening?
Technical SEO | | British_Hardwoods0