Support » Theme: Goran » Polls Button bacground color change

  • Hi there,
    could you advice me, please, how to change polls (plugin wp polls) wrom white to background-color: #f44336? Itried to change it in polls template, but is is not correctly done, I think…I would like to use red bacground colour of “Hlasuj” (= Vote) button.
    Page is http://www.koutskapivaren.sk; my polls widget is called “Anketa”, and is at main page in right column
    Many thanks
    Vladimir

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Vladimir!

    Generally, it’s best to post to the forum for the plugin you’re working on whenever possible. For WP-Polls, that would be here:

    https://wordpress.org/support/plugin/wp-polls

    I did take a peek at your site. Rather than trying to change the templates, I’d recommend using a bit of CSS to change the background color of the entire widget.

    Using my browser inspector, I can see the widget on your site has an ID of #polls-widget-2

    So you should be able to use the following CSS:

    #polls-widget-2 {
        background: #f44336;
        padding: 48px 10px 24px;
    }

    The background color changes the color as you requested. The padding keeps the same top and bottom padding the widget always had, but also adds a little bit to the sides so the text doesn’t run right up against the edge of the red block 🙂

    A good way to add CSS on your site is to use the Additional CSS panel in the Customizer (assuming you’re running at least WordPress 4.7) or with something like the Jetpack Plugin using the Custom CSS Module.

    Let me know how that looks!

    Hi Chad,
    many thanks.
    I tried to use a bit of CSS to change the background color. It is working, but the problem is, that a bit of CSS changes the colour of entire widget… so I want to change the bacground colour only for the VOTE button (in Slovak language “Hlasuj”), which has white bacground colour…
    If it is not a problem for you, could you please help me once more to change the bacground colour only for the VOTE button, please?
    Meny thanks in advance
    Vladimir

    Hi Chad,
    Thanks for your willingness, finally, I decided to change widget…
    Best reg.
    Vladimir

    Any time! The new widget looks great!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.