wordpress menü seçimi


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



Copy this code and paste it in your HTML
  1. <?php
  2. if(is_page('iletisim-formu') || is_page('iletisim')) :
  3. wp_nav_menu(array('theme_location' => 'contact'));
  4. elseif(is_page('doktorunuza-sorun') || $data == "doktorunuza-sorun") :
  5. wp_nav_menu(array('theme_location' => 'question'));
  6. else :
  7. wp_nav_menu(array('theme_location' => 'global'));
  8. endif;
  9. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.