This post is necessary if you are a Dokan user. In Dokan seller has their own dashboard panel where they can manage their own products, orders etc. Now, each marketplace place has the own business strategy and they need something very own functionality.
Now, if you want to add an extra option for the seller then you may add an extra menu on the seller dashboard. Not only the menu, you may require a template to show your own data on that location.
Here is a good example for you- Your newly registered seller need to know about your marketplace system or tutorial to run their business without any difficulties. To do that you can add an extra option on their dashboard page.
You can create an extra menu on the seller dashboard to show all the document or tutorial for your seller. You can create a section “Document” for your seller. If they click on the document then a new template document.php will load which will contain some important document.
How can I add a new menu with a template?
If you are not a professional developer then no need to worry. I am always here to share some simple code snippets which can help you a lot. I am sharing this custom code solution because I want to save your time and money.
First of all, you have to install a child theme on your website. Because child theme is always safe to add extra code or CSS. If you insert custom code on your parent theme then you will lose them during the theme update.
- Install a child theme
- Create a file “document.php” in your child theme directory.
- Open your child-theme/functions.php file
Now, on the functions.php file you can paste the below code snippets:
In the above code, you will see that on the line number 19 there is a required directory ” require_once dirname( FILE ). ‘/document.php’; “. This file is required because when you will click on the document menu it will load the document.php file.
Now, insert your own data on the document.php file then it will show on the document menu. You can check the screenshot below:
On the screenshot, you can see the new document menu with its own content 🙂
If you need any help regarding this post you can comment or send an email directly.