How to edit SiteMap links in ZenCart


DreamTemplate - Web Templates

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?!

  • Share/Bookmark

Related tutorials that might interest you:

    How to edit the top menu links in ZenCart
    How to edit the SiteMap text in ZenCart
    How to edit the ZenCart header image
    How to replace the ZenCart logo with your own
    How to edit the checkout success page in ZenCart

One Response to “How to edit SiteMap links in ZenCart”

  1. neon says:

    excellent post, thanks!