Adding Another WordPress 3.0 Menu to Thesis
Not everything here is about finances or real estate. My former life was a very technical life, and those skills and the drive to tinker haven’t ended. As you can see by my various websites, I am a WordPress junkie, and my primary theme is Thesis, by DIYTHEMES.
Today I answered one of my own questions on the forum with a little research and ingenuity.
The question was how do I register a 2nd menu for Thesis and then implement it.
WordPress 3.0 implemented a new menu system which makes building your menus much easier, in my opinion. Some other programmers out there may not agree, but for the novice php tinker-junkie like myself, it’s perfect.
Thesis Version: 1.8b3
WordPress Version: 3.0
Cost to implement: $0.00. (there’s the financial section)
In order to make this happen with Thesis, it’s important that you have the Thesis options set to use the WordPress menu system instead of the Thesis menu system. Once that’s set, you can get to the meat of the matter.
If you don’t know how to utilize hooks in Thesis, stop. You need to understand this process first. Thesishooks.com is a good place to start to learn how to do this.
Register an Additional Menu for your Thesis Theme
By default, there is only provision for one menu in Thesis when you use the WordPress menu system. You need to make sure your theme can handle two menus. Open yourcustom_functions.php file and insert the following code:
<?phpadd_action( ‘init’, ‘register_my_menu’ );function register_my_menu() {register_nav_menu( ‘sub-menu’, __( ‘Sub Menu’ ) );}?>
<? function sub_menu() { ?><?php wp_nav_menu( array( ‘theme_location’ => ‘sub-menu’ ) ); ?><? } ?><? add_action(‘thesis_hook_before_header’,'sub_menu’); ?>
Related posts
- Troubleshooting CformsII
- Plug-In Creators Unite and Take Over
- WordPress Visual Editor Problems
- How to Reinstall WordPress Safely
- The Apprentice Theme Part One: Inspiration
- What is Blogging?
- WordPress...coolio...
- What is a Trackback?
Recent Comments
- Mv_augusta10 on Explosive Retail Diarrhea
- Good Nelly on Forget about retirement, most don’t even have emergency funds
- Am I Liable for the Balance or Difference in a Short Sale? on The Right Way To Monitor Your Credit Report
- Jon Griffith on Even The Experts are Upside Down
- Jon Griffith on It’s Fun to Watch Money Grow, Even If It’s Only $1000
Popular Posts
How to Reinstall Wordpress Safely
There may be a time when you...
LinkedIn.com Signatures in Outlook 2007
Creating signatures in Outlook...
Please, write something of value!
I just read four articles on...
Changing File Associations in Windows Vista
Sometimes you will need to...Older Articles
Topics
Tags
banks budget budgeting caffeine cars coffee confidence creativity credit card credit cards credit cards suck culture dave ramsey Debt download drive driving eat expectations freedom give heart how to interest Internet Explorer iPhone kids love marketing mortgage music Outlook paycheck Phoenix planning save savings server services songs spend spending track transparency Wordpress






