WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Twitter Bootstrap CSS
[resolved] How to include Bootstrap into WP minify? (2 posts)

  1. Sebastian
    Member
    Posted 1 year ago #

    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/

  2. Paul G.
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic