{"id":8814,"date":"2017-08-11T12:03:41","date_gmt":"2017-08-11T16:03:41","guid":{"rendered":"https:\/\/www.boldgrid.com\/support\/?p=8814"},"modified":"2020-10-28T11:06:35","modified_gmt":"2020-10-28T15:06:35","slug":"how-to-change-button-styles-using-the-customizer","status":"publish","type":"post","link":"https:\/\/www.boldgrid.com\/support\/boldgrid-themes\/how-to-change-button-styles-using-the-customizer\/","title":{"rendered":"How to Change Button Styles using the Customizer"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<?xml encoding=\"utf-8\" ?><html><body><p>&nbsp;BoldGrid is completely customizable and allows you to change the <strong>button style<\/strong> used on your WordPress website. This guide will show you how to override some of the various rules that make up the button style on your current &nbsp;Inspiration.<\/p>\n<p>The buttons are usually styled with a few key CSS rules, such as box-shadow and border-radius, and these shape adjustments are applied to the button class &ldquo;button-primary.&rdquo;<\/p>\n<p>The <a href=\"https:\/\/www.w3schools.com\/cssref\/css3_pr_box-shadow.asp\" target=\"_blank\" rel=\"noopener noreferrer\">CSS box-shadow rule<\/a> uses the following syntax:<br>\n<code>box-shadow: none|horizontal-shadow vertical-shadow blur spread color |inset|initial|inherit;<\/code><\/p>\n<p>The <a href=\"https:\/\/www.w3schools.com\/cssref\/css3_pr_border-radius.asp\" target=\"_blank\" rel=\"noopener noreferrer\">CSS border-raidus rule <\/a>uses the following syntax:<br>\n<code>border-radius: 1-4 length|% \/ 1-4 length|%|initial|inherit;<\/code><\/p>\n<div class=\"alert alert-info\" role=\"alert\">Adding <b>!important<\/b> to your CSS rule will give the targeted element style you set precedence over any additional styling that targets the same element.<\/div>\n<p>This guide shows you how to change the shape of the buttons. To change the color of your buttons, you can use the &nbsp;<a href=\"https:\/\/www.boldgrid.com\/support\/boldgrid-themes\/customizer-how-to-use-the-colors-tab\/\">Customizer Palette controls<\/a>. The following is a screenshot of the button style that we will be changing in this tutorial.<br>\n<a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-01-buttonbefore.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-8819\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-01-buttonbefore-1024x509.png\" alt=\"\" width=\"1024\" height=\"509\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-01-buttonbefore-1024x509.png 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-01-buttonbefore-300x149.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-01-buttonbefore-768x382.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-01-buttonbefore-250x124.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-01-buttonbefore-550x274.png 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-01-buttonbefore-800x398.png 800w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-01-buttonbefore-362x180.png 362w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-01-buttonbefore-603x300.png 603w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-01-buttonbefore-1005x500.png 1005w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-01-buttonbefore.png 1214w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<h2 id=\"adding-custom-css-to-change-your-boldgrid-buttons\">Adding custom CSS to change your BoldGrid buttons<\/h2>\n<p>To change the shapes of your buttons, you can apply a few simple CSS rules. The following tutorial will explain the process of adding your <strong>custom styles<\/strong>.<\/p>\n<ol class=\"article-list\">\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-02-customizer.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-8820\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-02-customizer-300x204.png\" alt=\"\" width=\"300\" height=\"204\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-02-customizer-300x204.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-02-customizer-768x523.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-02-customizer-250x170.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-02-customizer-550x374.png 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-02-customizer-264x180.png 264w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-02-customizer-441x300.png 441w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-02-customizer-734x500.png 734w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-02-customizer.png 777w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Open the Customizer\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-03-advanced.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-8822\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-03-advanced-300x219.png\" alt=\"\" width=\"300\" height=\"219\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-03-advanced-300x219.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-03-advanced-768x560.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-03-advanced-250x182.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-03-advanced-550x401.png 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-03-advanced-800x583.png 800w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-03-advanced-247x180.png 247w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-03-advanced-412x300.png 412w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-03-advanced-686x500.png 686w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-03-advanced.png 889w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Go to Advanced\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-04-customjscss.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-8823\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-04-customjscss-300x219.png\" alt=\"\" width=\"300\" height=\"219\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-04-customjscss-300x219.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-04-customjscss-768x560.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-04-customjscss-250x182.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-04-customjscss-550x401.png 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-04-customjscss-800x583.png 800w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-04-customjscss-247x180.png 247w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-04-customjscss-412x300.png 412w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-04-customjscss-686x500.png 686w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-04-customjscss.png 889w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Go to Custom JS &amp; CSS\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-05-editor.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-8824\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-05-editor-300x219.png\" alt=\"\" width=\"300\" height=\"219\"><\/a>Under <strong>Custom Theme CSS<\/strong>, Go to Open Editor\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-06-code.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-8825\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-06-code-300x219.png\" alt=\"\" width=\"300\" height=\"219\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-06-code-300x219.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-06-code-768x560.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-06-code-250x182.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-06-code-550x401.png 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-06-code-800x583.png 800w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-06-code-247x180.png 247w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-06-code-412x300.png 412w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-06-code-686x500.png 686w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-06-code.png 889w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Add your CSS rules. The buttons use the class button-primary for shape, and the color is controlled by the palette. Below is an example of how you can change the style using a rule override for button-primary, and button-primary:hover.\n<pre>.button-primary {\r\n    border-radius: 50px !important;\r\n    box-shadow: 10px 20px #000 !important;\r\n}\r\n.button-primary:hover {\r\n    border-radius: 5px !important;\r\n}<\/pre>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-07-exit.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-8826\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-07-exit-300x219.png\" alt=\"\" width=\"300\" height=\"219\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-07-exit-300x219.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-07-exit-768x560.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-07-exit-250x182.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-07-exit-550x401.png 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-07-exit-800x583.png 800w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-07-exit-247x180.png 247w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-07-exit-412x300.png 412w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-07-exit-686x500.png 686w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-07-exit.png 889w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Exit the CSS editor using the X in the top right corner\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-08-save.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-8827\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-08-save-300x219.png\" alt=\"\" width=\"300\" height=\"219\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-08-save-300x219.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-08-save-768x560.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-08-save-250x182.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-08-save-550x401.png 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-08-save-800x583.png 800w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-08-save-247x180.png 247w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-08-save-412x300.png 412w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-08-save-686x500.png 686w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-08-save.png 889w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Save and Publish your changes\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<\/ol>\n<div style=\"clear: both;\"><\/div>\n<p>This is the final look of the button that we have changed in this guide.<br>\n<a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-09-button-after-css.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-8828\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-09-button-after-css-1024x509.png\" alt=\"\" width=\"1024\" height=\"509\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-09-button-after-css-1024x509.png 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-09-button-after-css-300x149.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-09-button-after-css-768x382.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-09-button-after-css-250x124.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-09-button-after-css-550x274.png 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-09-button-after-css-800x398.png 800w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-09-button-after-css-362x180.png 362w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-09-button-after-css-603x300.png 603w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-09-button-after-css-1005x500.png 1005w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2017\/08\/8814-09-button-after-css.png 1214w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Congratulations! You now know how to change the style your buttons use. For more<a href=\"https:\/\/www.boldgrid.com\/support\/boldgrid-inspirations-plugin-product-guide\/\" target=\"_blank\" rel=\"noopener noreferrer\"> Customization options<\/a>, it is recommended that you also view our guide regarding the <a href=\"https:\/\/www.boldgrid.com\/support\/boldgrid-themes\/advanced-customizer-options\/\" target=\"_blank\" rel=\"noopener noreferrer\">Advanced Options available<\/a>.<\/p>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;BoldGrid is completely customizable and allows you to change the button style used on your WordPress website. This guide will show you how to override some of the various rules that make up the button style on your current &nbsp;Inspiration. The buttons are usually styled with a few key CSS rules, such as box-shadow and [&hellip;]<\/p>\n","protected":false},"author":529,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"bgseo_title":"How to Change Button Styles using the Customizer","bgseo_description":"This guide will show you how to override some of the various CSS rules that make up the button style on your current BoldGrid Inspiration.","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[764],"tags":[],"class_list":["post-8814","post","type-post","status-publish","format-standard","hentry","category-boldgrid-themes"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/8814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/users\/529"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/comments?post=8814"}],"version-history":[{"count":18,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/8814\/revisions"}],"predecessor-version":[{"id":28662,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/8814\/revisions\/28662"}],"wp:attachment":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media?parent=8814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/categories?post=8814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/tags?post=8814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}