Do not load css with wp_enqueue_style in Wordpress

0

I'm trying to create a plugin that links to a "bxSlider" css following a tutorial but at this point I fail:

<?php
/*
Plugin Name: BXSlider para WordPress
Plugin URI: http://easy-webdev.com
Description: Añade BxSlider a WooCommerce
Version: 1.0
Author: xxxx
Author URI:
Text Domain:
Domain Path:
*/

//No permitir que se cargue directamente
defined('ABSPATH') or die ('No Script kiddies please!');

//Obtener un Path
define( 'WCSLIDER_PATH',  plugin_dir_url( __FILE__ ) );

//Cargar Stylesheets
function wcslider_scripts(){
    wp_enqueue_style('bxslider', WCSLIDER_PATH. '/css/jquery.bxslider.min.css');
}
add_action('wp_enqueue_scripts', 'wcslider_scripts');

?>

It is assumed that the "jquery.bxslider.min.css" should be uploaded to Wordpress but when doing a search (updating the page) it does not appear anywhere. Could someone tell me why it does not load?

    
asked by RicardoKra 10.07.2018 в 14:52
source

0 answers