Viewing 7 replies - 1 through 7 (of 7 total)
  • @gabrieljay,

    The approach differs slightly depending on whether you are using the shortcode or the widget.

    With the shortcode you need to wrap it in some HTML ‘div’ tags with a specified class (or id). With the widget simply define the class in the widgets settings.

    Then add the appropriate CSS to your themes style.css file to style the buttons as you’d like. For example if the class was “myform” your CSS would be something like this:

    .myform input[type="submit"]
    {
    width:240px;
    }

    Thread Starter gabrieljay

    (@gabrieljay)

    Thanks for the reply. I am using the widget. I’ve tried the code below entered into my stylesheet and changed the class in my widget to “myform” and still not getting color of text within the button to change.

    .myform input[type=”submit”]
    {
    width:340px;
    color: black;
    }

    As well as:

    .myform input[type=”submit”]
    {
    width:340px;
    font-color: black;
    }

    Do you see anything that I’m doing wrong? Appreciate your help, this plugin is great!

    Thanks!

    @gabrieljay,

    The first example is the correct syntax, try adding !important after the colour ‘black’. It’s hard to say for sure without a link to your site though.

    Thread Starter gabrieljay

    (@gabrieljay)

    matty, sorry should have included the link.

    The link is ourwaitinggame.com

    I have tried !important as well and no luck.

    @gabrieljay,

    you haven’t save the class name change on the widget, it’s still showing as ‘search’ not ‘myform’.

    Also, your current css doesn’t include the color: black; definition.

    Thread Starter gabrieljay

    (@gabrieljay)

    I just double checked but I definitely have changed the class name on the widget within the widget settings.

    I’m not sure how to define the color black within css?

    @gabrieljay,

    Are you using any form of caching plugin? The widget is still showing as class=”search” for me when I load your site.

    In fact I just checked your site again and you are using WP-Super-Cache. You need to refresh the cache to see your changes.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to change color of "Subscribe" text in widget?’ is closed to new replies.