GO TO VENDOR DASHBOARD button placed at wrong place

This topic has 10 replies, 3 voices, and was last updated 11 hours, 48 minutes ago ago by Luca Rossi

  • Avatar: redfirm
    redfirm
    Participant
    March 24, 2025 at 14:01

    How can i fix the “GO TO VENDOR DASHBOARD”BUTTON
    its currently at the bottom of my account page, positioned really badly.
    i would like to move it into the menu on the left

    Content is visible for topic creator and
    support staff only.
    9 Answers
    Avatar: Alex Carter
    Alex Carter
    Support staff
    March 24, 2025 at 16:21

    Hello,

    Thank you for reaching out to us.

    Сould you please provide screenshots for a better understanding of your request?

    Warm Regards,
    The 8Theme Team

    Avatar: redfirm
    redfirm
    Participant
    March 24, 2025 at 16:42

    here is a screenshot of the issue.

    Files is visible for topic creator and
    support staff only.
    Avatar: Alex Carter
    Alex Carter
    Support staff
    March 25, 2025 at 08:01

    Hello,

    We appreciate your prompt response.

    Edit the page using Elementor > replace the current content with My account element, then edit links – https://prnt.sc/C3cELITD-iuc
    https://www.8theme.com/documentation/xstore/xstore-builders/xstore-my-account-page-builder-with-elementor/
    Additionally, to remove the specified button, kindly add the following custom code:

    .woocommerce-MyAccount-content .dokan-btn-theme.vendor-dashboard {
        display: none;
    }

    Please try this and let me know if it works for you.

    Warm Regards,
    The 8Theme Team

    Avatar: redfirm
    redfirm
    Participant
    March 25, 2025 at 08:45

    So, i dont want to remove the button. I want the button to be in the navigation side, IF a user is a vendor. so instead of putting the css in display non, could you add that button and its function to the menu so it behaves correctly. this is needed for this theme.

    Avatar: Alex Carter
    Alex Carter
    Support staff
    March 25, 2025 at 09:41

    Hello,

    If you would like to move the button link to this menu on the left side of the “My Account” page https://prnt.sc/7dY4UJFOIErT you can do so by following the instructions provided in our previous response – https://prnt.sc/r2hiJXaxMYUT

    Please note that the original button was created by a third-party plugin. Therefore, your inquiry may also be relevant to the plugin’s support team.

    We hope this information is helpful.

    Best regards,
    8Theme’s Team

    Avatar: redfirm
    redfirm
    Participant
    March 25, 2025 at 10:03

    I followed your instruction but the problem is that your button is visible to all customers not just vendors. This is why i am asking on how to add a button that functions like the basic dokan button in my screenshot

    Avatar: Justin
    Luca Rossi
    Support staff
    March 25, 2025 at 13:04

    Hi @redfirm,

    Please add the following code under functions.php file locates in your child theme:

    
    add_filter( 'body_class', 'custom_class' );
    function custom_class( $classes ) {
        if ( function_exists('dokan_is_user_seller') && dokan_is_user_seller(get_current_user_id()) ) {
            $classes[] = 'user-is-seller';
        }
        return $classes;
    }
    

    After that add this custom CSS codes under XStore > Theme Options > Theme Custom CSS > Global CSS:

    
    .woocommerce-MyAccount-content .dokan-btn-theme.vendor-dashboard,
    body:not(.user-is-seller) li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--et_nav_custom_0122fd9 {
        display: none !important;
    }
    

    Hope it helps!

    Avatar: redfirm
    redfirm
    Participant
    March 25, 2025 at 13:56

    So i added this, but now it fully hides the button from both customers and vendors. it should only hide it from customers.

    Avatar: Justin
    Luca Rossi
    Support staff
    March 26, 2025 at 06:33

    Dear @redfirm,

    We have re-added the codes as requested. The red button is now hidden, and the Vendor Dashboard button is visible only for vendor accounts. You can review the changes here: (https://www.awesomescreenshot.com/image/53594700?key=3e7d7ce431379587b719592cc0bc0629).

    Please let us know if you need any further adjustments.

    Best regards,
    The 8Theme Team

  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.