• Creator
  • #30403

    Michael Sinclair

    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)
  • Denzel Chia
    Post count: 3230
    #30407 |


    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

    Thank you.

Viewing 1 replies (of 1 total)

The topic ‘How do I add a Custom Function to Alora?’ is closed to new replies.