The easiest way to see which properties you need to override is to take a look at Bootstrap’s source code, specifically the .button-variant
mixin defined in mixins/buttons.less. You still need to override quite a lot of properties to get rid of all of the .btn-primary
styling (e.g. :focus
, disabled
, usage in dropdowns etc).
A better way might be to:
- Create your own customized version of Bootstrap using Bootstrap’s online customization tool
- Manually create your own color class, e.g.
.btn-whatever
- Use a LESS compiler and use the
.button-variant
mixin to create your own color class, e.g..btn-whatever
Related Posts:
- What is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?
- Changing the width of Bootstrap popover
- img-responsive in Bootstrap does not work
- Column order manipulation using col-lg-push and col-lg-pull in Twitter Bootstrap 3
- Customize Bootstrap checkboxes
- Does bootstrap have builtin padding and margin classes?
- What is sr-only in Bootstrap 3?
- How to set up fixed width for
? - How to set up fixed width for
? - css to make bootstrap navbar transparent
- Bootstrap 4, How do I center-align a button?
- Responsive Bootstrap Jumbotron Background Image
- Changing the width of Bootstrap popover
- How to center vertically and horizontally a div using Bootstrap?
- How to center image in carousel
- Bootstrap throws Uncaught Error: Bootstrap’s JavaScript requires jQuery
- Flushing footer to bottom of the page, twitter bootstrap
- How to change the background-color of jumbrotron?
- bootstrap 4 row height
- vertical-align with Bootstrap 3
- Bootstrap change carousel height
- Twitter Bootstrap – add top space between rows
- How can I make Bootstrap columns all the same height?
- Set bootstrap modal body height by percentage
- Bootstrap 3 Glyphicons CDN
- Bootstrap align navbar items to the right
- Why is my Bootstrap code not working?
- Creating Accordion Table with Bootstrap
- In a bootstrap responsive page how to center a div
- Responsive Canvas in Bootstrap column?
- How to make Bootstrap Panel body with fixed height
- WordPress Admin Bar Overlapping Twitter Bootstrap Navigation [closed]
- Load custom css after bootstrap
- Redoing home page but changes not taking effect
- Layout using Bootstrap not aligning correctly
- Bootstrap in theme
- create bootstrap columns inside editor group block
- Google yolo one tab signup plugin avilable in wordpress? [closed]
- CSS – Initial HTML Margin Issue On WordPress Site
- How to remove the gap on right side of webpage (using Bootstrap with WordPress)?
- All of my custom Bootstrap styles are not working in my child theme!
- How to integrate Bootstrap Grid System in WordPress
- Change class names dynamically added to html elements by wordpress
- Modal dialog under the backdrop
- Bootstrap News: Image Modifciation
- Can’t center post thumbnail with bootstrap [closed]
- Bootstrap 4 Optimization
- Parent style messing up with Bootstrap [closed]
- Bootstrap navbar-fixed-top issues [closed]
- How to make this splash page responsive
- Custom theme – Bootstrap CSS not loading via wp_enqueue_style or otherwise
- Changing spacing between paragraphs and inside of paragraphs
- How to override the properties of a CSS class using another CSS class
- CSS display: inline vs inline-block
- Aligning two divs side-by-side
- CSS transition shorthand with multiple properties?
- Is there an opposite CSS pseudo-class to :hover?
- Using custom fonts using CSS?
- How can I transition height: 0; to height: auto; using CSS?
- Display Images Inline via CSS
- Why CSS3 Animation is not working?
- How to change version of .css in WordPress?
- Disable SSL / HTTPS for wordpress
- How do I remove specific styles from the parent theme css using the child theme css?
- What CSS rules are introduced to core blocks through wp-block-styles?
- Trying to load a responsive CSS media query using Custom Taxonmy
- What is better way to use Bootstrap inside admin panel?
- How to load different css file depending on language
- Can the Theme Customizer be used to generate static/cachable CSS, and how?
- Change logo on specific page id using css
- Layer post title on top of image WordPress featured thumbnail image
- Inconsistent `body_class()` function
- footer disappear on some pages frequently
- How to change H1 color only for pages [closed]
- Grid post page on WordPress with Bootstrap, the_excerpt(); Problem
- How to get an unique identifier for a page/post/category/tag etc.?
- Display Something in the Header After All Styles are Loaded
- WordPress custom CSS file overrided by internal CSS [closed]
- Can you change the color of svg icons to the global color I choose from WordPress
- After moving my site, sub-menus are not showing [closed]
- Theme twentythirteen widget area clearfix
- Why I obtain different visualization when I run the website on my local machine and on remote server?
- Using categories on navigation bar instead of pages
- Superfish and WordPress: Active Color Problem
- Elementor – Edit Global Colors Order
- the_post layout
- How To Remove All Other Plugins CSS
- Hot reload failing to update file changes
- How can I hide this custom slider while Elementor editing window is open?
- Removing a CSS rule from Custom Taxonomy
- style.css not working but customizer additional css does?
- Performance hit of Inline CSS
- How to disable all css from the theme for a specific post type page
- Change WP Child theme CSS for WP Bootstrap Starter Theme
- Divi Theme HTML code is different in View Page Source than in the Firefox Inspector
- Add WordPress Core CSS into editor-style.css
- Change Login CSS – Include instead of echo
- Creating a custom header
- Overide a CSS already loaded
- Editing size of h3 tag in wordpress on a one-off basis
- How to set up fixed width for