• Resolved jesusdr85

    (@jesusdr85)


    Hi, I’d like to know how to switch the position the first 2 tabs in the seller’s dashboard.

    I’d like the products tab to be the first tab and the dashboard tab to be the second.

    Thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @jesusdr85 ,

    Please use this code in your themes functions.php file –

    add_filter( 'dokan_get_dashboard_nav', function($urls) {
        $urls['dashboard']['pos'] = 15;
        $urls['products']['pos'] = 10;
        return $urls;
    } , 500);

    Thank you.

    Thread Starter jesusdr85

    (@jesusdr85)

    Hello Rashed,

    That worked, thank you, the tabs are now switched.

    But I’d like also that the first screen a new registered or logged in user sees in the vendor dashboard is products and not dashboard. Is that possible?

    Hello @jesusdr85 ,

    We have used a WooCommerce filter to be able to redirect a vendor to the dashboard page after login. You can find the implementation here at – dokan-lite\includes\functions.php at line #2576. You can do your modification based on this filter and associated function.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change order of tabs in Dashboard’ is closed to new replies.