• Currently the lp-profile page (the ‘dashboard’ a user sees once they’ve logged in) has the tabs in the following order:

    Settings
    Courses
    Orders
    (Quizzes should also be there but I’ve used some CSS to hide it)

    I want to shuffle the tabs around so it displays as:
    Courses
    Orders
    Settings

    This makes far more sense as it means that the first page a user sees when they log in is the one that shows them which courses they are currently enrolled on – then they can click straight through to that course.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @touchofh

    You can add this code to function.php file of child theme

    
    if ( !function_exists( 'thim_change_tabs_course_profile_1' ) ) {
    	function thim_change_tabs_course_profile_1( $defaults ) {
    		unset( $defaults['dashboard'] );
    		$defaults['courses']['priority']       = 3;
    		$defaults['orders']['priority']        = 13;
    		$defaults['settings']['priority']      = 16;
    
    		return $defaults;
    	}
    }
    add_filter( 'learn-press/profile-tabs', 'thim_change_tabs_course_profile_1', 10010 );
    
    Thread Starter touchofh

    (@touchofh)

    Thanks for this. I am not super proficient in code and I’m not sure how to add this to the ‘function.php file of child theme’… Is there a way to do it by adding custom CSS within the customiser dashboard of my theme?

    Thread Starter touchofh

    (@touchofh)

    Hello, is it possible to get another update on this? Is there a way to achieve what I want by adding custom CSS within the customiser dashboard of my theme? Thanks.

    Thread Starter touchofh

    (@touchofh)

    Trying again to get a response on this. Is there a way to input the code that would effect the change I require through the customiser dashboard of my theme? I do not know how to ‘add code to the function.php of child theme’.

    I’d really like to make this simple adjustment to the LP profile page to create a more efficient experience for my users.

    Thanks,

    Libby

    Thread Starter touchofh

    (@touchofh)

    Hi @augustus09 – do you have any other suggestions for this?

    I don’t think we can do it with Custom CSS. I will be very complex and not worth it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change order of tabs in lp-profile page’ is closed to new replies.