WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Twitter Bootstrap CSS
[resolved] Can I remove/disable certain bootstrap styles? (4 posts)

  1. dave
    Member
    Posted 1 year ago #

    After activating the plugin, I found that there are certain styles that I just don't want that are overriding my theme styles and messing stuff up. Is there an easy way to disable them? The LESS compiler only gives certain options, and I'd like to keep my customizations within the plugin options rather than attacking the plugin files so they aren't overridden on an upgrade.

    The style in question is an input[##] { width: "..."; } declaration that's forcing a certain width on all of my inputs that I don't want/need.

    Thanks!

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

  2. Paul G.
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Dave,

    The best way to do this is to modify the CSS for your theme to overwrite the CSS provide in Bootstrap. There's no way to remove them unfortunately.

    I've been having a look at the LESS to see if there's a way to supply more options. I might not get it done in time for the 2.1.2 release, but I will think about adding further LESS options.

    For now, your best bet is to add some CSS - does your theme offer you a place to define custom CSS?

    Cheers,
    Paul.

  3. dave
    Member
    Posted 1 year ago #

    Cool thanks. I created a custom theme, but for some reason I thought I was seeing that the Bootstrap was overriding the theme styles. I just changed some of my theme styles to specifically override the bootstrap, and it does. Sorry for the mixup. Thanks for bringing it to light!

  4. Paul G.
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Dave,

    Glad to hear you were able to solve this with some CSS - it seems to be the best way to achieve what you need.

    No problem for the mixup, there are so many things to think about when putting a WordPress site together, it's easy to get into a muddle.

    Can I ask you, if you have a spare moment, to give the plugin a rating - it helps add some support/legitimacy to the plugin when it's got a better rating.

    Many thanks!
    Paul.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic