Click to go to USFreeAds' website
About
This website is all about strategies to help you grow your niche store empire. I have many Build A Niche Store sites and use the strategies that I share here.
Newsletter
Subscribe to my posts and get all of the latest tips and strategies sent directly to your email!
Delivered by FeedBurner
RSS Feed
Get the most recent posts and comments sent to you directly by subscribing to my RSS feeds!
Subscribe to RSS! Subscribe to RSS Comments!

Feb
11

How to Add Mark’s Sitemap to Your Site

RochelleHow To..., Strategies

April 23, 2008 Edit: This mod is for Build A Niche Store (BANS) sites that are v1 or v2 only. BANS v3 includes a sitemap so there is no need to add this mod to v3+ sites.

You can help visitors find what they want or get around your site by adding a sitemap. BANS forum member Mark (aka meetmydomains) created a great sitemap that automatically updates whenever you add a new store page. It does not, however, show content pages.

Unlike the dynamic sitemap, this sitemap is meant to be displayed from within your site and viewed by people. It will also help spiders index your site. It is ok to use this mod and the dynamic sitemap mod by Webmogul together.

You can view Mark’s instructions for this mod at http://www.thenichestorebuilder.com/build-a-niche-store-sitemap-mod-complete-version.htm.

Note: If you added this mod to your v2 store and then updated the store to v3 then you need to read How to Redirect Your Old Sitemap to Your New Sitemap.
 

My instructions to add Mark’s sitemap to your site:

Step One
  Go to FrontControl.php (click here if you don’t know how to do this).
   
  Save a copy of the original code (click here for instructions on how to do this).
   
  Copy and paste the contents of frontcontrol-changes.txt directly ABOVE the function getMainPageParent(){ code.
   
  Save changes and view site for errors.
Step Two
  Log in to your site’s Admin and click the ‘Content Pages‘ tab and ‘Create Content Page‘ link.
   
  Create your new content page and name it something like, “My-Niche-Store-Sitemap.” If you like you can add some text to the Page Content area but this is optional.
   
  Save page.
Step Three
  Click the ‘Template‘ tab and ‘style.css‘ link for the template you are using.
   
  Save a copy of the original code (click here for instructions on how to do this).
   
  Copy and paste the contents of stylescss-changes.txt to the bottom of styles.css directly BELOW the /* Miscellaneous End */ tag.
   
  Save changes and view site for errors.
Step Four
  Note: Skip this step if you did the Permalink or RSS Content Page mods. This is a duplication of code used in these mods and adding it again will cause a fatal error on your site.
  Click the ‘header.php‘ link for the template you are using.
   
  Copy and paste the contents of header-changes-01.txt to header.php directly ABOVE the </head> tag.
   
  Save changes and view site for errors.
Step Five
  Decide if you want any text added to your Sitemap content page (added via the Page Content section) to be displayed above the sitemap results or below them:
 

  • For text ABOVE results add the code in step six to footer.php from the template you are using
  • For text BELOW results add the code in step six to header.php from the template you are using

Step Six
  Copy the contents of header-changes-02.txt and paste it to one of the following:
 

  • header.php (any text you add will be below the results) - paste contents directly BELOW the <div id=”content” class=”narrowcolumn”> tag .
  • footer.php (any text you add will be above the results) - paste contents ABOVE all other code in footer.php

  Change the following bit of code before you save your changes:
 
  • http://www.MYURL.com/MY-SITEMAP-URL to your sitemap’s URL
   
  Save changes and view site for errors.
done

Rochelle

Related Posts:

  • How to Add a Dynamic Sitemap to Your Site
  • How to Redirect Your Old Sitemap to Your New Sitemap
  • How to Add Permalinks (or Link-Backs or Trackbacks) to your Site
  • How to Add your Dynamic Sitemap to your site’s robots.txt
  • How to Add a Single RSS Content Page to Your Site
  • How to Add ‘Refer a Friend’ Code to Your Site
  • How to Add ‘Bookmark this Site’ and ‘Refer-a-Friend’ Links to your Site
  • How to Add ‘Bookmark This Site’ Code to Your Site
  • How to Add robots.txt Meta Tags to Your Site
  • How to add a ‘Safety on eBay’ page to Your Site
  • RSS feed | Trackback URI

    7 Comments »

    Name (required)
    E-mail (required - never shown publicly)
    URI
    Subscribe to comments via email
    Your Comment (smaller size | larger size)
    You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

    Trackback responses to this post