Garikai Dzoma
asked 7 years ago

Hi,

I have DW Q and A installed here https://goo.gl/SVgcVU. I just want to know the css class for the submit button so that I can customise it to blend with my site’s theme.

I have tried this:
.dwqa-container .dwqa-submit-question .btn-submit-question {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}

but it does not seem to be working.

Your help will be appreciated.

Garikai

1 Answers
DominicStaff
answered 7 years ago

You can open the question-submit-form.php file and find the line 64.
Replace the following code.
<input type="submit" name="dwqa-question-submit" value="<?php _e( 'Submit', 'dwqa' ) ?>" >
with new code:
<input type="submit" class="btn-submit-question" name="dwqa-question-submit" value="<?php _e( 'Submit', 'dwqa' ) ?>" >
Then use the following code to change the style of submit button.

.submit-dwqa-question .dwqa-container  .btn-submit-question {

 background-color: #4CAF50; /* Green */

 border: none;

 color: white;

 padding: 15px 32px;

 text-align: center;
 text-decoration: none;

 display: inline-block;

 font-size: 16px;

}

Hope this helps!

Garikai Dzoma
replied 7 years ago

Worked great thank you.

Powered by DW Question & Answer Pro