Posted By

kristarella on 03/23/09


Tagged

wordpress thesiswp


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

girliegeek
mlangfeld
tmbrenneke
joelhaus
naeemnur


Rearrange Thesis nav


 / Published in: PHP
 

URL: http://diythemes.com/forums/thesis-customization/4512-custom-menus-if-cat-two-menus-if-else-one-menu.html#post23140

  1. function custom_nav_menu() { ?>
  2. your custom menu
  3. <?php }
  4.  
  5. function place_menu() {
  6. if (is_single() && in_category(array('5','6','7')) || is_category(array('5','6','7'))) {
  7. add_action('thesis_hook_after_header', 'custom_nav_menu');
  8. } else {
  9. remove_action('thesis_hook_before_header','thesis_nav_menu');
  10. add_action('thesis_hook_after_header','thesis_nav_menu');
  11. }
  12. }
  13. add_action('thesis_hook_before_html','place_menu');

Report this snippet  

You need to login to post a comment.