Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Menu Button with an icon #279343

    Hey Ismael,

    Thanks a lot for your immediate response.

    Yes I have already created two custom menus. As described above “logged-in” menu when the user logged in and “logged-out” menu when the user logged out.

    The function you provided works fine but it still hasnt solved my problem yet.
    The main problem with above mentioned code is that it changes the menu in footer area as well.

    Please see the regarding website here http://www.geanguru.com

    I guess there should be some “else” command for the footer menu so called “secondary” or whatsoever. Dont you think ?
    I couldnt solve the problem on my own so your help is highly appreciated.

    Thanks in advance

    • This reply was modified 10 years, 5 months ago by geanguru.
    in reply to: Changing the Style of Masonry Categories #279263

    Hey Yigit!

    Thank you for your fast response. It works!

    in reply to: Menu Button with an icon #279262

    Hi Ismael,

    Thank you for your quick response.

    To be honest I decided to show a completely different menu when the user is logged in. So instead of replacing “Login” button with “Logout” button I want to replace whole menu with a second custom menu.

    To do that I used below mentioned function

    function my_wp_nav_menu_args( $args = '' ) {
    
     if( is_user_logged_in() ) {
      $args['menu'] = 'logged-in';
    } else {
      $args['menu'] = 'logged-out';
    }
     return $args;
    }
    add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' ); 

    Where “logged-in” and “logged-out” represents two different custom menus I have created.

    But the problem with this function is that it changes the footer menu as well.

    How can I modify the function to make it replace the menu only in header ?

    Thank you very much in advance

    in reply to: Changing the Style of Masonry Categories #279144

    Can anybody please response ?

Viewing 4 posts - 1 through 4 (of 4 total)