{"id":3306,"date":"2018-01-09T08:22:45","date_gmt":"2018-01-09T13:22:45","guid":{"rendered":"https:\/\/www.pair.com\/support\/kb\/?p=3306"},"modified":"2020-02-26T09:19:25","modified_gmt":"2020-02-26T14:19:25","slug":"how-to-change-bootstrap-button-styling","status":"publish","type":"ht_kb","link":"https:\/\/www.pair.com\/support\/kb\/how-to-change-bootstrap-button-styling\/","title":{"rendered":"How to Change Bootstrap Button Styling"},"content":{"rendered":"    \t\t<div class=\"hts-messages hts-messages--info   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tThese instructions are for Bootstrap version\u00a04.2.1    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p><span style=\"font-weight: 400;\">Because of its framework, Bootstrap\u2019s buttons are already styled when they\u2019re added to the site. However, if you want to create your own custom button style, you can do that in Bootstrap\u2019s CSS file. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you haven\u2019t yet installed Bootstrap on your server, see our <\/span><a href=\"https:\/\/www.pair.com\/support\/kb\/setting-up-bootstrap-on-your-server\/\"><span style=\"font-weight: 400;\">Setting Up Bootstrap on Your Server<\/span><\/a><span style=\"font-weight: 400;\"> article.<\/span><\/p>\n<h3>Step 1: Find the Button Class<\/h3>\n<p><span style=\"font-weight: 400;\">The first step to customizing your buttons is to know the button class. Go to your HTML document if you already have buttons on your site. You will be able to find the button class there. Here\u2019s an example of what it might look like: <\/span><\/p>\n<pre class=\"prettyprint\"><code class=\"language-html\"><span style=\"font-weight: 400;\">&lt;button <\/span><span style=\"font-weight: 400;\">class=\"<span style=\"color: #ff0000;\">btn btn-default<\/span>\"<\/span><span style=\"font-weight: 400;\"> type=\"submit\"&gt;Button&lt;\/button&gt;<\/span><\/code><\/pre>\n<p><span style=\"font-weight: 400;\">If you want to add new buttons to your Bootstrap site, you can use one of the default button classes. You can find the default buttons in the<\/span><a href=\"https:\/\/getbootstrap.com\/docs\/3.3\/css\/#buttons\"><span style=\"font-weight: 400;\"> Bootstrap documentation\u2019s Button section<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<h3>Step 2: Find the Class in CSS<\/h3>\n    \t\t<div class=\"hts-messages hts-messages--info   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<b>\u00a0<\/b><span style=\"font-weight: 400;\">All buttons with this class will be affected by the styling you choose.<\/span>    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p><span style=\"font-weight: 400;\">Once you have identified the button class you want to customize, go to your Bootstrap\u2019s CSS file and, if it\u2019s not already there, add the class. Here\u2019s an example of what this might look like: <\/span><\/p>\n<pre class=\"prettyprint\"><code class=\"language-css\"><span style=\"font-weight: 400;\">.btn-success {<\/span>\r\n<span style=\"font-weight: 400;\">\/*formatting goes here*\/<\/span>\r\n<span style=\"font-weight: 400;\">}<\/span><\/code><\/pre>\n<h3>Step 3: Format the Button<\/h3>\n<p><span style=\"font-weight: 400;\">You can now customize the button by using CSS. You may also want to edit the active, focus, and hover forms of the button as well since they also have a default styling. Formatting the active, focus, and hover forms of the button will look something like this: <\/span><\/p>\n<pre class=\"prettyprint\"><span style=\"font-weight: 400;\">.btn-success:active{<\/span>\r\n<span style=\"font-weight: 400;\">\/*formatting goes here*\/<\/span>\r\n<span style=\"font-weight: 400;\">}<\/span><\/pre>\n<pre class=\"prettyprint\"><span style=\"font-weight: 400;\">btn-success:hover{<\/span>\r\n<span style=\"font-weight: 400;\">\/*formatting goes here*\/<\/span>\r\n<span style=\"font-weight: 400;\">}<\/span><\/pre>\n<pre class=\"prettyprint\"><span style=\"font-weight: 400;\">btn-success:focus{<\/span>\r\n<span style=\"font-weight: 400;\">\/*formatting goes here*\/<\/span>\r\n<span style=\"font-weight: 400;\">}<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">Once you have applied your formatting, upload your changes to the server and save. <\/span><\/p>\n    \t\t<div class=\"hts-messages hts-messages--info    \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tBootstrap is an open-source CSS framework permissive under an MIT license. Bootstrap is not a product of Pair Networks, Inc., and Pair Networks provides no warranty for Bootstrap. Please note that there are many levels of CSS frameworks available. Please consult with your IT professional for advice and guidance on an appropriate CSS framework. This specific product may or may not meet your needs. Pair Networks, Inc. is providing support for this tutorial for your convenience and is not responsible for Bootstrap's performance. Please read carefully the terms and scope of services for any online service or product you are considering purchasing or using.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n","protected":false},"excerpt":{"rendered":"<p>Because of its framework, Bootstrap\u2019s buttons are already styled when they\u2019re added to the site. However, if you want to create your own custom button style, you can do that in Bootstrap\u2019s CSS file. If you haven\u2019t yet installed Bootstrap on your server, see our Setting Up Bootstrap on Your&#8230;<\/p>\n","protected":false},"author":11,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[33],"ht-kb-tag":[187],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Change Bootstrap Button Styling - Knowledge Base - Pair Networks<\/title>\n<meta name=\"description\" content=\"Learn how to use Boostrap&#039;s button styling. Because of its framework, Bootstrap\u2019s buttons are already styled when they\u2019re added to the site, but you can edit the CSS, too, for custom designs.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pair.com\/support\/kb\/how-to-change-bootstrap-button-styling\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Change Bootstrap Button Styling - Knowledge Base - Pair Networks\" \/>\n<meta property=\"og:description\" content=\"Learn how to use Boostrap&#039;s button styling. Because of its framework, Bootstrap\u2019s buttons are already styled when they\u2019re added to the site, but you can edit the CSS, too, for custom designs.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pair.com\/support\/kb\/how-to-change-bootstrap-button-styling\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - Pair Networks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pairnetworks\/\" \/>\n<meta property=\"article:modified_time\" content=\"2020-02-26T14:19:25+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@pairNetworks\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/how-to-change-bootstrap-button-styling\/\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/how-to-change-bootstrap-button-styling\/\",\"name\":\"How to Change Bootstrap Button Styling - Knowledge Base - Pair Networks\",\"isPartOf\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#website\"},\"datePublished\":\"2018-01-09T13:22:45+00:00\",\"dateModified\":\"2020-02-26T14:19:25+00:00\",\"description\":\"Learn how to use Boostrap's button styling. Because of its framework, Bootstrap\u2019s buttons are already styled when they\u2019re added to the site, but you can edit the CSS, too, for custom designs.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/how-to-change-bootstrap-button-styling\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pair.com\/support\/kb\/how-to-change-bootstrap-button-styling\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/how-to-change-bootstrap-button-styling\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pair.com\/support\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Change Bootstrap Button Styling\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#website\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/\",\"name\":\"Knowledge Base - Pair Networks\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pair.com\/support\/kb\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#organization\",\"name\":\"Pair Networks\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg\",\"contentUrl\":\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg\",\"width\":360,\"height\":360,\"caption\":\"Pair Networks\"},\"image\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pairnetworks\/\",\"https:\/\/twitter.com\/pairNetworks\",\"https:\/\/www.instagram.com\/pairnetworks\/\",\"https:\/\/www.linkedin.com\/company\/2269676\/\",\"https:\/\/www.pinterest.com\/pairnetworksinc\/pins\/\",\"https:\/\/www.youtube.com\/user\/pairnetworks\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Change Bootstrap Button Styling - Knowledge Base - Pair Networks","description":"Learn how to use Boostrap's button styling. Because of its framework, Bootstrap\u2019s buttons are already styled when they\u2019re added to the site, but you can edit the CSS, too, for custom designs.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pair.com\/support\/kb\/how-to-change-bootstrap-button-styling\/","og_locale":"en_US","og_type":"article","og_title":"How to Change Bootstrap Button Styling - Knowledge Base - Pair Networks","og_description":"Learn how to use Boostrap's button styling. Because of its framework, Bootstrap\u2019s buttons are already styled when they\u2019re added to the site, but you can edit the CSS, too, for custom designs.","og_url":"https:\/\/www.pair.com\/support\/kb\/how-to-change-bootstrap-button-styling\/","og_site_name":"Knowledge Base - Pair Networks","article_publisher":"https:\/\/www.facebook.com\/pairnetworks\/","article_modified_time":"2020-02-26T14:19:25+00:00","twitter_card":"summary_large_image","twitter_site":"@pairNetworks","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pair.com\/support\/kb\/how-to-change-bootstrap-button-styling\/","url":"https:\/\/www.pair.com\/support\/kb\/how-to-change-bootstrap-button-styling\/","name":"How to Change Bootstrap Button Styling - Knowledge Base - Pair Networks","isPartOf":{"@id":"https:\/\/www.pair.com\/support\/kb\/#website"},"datePublished":"2018-01-09T13:22:45+00:00","dateModified":"2020-02-26T14:19:25+00:00","description":"Learn how to use Boostrap's button styling. Because of its framework, Bootstrap\u2019s buttons are already styled when they\u2019re added to the site, but you can edit the CSS, too, for custom designs.","breadcrumb":{"@id":"https:\/\/www.pair.com\/support\/kb\/how-to-change-bootstrap-button-styling\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pair.com\/support\/kb\/how-to-change-bootstrap-button-styling\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pair.com\/support\/kb\/how-to-change-bootstrap-button-styling\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pair.com\/support\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Change Bootstrap Button Styling"}]},{"@type":"WebSite","@id":"https:\/\/www.pair.com\/support\/kb\/#website","url":"https:\/\/www.pair.com\/support\/kb\/","name":"Knowledge Base - Pair Networks","description":"","publisher":{"@id":"https:\/\/www.pair.com\/support\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pair.com\/support\/kb\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.pair.com\/support\/kb\/#organization","name":"Pair Networks","url":"https:\/\/www.pair.com\/support\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg","contentUrl":"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg","width":360,"height":360,"caption":"Pair Networks"},"image":{"@id":"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pairnetworks\/","https:\/\/twitter.com\/pairNetworks","https:\/\/www.instagram.com\/pairnetworks\/","https:\/\/www.linkedin.com\/company\/2269676\/","https:\/\/www.pinterest.com\/pairnetworksinc\/pins\/","https:\/\/www.youtube.com\/user\/pairnetworks"]}]}},"_links":{"self":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/3306"}],"collection":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/comments?post=3306"}],"version-history":[{"count":12,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/3306\/revisions"}],"predecessor-version":[{"id":7425,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/3306\/revisions\/7425"}],"wp:attachment":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/media?parent=3306"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=3306"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=3306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}