Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Move menu position in sidebar and change dashboard colors

Theme and Plugin Support

Resolved
Viewing 7 reply threads
  • Author
    Posts
    • #114145
      developer-8646
      Participant

      Hello I hope you are well.
      Could you please help me to know how I can change the position of the menus in the left sidebar, I would like the option “Pedidos” to be under “Escritorio”. We also want to change the colors of the dashboard.
      I appreciate your prompt help.

    • #114265

      Hi,
      using below code you can change the position of the menu
      Please add this code in the function.php of the current active theme :

      add_filter('wcmp_vendor_dashboard_nav', 'wcmp_vendor_dashbord_sidebar_modification');
      function wcmp_vendor_dashbord_sidebar_modification( $header_nav ){
      	$header_nav['vendor-orders']['position'] = 5;
       return $header_nav;
      }
      Copy

      >> We also want to change the colors of the dashboard.
      — You also change the dashboard color from admin dashboard >> WCMp >> Settings >> Vendor >> Vendor Frontend
      checkout the image – https://prnt.sc/xg2wo2

      Regards,

    • #116697
      Criss
      Participant

      Could you please update the code to re-order ALL menus?
      Do you also have a way of re-ordering the Knowledgebase articles created? (though I could just re-create them, since thay follow “last-modified” order)

    • #116754

      Hi,
      Our replies are inline:
      >> To re-order all menus use below filter

      apply_filters( 'wcmp_vendor_dashboard_nav', $vendor_nav );
      Copy

      >> Do you also have a way of re-ordering the Knowledgebase articles created? (though I could just re-create them, since thay follow “last-modified” order)
      — To re-order the knowledgebase articles kindly use below filter.

      wcmp_vendor_knowledgebase_query_args
      Copy

      Regards,

    • #116802
      Criss
      Participant

      …sorry but I’m not a coder and that doesn’t help me. I don’t know what to add in the filter function.

    • #116834

      Kindly tell us your menu order and what do you want for knowledge base page.
      So we will help you accordingly.

      Regards,

    • #116844
      Criss
      Participant

      Thanks. I guess I could leave the dashboard menu as they are, but then I wish to have the knowledgebase replicating the same order: dashboard + store settings + product manager + catalogue + coupons + stats + orders + payment + knowledgebase + tools
      In your demo there are more menus, and I wonder why I don’t have them. Maybe they have been disabled by my theme.

    • #116902

      Hi,
      as per your requirement to change the knowledge base data as the above order is required some changes or custom code.
      using above filter or template override.Currently the data is showing order by ‘date’ and you can change that using some parameter like data,ID,title,name,modified etc.
      checkout the link for more info – https://bit.ly/3rcrC6D.

      Please let me know if you need any help further.

      Regards,

Viewing 7 reply threads

The topic ‘Move menu position in sidebar and change dashboard colors’ is closed to new replies.