• Hi there

    I wish to add a new tab to the dashboard, that links to a page I have created using Elementor. But I would like to view this page WITHIN the dashboard. Similar to how all of the other tabs work.

    At the moment, all I have been able to achieve is creating a tab that links to a page outside out of the dashboard.

    I would really appreciate any help with this,
    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Parag Das

    (@parag44)

    Hello @dan87manc

    Please follow these steps:

    1. Add the following code to your theme function.php file

    add_filter('tutor_dashboard/nav_items', 'add_some_links_dashboard');
    function add_some_links_dashboard($links){
    	$links['your_page'] = array('title' => __('Your Page Title', 'tutor'), 'auth_cap' => tutor()->instructor_role);
    	return $links;
    }

    2. Now, create a PHP file your_page.php on this location: tutor/templates/dashboard/

    3. Create and edit a page with elementor, after the editing/ designing has been done save the page as a template.
    http://prntscr.com/26cnw0l
    http://prntscr.com/26cnw67

    4. Now navigate to your wordpress dashboard > Templates > Saved templetes. On the right side you will find the specific shortcode for the templete.

    5. Now, add the following code to the file your_page.php

    <?php
    echo do_shortcode('[elementor-template id="14304"]');
    ?>

    Don’t forget to replace the template id with your elementor template id.

    Thank you!
    Best Regards,

    Thread Starter dan87manc

    (@dan87manc)

    @parag44

    Hi Parag

    Thank you very much for the detailed reply!

    I have followed the instructions and I can now see the link on the dashboard. However, when I click it I get a 404. I have swapped the template id with my page, so that shouldn’t be the problem.

    Any thoughts?

    Thanks mate!

    @dan87manc I wanted to make the same thing on my site and came across your post.
    just wondering if you managed to get this work?

    • This reply was modified 1 year, 11 months ago by futureyoon.

    Hello @dan87manc!

    You can resave permalinks from dashboard-> settings-> permalinks and check again, please

    Thank you!

    Thread Starter dan87manc

    (@dan87manc)

    @futureyoon

    No, but I haven’t had a chance to try Kardi’s new suggestion, but you should try that.

    • This reply was modified 1 year, 10 months ago by dan87manc.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add a new page within the dashboard’ is closed to new replies.