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
This topic has 10 replies, 3 voices, and was last updated 11 hours, 48 minutes ago ago by Luca Rossi
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
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
here is a screenshot of the issue.
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
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.
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
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
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!
So i added this, but now it fully hides the button from both customers and vendors. it should only hide it from customers.
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
You must be logged in to reply to this topic.Log in/Sign up