Jump to content


Photo

On the Child Theme, Modify the navigation


  • Please log in to reply
1 reply to this topic

#1 bendolmorlom

bendolmorlom

    Newbie

  • Members
  • Pip
  • 5 posts
  • Country: Country Flag

Posted 04 May 2014 - 01:55 PM

I was wondering if it's possible to modify the navigation hook from the function.php of the child theme.

<?php do_action('pagelines_header', 'header'); //hook ?>
In fact, I don't want to use the option menus within the appearance section of the admin because I need to apply some conditional statements to display some links into my navigation or not. Does it make sense?

Or does it exist a way of choosing the menu to use directly? 



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 15702 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 04 May 2014 - 04:07 PM

HI,

 

I am not entirely sure what you mean or trying to do ?

 

If you're trying to add conditionals to your navigation, you could look at these plugins, although I haven't tested them and it hasn't been updated recently

 

http://wordpress.org/plugins/if-menu/
https://wordpress.or...bility-control/