• Resolved ans11

    (@ans11)


    Hi,

    I want to remove the visit store option in the dokan vendor dashboard. So how can I do this.

    Secondly, I have added this visit store option in my dokan vendor dashboard as a full option instead of mini option with following code:

    $urls['profile']['title'] = 'Profile';
    $urls['profile']['pos'] = 11;
    $urls['profile']['url'] = dokan_get_store_url(dokan_get_current_user_id());

    I have used the “dokan_get_dashboard_nav” hook. But the issue is this new visit store does not open in new tab as previous. So how can I open it in new tab. Please help in both of these problems. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Yeasin Arafat

    (@yeasinarafathridoy)

    Hi there,

    Could you please indicate the location where you’d like the “Visit Store” button to be hidden? A screenshot would be very helpful.

    Also, please give the following code a try to open the page in a new tab.

    $urls['profile']['title'] = 'Profile';
    $urls['profile']['pos'] = 11;
    $store_url = dokan_get_store_url(dokan_get_current_user_id());
    $urls['profile']['url'] = esc_url($store_url, ['_blank']);

    Thanks,

    Thread Starter ans11

    (@ans11)

    Thank you Yeasin Arafat for your reply.

    I applied your solution but it does not work. By using your code, it points towards to the main dashboard instead of sending to store url.

    https://drive.google.com/file/d/1–_oQlTsQ1Ef5NEoKH9SdycIU56GyISD/view?usp=sharing

    Above image has visit store logo highlighted in blue. I want to remove this. Thank you.

    • This reply was modified 1 year, 4 months ago by ans11.
    Plugin Support sazdhossain

    (@sazdhossain)

    Hi @ans11,

    To remove the visit store button and open the edit profile page in a new tab when clicked from the vendor dashboard, you may use the following snippet:

    function my_custom_dokan_common_links( $common_links ) { $common_links = '<li class="dokan-common-links dokan-clearfix"> <a title="' . __( 'Edit Account', 'dokan-lite' ) . '" class="tips" data-placement="top" href="' . dokan_get_navigation_url( 'edit-account' ) . '" target="_blank"><i class="fas fa-user"></i></a> <a title="' . __( 'Log out', 'dokan-lite' ) . '" class="tips" data-placement="top" href="' . wp_logout_url( home_url() ) . '"><i class="fas fa-power-off"></i></a> </li>'; return $common_links; }

    add_filter( 'dokan_dashboard_nav_common_link', 'my_custom_dokan_common_links' );

    Hope this helps!

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @ans11,

    Due to inactivity, we are marking this topic as resolved. Feel free to open a new one if you face any further issues.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to remove visit store option in dokan vendor dashboard’ is closed to new replies.