How to edit SiteMap links in ZenCart

ZenCart includes a generic sitemap which links to all pages and product categories within your store.

sitemap1

If you want to include custom links or edit current links displayed on the sitemap, this tutorial will show you how to do it. To edit the sitemap links, you will need to edit the tpl_sitemap_default.php file.

If you are using the default green ZenCart template, this file is located here:

YOUR_ZENCART_FOLDER/includes/templates/template_default/templates/

Using either Notepad or WordPad, open the tpl_sitemap_default.php file.

To remove a link, locate the link you wish to remove and delete all of the code associated with it starting with < li> and ending with < /li>.

For example, to remove the link to the “Conditions of Use” page, delete the following line:

< li>< ? php echo ‘< a href=”‘ . zen_href_link(FILENAME_CONDITIONS) . ‘”>’ . BOX_INFORMATION_CONDITIONS . ‘< /a>’; ? >< / li>

To add a link, add the following code wherever you would like the link to appear:

< li>< a href=”http://WWW.YOURLINK.COM”>YOUR LINK TEXT< /a>< /li>

NOTE: Remove the spaces I have added in above before saving your file.

After finishing your edits, save the file and upload to your server.

Your sitemap will now appear with your link edits.

Easy, right?!

Popularity: 18% [?]

Related tutorials that might interest you:

  1. How to edit the top menu links in ZenCart
  2. How to edit the SiteMap text in ZenCart
  3. How to edit the ZenCart header image
  4. How to replace the ZenCart logo with your own
  5. How to edit the checkout success page in ZenCart

About Gerae Lindsey

Gerae has been a freelance designer for 8+ years. She currently resides in Southern Arizona with her husband and children where she enjoys gardening, reading, and of course, fiddling with WordPress and ZenCart.

One Comment

  • neon
    September 2, 2009 | Permalink |

    excellent post, thanks!

Leave a comment

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Your email is never shared.

Tutorials and images were personally written/created by me, Gerae Lindsey, and are copyrighted to myself. You are free to link to them from your website, but please do not post them on your website. All tutorials were written for use with Microsoft Windows. I recommend and personally use Firefox to browse the Internet, but these tutorials should work for Internet Explorer as well. No warranty or guarantee is made; use of the tutorials is done so at your own risk. I recommend you make a backup BEFORE installing any software or script, or making ANY changes to your website.