Support » Plugin: WP Store Locator » How to disable styles.min.css?

  • Resolved huytq


    I want to disable default stylesheet. How can I do this?
    I use the custom template and I want to use my own css.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit


    The only way to prevent it from loading is by editing the core file, but any changes you make to the plugin files will be overwritten once you install the next update.

    If you don’t mind making the same change again in the next update, then just remove this line of code ( wp_enqueue_style( ‘wpsl-styles’, WPSL_URL . ‘css/styles’. $min .’.css’, ”, WPSL_VERSION_NUM ); ) from the /wp-content/plugins/wp-store-locator/frontend/class-frontend.php file

    There’s a future proof way you can deregister the css file from enqueuing. Put the following code within your functions.php file and within your function to enqueue styles and scripts.

    wp_dequeue_style( 'wpsl-styles' );

    If you don’t already have a function to enqueue your styles then your code should look like this:

     * Enqueue scripts and styles.
    function my_custom_scripts() {
    wp_dequeue_style( 'wpsl-styles' );
    add_action( 'wp_enqueue_scripts', 'my_custom_scripts' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to disable styles.min.css?’ is closed to new replies.