- This topic has 10 replies, 3 voices, and was last updated 1 year, 1 month ago by
Sangita Support Squad.
-
AuthorPosts
-
-
April 12, 2025 at 1:12 AM #240574
l.gan
ParticipantHello, thanks for the great plugin.
Please tell me, I have a lot of custom CSS code for the vendor dashboard (I completely rewrote the dashboard design) in the plugin settings, in the “Seller dashboard” tab – “Custom CSS”.
Because of which I have a large volume of” mvx_seller_dashboard_tab_settings “in the table “wp-options “in my database.
This table has mvx_seller_dashboard_tab_settings has autoloader parameters,
and I see a warning from WordPress that I have a lot of files that are autoloaded when loading site pages (including it is loaded (as I understand it) on the product page and also has a slight impact on the site speed.Please tell me, how can I somehow solve this problem?
Can I somehow directly insert my custom CSS somewhere for dashboard so that this code is loaded only for the dashboard?Thanks.
-
April 12, 2025 at 5:41 PM #240584
Sangita Support Squad
KeymasterHello @l.gan, Thank you for your cooperation. Our development team has reviewed your query.
The mvx_seller_dashboard_tab_settings is not a database table but a setting that follows WordPress’s default autoload flow. However, we understand your concerns regarding performance and excessive autoloaded data.
As part of our upcoming plugin restructuring, we will be transitioning to the latest React frameworks that adhere to WordPress standards. This update will also include optimizations for database handling, including a review of autoloaded settings to improve efficiency.
In the meantime, You can have a look at the below code where you can directly insert your custom CSS –
add_action('wp_enqueue_scripts', 'add_your_frontend_style', 20);
function add_your_frontend_style() {
global $MVX;
if (is_vendor_dashboard()) {
//put your enqueue style here like this
wp_enqueue_style('mvx_admin_css', $MVX->plugin_url . 'assets/admin/css/admin.css', array(), $MVX->version);
}
}
If you need any further assistance please do let us know.
-
April 12, 2025 at 7:58 PM #240587
l.gan
ParticipantSangeeta, thanks as always for your great help and answers
Could you help me, I put my code in the file “vendor-dashboard-custom.css”
then I placed the file in my child theme at ../public_html/wp-content/themes/child-theme/vendor-dashboard-custom.css
then I placed the code from your example, in file function.php
add_action( 'wp_enqueue_scripts', 'add_your_frontend_style', 20 ); function add_your_frontend_style() { global $MVX; if ( is_vendor_dashboard() ) { //put your enqueue style here like this wp_enqueue_style( 'vendor-dashboard-custom-css', $MVX->plugin_url . '/vendor-dashboard-custom.css', array(), $MVX->version ); } }then I check the dashboard – but the styles are not connected. Please tell me what I’m doing wrong?
-
-
April 12, 2025 at 9:16 PM #240589
Sangita Support Squad
KeymasterThank you for getting back to us. I’ll share this with our development team and will keep you updated as soon as I hear back from them.
-
April 14, 2025 at 5:26 PM #240605
Anushka Sinha
ModeratorHi @I.gan!
Thanks for getting back to us.
As you mentioned, the file was placed in the child theme; however, it appears that the code you are referring is fetching the style of the plugin,whereas you have to fetch the style from the theme. This mismatch is likely the reason you’re encountering the error.
I recommend updating the code to reference the correct path—specifically, the child theme directory—and then testing again to see if the issue is resolved.
Please let us know if you need any further assistance. We’re happy to help!-
April 14, 2025 at 7:07 PM #240612
l.gan
ParticipantHello
Thank you for your answer, I understand what you mean, but the point is that I did not rewrite the vendor_dashboard.css file itself (which is located in ../plugins/dc-woocommerce-multi-vendor/assets/frontend/css)
Do I need to add my custom code to the dashboard, which I previously had inserted in the Plugin Settings – Seller Dashboard – custom CSS.
Can I insert this code not through the “custom CSS” plugin settings, but as a separate file vendor-dashboard-custom.css?
-
-
April 14, 2025 at 9:09 PM #240623
Sangita Support Squad
Keymaster@l.gan, let me check with my development team and I’ll get back to you shortly.
Thanks for your understanding.
-
April 15, 2025 at 12:51 AM #240626
l.gan
ParticipantOkay, this helped me, but I’m not sure if this is the right way.
function admin_dashboard_style(){ global $MVX; wp_register_style( 'vendor_dashboard_custom', get_stylesheet_directory_uri() . '/css/vendor-dashboard-custom.css'); wp_enqueue_style( 'vendor_dashboard_custom'); } add_action( 'wp_enqueue_scripts', 'admin_dashboard_style', 1000000 ); function add_mvx_styles_to_dashboard( $arrStyles ) { global $MVX; array_push( $arrStyles, 'vendor_dashboard_custom' ); return $arrStyles; } add_filter( 'mvx_styles_to_keep', 'add_mvx_styles_to_dashboard', 1000000 );
-
-
April 15, 2025 at 5:14 PM #240638
Anushka Sinha
ModeratorHi there!
Thanks for reaching out!
The filter ‘mvx_styles_to_keep’ is meant for dequeuing style CSS you have added. It won’t work if used in your custom stylesheet, however it should work fine if used for our css.
If you need any further assistance, feel free to reach out. We will be glad to help you! -
April 18, 2025 at 8:18 PM #240731
l.gan
ParticipantThank you
You are talking about
As part of our upcoming plugin restructuring, we will be transitioning to the latest React frameworks that adhere to WordPress standards. This update will also include optimizations for database handling, including a review of autoloaded settings to improve efficiency.Please tell me if there is an approximate time frame for when this wonderful update will be released?
-
April 20, 2025 at 11:08 AM #240750
Sangita Support Squad
KeymasterHello @l.gan, Thank you for your interest!
At this stage, our team is still in the planning phase for the upcoming plugin restructuring. As the work has not yet commenced, we’re unable to provide a precise timeframe for the release. However, we’ll be sure to keep our community updated as development progresses. We truly appreciate your patience and enthusiasm!
-
-
AuthorPosts
- The topic ‘large ” mvx_seller_dashboard_tab_settings “in “wp-options “’ is closed to new replies.



