If you've enabled the Q&A feature of the Customer Review plugin, then you must have seen the big green "Ask a question" button that comes in one color and has no option to customize it on the plugin settings page.


If you've ever wondered how to change the color or even size of that button, well, wonder no more. There's a way to customize the button size and color, but you'll need to add a piece of code to the "Additional CSS" section of your WordPress theme, i.e. Appearance > Customize > Additional CSS.




Customizing the 'Ask a question' button


Paste the following code to the Additional CSS box, then change the value of background-color to whatever color you prefer, i.e. background-color: blue, background-color: red, or even background-color: #18B394. Changing the value of color will change the color of the button's text, and you can customize that also. Here's the CSS code you need to change the color of the 'Ask a question' button:


#cr_qna.cr-qna-block div.cr-qna-search-block button.cr-qna-ask-button {
   background-color: green !important;
   color: yellow !important;
}


What else can you change? A whole lot. For example, you could change the height of the button or even the font size of the button's text. Here's a non-exhaustive list of properties that could be used to customize the button:


CSS PropertyDescriptionExample
heightUsed to change the height of the buttonheight: 42px;
font-sizeUsed to change the font size of the button's textfont-size: 16px;
font-weightUsed to change the weight of the button's textfont-weight: 400;
background-colorUsed to change the color of the button's textbackground: #18B394;
borderUsed to add a border to the buttonborder: 0px solid;
border-radiusUsed to add a radius (curve) to the buttonborder-radius: 16px;
border-colorUsed to change the color of the button's borderborder-color: grey;
colorUsed to change the color of the button's textcolor: #FFFFFF;


Here's an example code that could be edited to meet your requirement:


#cr_qna.cr-qna-block div.cr-qna-search-block button.cr-qna-ask-button {
   font-size: 14px !important;
   font-weight: 150 !important;
   background-color: black !important;
   border: 0px solid !important;
   border-color: grey !important;
   border-radius: 10px !important;
   height: 42px !important;
   color: #FFFFFF !important;
}


Final words

Always remember that you're just one click away from getting the stellar support that you deserve.