Support » Plugin: YOP Poll » Styling the results bars

  • Resolved _JamesW

    (@_jamesw)


    Hi, I would like to remove the inline stylesheet which is added before a poll, and do the styling in my own stylesheet. Where possible I would like to use css classes to apply consistent styles to all my polls, rather than inline styles which target specific elements.

    Firstly, can I do this? I can make a new template and clear the css section. This will get rid of the rules, but leave an empty style tag. Is there a way to stop the style from being added at all?

    Secondly, how can I style the answer result bar? The elements that make it up don’t have any usable css identifiers, which makes it very difficult to target them from a normal stylesheet. I’d like to add some useful identifiers, but the results bar doesn’t seem to be something I can change from the template.

    Thanks!

    https://wordpress.org/plugins/yop-poll/

Viewing 1 replies (of 1 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    Hi James,

    Each poll has an unique ID so when the poll is displayed every element includes that ID in the html ids or classes so you can’t apply a single stylesheet.

    Please view this topic as well:

    http://wordpress.org/support/topic/move-the-yop-poll-publiccss-in

    Regarding your last question, edit your template and you can use .yop-poll-results-bar-%POLL-ID% to style the results bar.

    Regards,

    YOP Team

Viewing 1 replies (of 1 total)
  • The topic ‘Styling the results bars’ is closed to new replies.