Another day, another Genesis Framework tutorial.
Most professional bloggers and big brands are using Genesis Framework on their blog. Well, not just only professional bloggers. Genesis Framework is being used by most beginners these days. There are only a few reasons to use the Genesis Framework.
- SEO Optimized.
- Speed Optimized.
- WooCommerce Ready.
- Lifetime Support.
- Lifetime Updates.
- Secure and Stable Code.
For more about the Genesis Framework, you may want to read our Genesis Framework review.
Recently, one of our users asked how to de-index archive pages in Genesis Framework. Yes! We are using the same method for de-indexing our archive pages.
Why No-index Archive Pages?
Archive pages mean,
- Category archives.
- Tags Archives.
- Author Archives.
- Product Category Archives etc…
I hope using these pages indexable will create duplicate title and meta description issue and hurts the website issue. Not only just us. If you need to avoid duplicate content issues, you must consider some options like this.
Yoast plugin will help you to disable the author archive in the Yoast configuration wizard. Make your blog a single-author and you have successfully disabled the author archive!
How To De-Index Archive Pages In Genesis Framework
You don’t need to use any custom plugins for de-indexing the archive pages. Just by adding some code to your theme’s functions file, you could de-index all the archive pages.
So without wasting time, let’s get started.
First of all, log in to your WordPress admin dashboard and go to the theme editor. You can find the theme editor under the appearance menu. Make sure that you are using any Genesis child theme. In our case, we are using the Generate Pro theme on our blog.
By default, the theme editor will load up the theme’s style.css file.
From the right side, you need to choose the functions.php file.
Copy the below code.
// adding 'noindex' meta to archive add_action( 'wp_head', 'add_noindex' ); function add_noindex() { if(is_archive()) { echo '<meta name="robots" content="noindex,follow" />'; } }
Paste the code in your theme’s functions file and update it.
You are done!
Conclusion
This is how you can add noindex for archive pages. As a result, a no-index tag will be placed on your archive pages. Search engines will not index them but follow all the links from it.
We hope you found this post how to de-index archive pages in Genesis Framework helped and learned how to do it. If you did, please consider sharing this post with your friends and fellow bloggers on social media.
For more related posts, you may want to see our blog section.
If you are using Genesis Framework on your blog, check these tutorials. They will be helpful for you.
- How to show comment policy in Genesis Framework.
- How to show the last updated date in Genesis Framework.
- How to customize Genesis footer credits.
If you need us to cover something special, feel free to contact us.
Leave a Reply