free hit counters
If you are using Internet Explorer as your browser please be running at least IE 7 or above. This site does not support IE 6 or below. Go here for the latest free version including easy download and installation instructions If you want to make it real easy on yourself, download Firefox , the most popular browser in the world. It's free and simple. You'll be so glad you did.
Nov
3
2008

Move the nav bar below the header



In your custom_functions.php file add the following code. You can put it anywhere you want but I recommend putting it at the top after the opening php tag.

/*move the nav bar below the header*/
remove_action(’thesis_hook_before_header’, ‘thesis_nav_menu’);
add_action(’thesis_hook_after_header’, ‘thesis_nav_menu’);

Leaving a comment with code in it...

If you would like to leave a comment and you have examples of code you want to show, you must "escape the code". This allows the entire code to show correctly by inserting certain variable around certain tags to make them show. If you don't "escape the code" your code will show up broken, mangled, and it won't be able to be seen correctly. "Escaping the code" is very simple...

  1. Copy your code you want to show
  2. Click here to go to the site to escape the code
  3. Follow the directions, it's so easy
  4. Once you have the escaped code copied, paste it in the comments area where you want
  5. Now you can enjoy life


Go ahead, leave a comment...

{ 10 comments… read them below or add one }

pam April 28, 2009 at 12:23 am

Hi
can I use this code with OpenHook and just put the remove_action…before the header
and the add_action after the header?
Would I still need the /*move the nav bar below the header*/ if so, where?

I already had one white screen of death experience trying this on my own, so I’m asking before every move now!
thanks
Pam

Reply

Willie Jackson April 28, 2009 at 5:54 pm

Thanks for the great tutorial! Worked like a charm.
—————–
@pam-

Anything that’s inside of the /* [Example] */ is completely ignored by the browser – that’s a “comment.”

The reason you want to comment your code (as a habit) is so 1) someone else can look at your code and understand what’s going on and 2) so -you- can come back after a month or two (or six) and understand the purpose of the code it’s describing.

Hope that helps!

Reply

Yvonne, My Halal Kitchen May 17, 2009 at 12:57 am

I went to my root file on my web server, found custom_functions.php folder, opened it up. it opened up a dreamweaver file (which I don’t know how to use). I copy pasted the code above, then saved the file on my desktop. it didn’t show up as a change on my site. what to do?

Reply

Nasty May 18, 2009 at 1:38 pm

I don’t know anything about dreamweaver. No need to use it, in my opinion.

Open the custom_functions.php file on your desktop, make the appropriate changes, save it, upload it to the correct directory…

yoursite/wp-content/themes/thesis/custom/custom_functions.php

Reply

Yvonne, My Halal Kitchen May 19, 2009 at 12:48 pm

I’ve checked all my permissions, they seem to be fine. Now when I upload my custom_functions.php file to my server, my website comes up with an error at the top, in black and a blank page to follow. I ended up deleting the customs_functions.php file on my server (it’s still on my desktop) in order to get my site back up.

Why is it doing this? Don’t I need to have that file on my server to make any changes?

Reply

Yvonne, My Halal Kitchen May 19, 2009 at 2:00 pm

This is the message that comes up on my site:

Parse error: syntax error, unexpected ‘<’ in /home/halalchef/myhalalkitchen.com/wp-content/themes/thesis_15/custom/custom_functions.php on line 33

Reply

Nasty May 19, 2009 at 5:28 pm

You need to change the path name. Thesis_15 should be changed to just “Thesis”.

When you first upload thesis, all your folders are to stay there. When you make changes, you make them on a copy that you have on your desktop, upload them and overwrite the existing one

As far as the error message goes, you probably just have a typo somewhere.Make sure all your single and double quotes are straight up and down and not angled.

Reply

Yvonne, My Halal Kitchen May 19, 2009 at 9:27 pm

I did what you said- changed title to “Thesis”, made sure quotes were straight up, etc. and now the entire site is gone. I deleted the file I uploaded that messed up the site, but the site is still gone completely.

Reply

Nasty May 19, 2009 at 9:49 pm

That’s because you changed the file path. You can change it back but your going to have problems uploading images. Did you follow the directions for installing thesis according to diy themes?

http://diythemes.com/thesis/downloads/

Check out these too…

http://www.thesishacker.com/how-to-edit-your-customcss-file-and-upload-it-to-your-server

Reply

Riavon May 23, 2009 at 6:39 am

Thanks for explaining the proper details. The one missing step that they (for some reason) neglect to include on the Thesis Theme User’s Guide page is *where* in the he// within the dang code to put this code!!! Without your clarification, it would have been trial and error hoping I got it right. So…thank you for: “You can put it anywhere you want but I recommend putting it at the top after the opening php tag.” This bit was ultimately the most helpful info!

Reply

Leave a Comment

Previous post: Add a clickable image in the header

Next post: Get rid of or change your blog title or tagline