This topic has 3 replies, 2 voices, and was last updated 7 years by Kieran_SQ.

  • Author
  • #177351
     rlarson87
    Participant

    Hi, is it possible to reorder the tabs in the User Messages section? Right now the tabs order is Inbox, Starred, Sent, Compose, Notices. I would like it to be Compose, Inbox, Sent, Starred, Notices

    Attachments:
    You must be logged in to view attached files.
    #177393
     Kieran_SQ
    Moderator

    Hi,

    Please try adding the below snippet to the end of your KLEO Child theme’s functions.php file by going to Appearance > Editor > KLEO Child > Functions.php

    COPY CODE
    function add_settings_subnav_tab() {
    
        //reorder messages tabs
        buddypress()->members->nav->edit_nav( array(
            'position' => 10,
        ), 'compose', 'messages' );
    
        buddypress()->members->nav->edit_nav( array(
            'position' => 11,
        ), 'inbox', 'messages' );
    
        buddypress()->members->nav->edit_nav( array(
            'position' => 12,
        ), 'sentbox', 'messages' );
    
         buddypress()->members->nav->edit_nav( array(
            'position' => 20,
        ), 'starred', 'messages' );
    
    }
     
    add_action( 'bp_setup_nav', 'add_settings_subnav_tab', 100 );

    Thanks,

    Kieran.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #177436
     rlarson87
    Participant

    Thanks. What is the “Notices” tab in the messages section for? Is it possible to hide that?

    #177531
     Kieran_SQ
    Moderator

    Hi,

    The notices tab is for admins only and allows an admin to send a message to all users with minimal resources, this is a great feature if you want to announce site downtime or that your company/site is holding an emergency fundraiser etc. For the sake of comparability you should leave the code in tact.

    Kieran.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

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

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?