• Creator
    Topic
  • #30403

    Michael Sinclair
    Spectator
    Been thanked: 0 times

    What is the correct procedure for adding a Custom Function to Alora?
    I wish to create separate menus for logged in members and none logged in visitors.
    I am using the most update versions of Alora premium and BuddyPress as the main components.

    I have tried using the following function in 2 dedicated ‘Function’ plugins, also I have tried adding it in wp-content/themes/alora/custom_functions/custom_functions.php and bp-coreadmin-functions.php but to no avail.

    function my_wp_nav_menu_args($args = ”) {
    if( is_user_logged_in() ) {
    $args[‘menu’] = ‘secondary_navigation’;
    } else {
    $args[‘menu’] = ‘main_navigation’;
    }
    return $args;
    }
    add_filter( ‘wp_nav_menu_args’, ‘my_wp_nav_menu_args’ );

    Thank you in advance for any help

Viewing 1 replies (of 1 total)
Replies
  • Denzel Chia
    Moderator
    Post count: 3230
    Been thanked: 129 times
    #30407 |

    Hi,

    In this support forum, We only provide support on how to use our product and simple customization using custom css.

    You can contact our developer for this customization assistance via the following URL
    https://theme4press.com/theme-customization-service/

    Thank you.

Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.