• Resolved Sebastian

    (@enedhilwen)


    My site is running WP Minify. I’d hope that the CSS files for Bootstrap get included in the global CSS file, but right now it’s a separate part of the header:

    <!-- This site uses WordPress Twitter Bootstrap CSS plugin v2.2.1.2 from http://worpit.com/ -->
    <link rel="stylesheet" type="text/css" href="/wp-content/plugins/wordpress-bootstrap-css/resources/bootstrap-2.2.1/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="/wp-content/plugins/wordpress-bootstrap-css/resources/bootstrap-2.2.1/css/bootstrap-responsive.min.css" />
    <!-- / WordPress Twitter Bootstrap CSS Plugin from Worpit. --><link
    rel='stylesheet' href='/wp-content/plugins/wp-minify/cache/3676de9e478df2f17bc82c25bff476ca.css?m=1354262497' type='text/css' media='screen' /> <script type='text/javascript' src='/wp-content/plugins/wp-minify/cache/3fc4c1fed062939fa4dbdd7ba540176d.js?m=1354262497'></script> <meta

    How to include?

    http://wordpress.org/extend/plugins/wordpress-bootstrap-css/

Viewing 1 replies (of 1 total)
  • Plugin Author Paul

    (@paultgoodchild)

    Hey,

    Unfortunately, by it’s nature, it cannot be included in the minify.

    The reason for this is that the plugin was built in such as way as to get around themes that were built poorly and didn’t allow you to use WordPress to insert and link to the first CSS. There was a couple we came across, Thesis being one such.

    Generally speaking, for everything else, we use the standard WordPress enqueue methods for other styles and scripts etc., but for the main Bootstrap CSS, we’ve had to hard code it so it come immediately after the opening HEAD element.

    I guess we could allow for the option to toggle this… I’ll think how that would work for a future release.

    Thanks for the suggestion.
    Cheers,
    Paul.

Viewing 1 replies (of 1 total)
  • The topic ‘How to include Bootstrap into WP minify?’ is closed to new replies.