How To Add Sitemap To Theme Footer Of WordPress

In this article, i will tell about how to add sitemap.xml in theme footer.I tested it in  themes and mostly on genesis but this coding will work in every theme.

What is need of sitemap in footer

Sitemap in the footer is helping to crawl spiders better if crawled spiders are facing any issue to submitted sitemap then they will use footer sitemap.You can notice in popular blogs that sitemap  added in their footer.

how to create a sitemap

If you are on then you need to install Yoast Seo plugin.In there is no default sitemap will available so you need to create a sitemap using Yoast plugin.

How to add sitemap in footer

I noticed people asking in forums and many sites how to add sitemap in the footer but they didn't get their answer.I will clearly say how to add sitemap into the footer.

I will be saying for genesis theme but other themes also use same metho

Step 1

Go to the appearence>editor>.click on it.Then you can see function.php file.Remoadd sitemap into the footerve custom footer credits in all pages by adding below code in function.php file this will remove the footer credits from your blog.
/** Remove Genesis Footer credits - by */

remove_action( 'genesis_footer', 'genesis_do_footer' );

simply add the above code in function.php file your footer credits will disappear.

After pasting the above code then paste this code in same file 

/** Customize Genesis Footer by */

remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'alltechmonster_footer' );
function alltechmonster_footer() {
<p> Copyright 2015-2016 <a title="alltechmonster" href="">alltechmonster</a>. Rights Reserved |
<a title="sitemap" href="">Sitemap</a>

Dont forget to change domain names in the code and you can get footer like my site.

If you need help Then leave a comment in comment section .


1 comment:

Powered by Blogger.