WordPress.org

Ready to get started?Download WordPress

Forums

Bootstrap collapse
Where is it and why that is bootstrapCustomCss.php? (4 posts)

  1. sergio.pinna.prato
    Member
    Posted 6 months ago #

    Hi,

    the plugin work fine but with Firebug (tab Net) i found that Firefox don't founds

    wp-content/plugins/bootstrap-collapse/bootstrapCustomCss.php?ver=3.8

    and that file was made from function (147 line)

    function bootstrap_scripts(){
    wp_enqueue_script('jquery');
    wp_enqueue_script('bootstrapjs',plugin_dir_url(__FILE__) . 'js/bootstrap-collapse.js',array( 'jquery' ));
    wp_enqueue_script('bootstrapjst',plugin_dir_url(__FILE__) . 'js/bootstrap-transition.js',array( 'jquery' ));
    wp_enqueue_style('bootstrapstyle',plugin_dir_url(__FILE__) . 'css/bootstrap.css');
    //wp_register_style('bootstrapCustomCss',plugin_dir_url(__FILE__). 'bootstrapCustomCss.php');
    wp_enqueue_style( 'bootstrapCustomCss');	
    
    }

    Bye!

    http://wordpress.org/plugins/bootstrap-collapse/

  2. sergio.pinna.prato
    Member
    Posted 6 months ago #

    I fixed it with this code:

    function bootstrap_scripts(){
    wp_enqueue_script('jquery');
    wp_enqueue_script('bootstrapjs',plugin_dir_url(__FILE__) . 'js/bootstrap-collapse.js',array( 'jquery' ));
    wp_enqueue_script('bootstrapjst',plugin_dir_url(__FILE__) . 'js/bootstrap-transition.js',array( 'jquery' ));
    wp_enqueue_style('bootstrapstyle',plugin_dir_url(__FILE__) . 'css/bootstrap.css');
    // wp_register_style('bootstrapCustomCss',plugin_dir_url(__FILE__). 'bootstrapCustomCss.php');
    // wp_enqueue_style( 'bootstrapCustomCss');
    }

    In my opinion you have to dele

    wp_register_style('bootstrapCustomCss',plugin_dir_url(__FILE__). 'bootstrapCustomCss.php');
    wp_enqueue_style( 'bootstrapCustomCss');

    rows code.

  3. Nilambar Sharma
    Member
    Posted 6 months ago #

    I was also facing same problem. I had to comment out those two line of CORE file (which I really hate). Is plugin author doing something to fix this issue?

  4. sureshdsk
    Member
    Plugin Author

    Posted 5 months ago #

    Sorry such an late response.

    i have commented out those line.

    It should work fine now.

    Thanks,
    Suresh Kumar

Reply

You must log in to post.

About this Plugin

About this Topic