Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @aizensoft ,

    Can you please specify in which menu you want to add the store button? Is it on the navigation menus of the site or in the dashboard menu?

    Depending on your theme you may need to use different hook to add the menu. But I can show you the way of getting the store URL –

    global $current_user;
    $user_id = $current_user->ID;
    <a href="<?php echo dokan_get_store_url( $user_id ); ?>" target="_blank"><?php _e( 'Visit your store', 'dokan-theme' ); ?> <i class="fa fa-external-link"></i></a>

    A great example of this implementation is our default Dokan Theme –
    https://github.com/weDevsOfficial/dokan-theme/blob/786020dc1791e32e2dcebedb5465039921ab9ff4/includes/template-tags.php#L275

    I hope you can get an idea from this and use it accordingly in your theme.

    Thank you.

    Thread Starter aizensoft

    (@aizensoft)

    I got rehub theme. I want add to wordpress menu.

    @aizensoft Rashed already provided the way how you can do. Now, if you want to know how you can add the menu on rehub theme then we request you to contact rehub theme author so that they can provide the correct instruction where you can add the button.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add my store to menu’ is closed to new replies.