Rearrange Thesis nav


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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');

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.