How to Add Custom CSS to the Vendor Dashboard

Because the vendor dashboard is built in a way that's disconnected from the theme, typical methods of adding CSS do not work there. Here is how to do it:

Add a PHP code snippet to your site, as follows:

add_action('marketking_dashboard_head', function(){
   ?>
   <style type="text/css">  
      .your_css_here{
         color: blue;
      }
   </style>
   <?php
});

You can place any custom CSS between the <style> </style> tags. This CSS will only apply on the vendor dashboard page.

A PHP snippet can be added to functions.php or by following our snippets guide here.

Powered by BetterDocs