How I changed the sort order of my links in the Thesis navigation bar

I’ve had http://www.amandavandervort.com for a couple years now and I’ve always redirected my root domain to the /blog subfolder. Now I’m ready to create a homepage at the root domain, and I want to link to it directly in my navigation. It’s easy to create external links in the navigation using the Thesis options. However, these links appear alphabetically and you can’t select the order of your choice. I want the “HOME” tab to be numero uno.

I found this tutorial and it was extremely helpful, I definitely recommend you give it a read. However I tackled the task a bit differently, so I wanted to share my process.

Step 1 – Create a template file.

I opened a text editor and pasted the following text into a blank page:

/*
Template Name: home
*/
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.amandavandervort.com" );
?> 

I saved it as “home.php”. I kept the name simple.

Step 2 – Upload the file.

Next, I uploaded the file to my Thesis folder. (Not the custom folder, the actual Thesis theme folder.)

    From thesis-blogs.com: I do want to point out that I prefer not to save any files outside the custom folder. I tend to make an exception with this one and there’s probably another workaround that I’m not aware of. Just remember that if you are upgrading Thesis that you have to move the template file as well.

Step 3 – Create a new page.

Here’s what I did:
– Created a new page in WordPress and named it “home” (http://www.amandavandervort.com/blog/home)
– Scrolled down to where it says Template, and from the drop down list, selected the “home” template I just uploaded in Step 2.
– Selected the checkbox: [ ] noindex robot meta tag to this page.
– Clicked Save.

Step 4 – Add page to the navigation.

I went to Appearance > Thesis Options > Pages, and checked the page I just created. It was easy to put it in the first position in the navigation bar by dragging and dropping.

Step 5 – Remove template tag.

The link wasn’t working properly, so I opened the .php file that I created in Step 1 on my desktop and removed the following code:

/*
Template Name: linkname
*/

Then I re-uploaded it to the thesis folder and overwrote the previous file.

Voila! Now it works great :-) Good luck and happy coding!

* You’ll probably notice that when you click the HOME tab in my navigation, that it redirects to the /blog subfolder. I’m planning to keep a redirect on http://www.amandavandervort.com to http://www.amandavandervort.com/blog until I have my landing page ready to go. But in the meantime, I’m thrilled I have the infrastructure all set up.

2 thoughts on “How I changed the sort order of my links in the Thesis navigation bar

  1. Thanks for the blog-love :) I use my blog to test out new layouts and functionality. The Orange will be back soon enough I promise!

Leave a Reply

Your email address will not be published. Required fields are marked *