• Resolved blasyfeel

    (@blasyfeel)


    Hello

    How do I add an icon to a link that I add to the dashbors page? For example add the same icon as that of “withdrawal” in the new link.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @blasyfeel

    Check this SS: https://prnt.sc/26bcdr8. You need to use custom CSS code to do this. You need to use the CSS ::before selector.

    Kind Regards.

    Thread Starter blasyfeel

    (@blasyfeel)

    Hello, Thank you for your feedback.

    I don’t know much about programming and I don’t know how to do it.

    Here is the code I used to add the links in the dashboard:

    add_filter (‘tutor_dashboard / instructor_nav_items’, ‘add_some_links_dashboardR’);
    function add_some_links_dashboardR ($ linksr) {
    $ linksr [‘custom_linkr’] = array (‘title’ => __ (‘Checkout mode’, ‘tutor’), ‘url’ => ‘https://link.com/’, ‘auth_cap’ => tutor () -> instructor_role);
    return $ linksr;
    }

    How to add the withdrawal cine in front of the Checkout mode links I just created.

    Thank you

    Hello @blasyfeel

    Please use this CSS code:

    .tutor-dashboard .tutor-dashboard-left-menu .tutor-dashboard-permalinks .tutor-dashboard-menu-custom_link a::before {
       content: "\e960";
    }

    Kind Regards.

    Thread Starter blasyfeel

    (@blasyfeel)

    thank you very much

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.