Change Poll colors  

  RSS

yiany
(@yiany)
Member Customer
Joined: 6 months ago
Posts: 7
15/01/2019 11:30 am  

Hello, how can I change and control the colors of the poll? Is it possible to do it through CSS? Thanks!


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 1 year ago
Posts: 1724
15/01/2019 12:51 pm  

Hi @yiany,

I'm sorry, but there is no way to control the colors of the poll, it generates random colors. You can't use CSS code for this purpose as well. 


ReplyQuote
yiany
(@yiany)
Member Customer
Joined: 6 months ago
Posts: 7
15/01/2019 1:27 pm  

Wait, what? How is this possible??? Why would you make this kind of design choice? 


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 1 year ago
Posts: 1724
17/01/2019 4:03 pm  

Hi @yiany,

Please note we cannot control how many poll options will be created. E.g. you can create 25 poll option, the second user can create 28 etc, so this is a little difficult to find an optimal way to control it, and we decided to generate colors randomly. However, we'll take it into consideration to change this logic. 


ReplyQuote
yiany
(@yiany)
Member Customer
Joined: 6 months ago
Posts: 7
17/01/2019 4:13 pm  

There appears to be a misunderstanding. I do not wish to specific an individual color to each option. I have no desire to create a rainbow on my page through poll options. I simply wish to designate a single color to the poll options that matches the theme of my page. For example, my page is composed of primary dark grey and orange, so when my forum members voted, I wish them to see the poll results in the same orange that is present throughout the rest of the website.

I think most webpage out there do not display a random color to their page each time you visit them, so why would the poll options designed to behave this way is certainly a mystery to me.


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 1 year ago
Posts: 1724
18/01/2019 5:25 pm  

Hi yiany,

Ok, I've already reported this to our team. They are trying to find some solution for you. I'll update this topic asap.


ReplyQuote
yiany
(@yiany)
Member Customer
Joined: 6 months ago
Posts: 7
28/01/2019 2:38 pm  

After some more poking around I have figured out a solution.

under plugins>wpforo-pol>includes, there is a file called class-template.php

in this file there is a line <?php echo wpforopoll_make_random_color() ?>

Change it to any color value you want for the polls.


ReplyQuote
Share: