I am trying to add two buttons in a footer in Wordpress, using the Qode Bridge theme, on the site http://mygapyear.wpengine.com/. The code for the buttons (placed in the footer widget area) is as follows:
<div>
<div style="margin-top:10px">
[button class="newsletterButton" icon="fa-arrow-right" target="_self" text="Newsletter signup" color="#ffffff" hover_color="#ffffff"]
</div>
<div style="margin-top:10px">
[button class="newsletterButton" color="#ffffff" hover_color="#ffffff" icon="fa-arrow-right" target="_self" text="Request a Brochure"]
</div>
I have a couple of problems:
The buttons don't seem to be inheriting the class - inspecting them in the browser shows that they're both still in the qbutton class. I've placed CSS code for the class in both the Appearance > Editor section of WP, and the Qode Options > General > Custom CSS section:
.qbutton .newsletterButton{ }The "color" and "hover_color" attributes in the button shortcode don't seem to have any effect - is there a way to implement this in CSS to ensure that the colours are changed?
Is there a way to set button width as a percentage of the width of the div containing it?
.qbutton.newsletterButtonif they get output into the same class attribute (I only seeclass=qbutton). To answer question 3, set theaelement todisplay: blockso you can apply widths.