Title: Cannot Style with CSS
Last modified: September 3, 2016

---

# Cannot Style with CSS

 *  [jryanjp](https://wordpress.org/support/users/jryanjp/)
 * (@jryanjp)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/cannot-style-with-css/)
 * For some reason, the authors of this plugin made the dumb decision to add a random
   number to the end of the class names that changes every time you reload the page,
   so it’s impossible to style with CSS!
 * This makes the plugin completely useless.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/cannot-style-with-css/#post-8021563)
 * Hello
 * You can customize css for each poll template by going to YOP Poll -> Templates
   and edit the template(s) you want styled. On the next page you can edit the css
   on Css section.
 * Best
    YOP Team
 *  Thread Starter [jryanjp](https://wordpress.org/support/users/jryanjp/)
 * (@jryanjp)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/cannot-style-with-css/#post-8021564)
 * I prefer to keep all of my custom CSS in a single file, using the Jetpack Edit
   CSS function.
 * I was able to do this using wildcard attribute designators, but it is annoying.
   Why do you add the random numbers to the class name? I’ve never seen anyone do
   that.
 *  [discern](https://wordpress.org/support/users/discern/)
 * (@discern)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-style-with-css/#post-8021596)
 * I agree; this sucks. But it’s not _completely_ impossible. You might be able 
   to use one of the parent wrappers (e.g. .yop-poll-container), and a bunch of 
   direct child selectors [and probably !important declarations O_o]. But they used
   ids in their inline stylesheet, so that will make it even more un-fun to style
   correctly.
 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-style-with-css/#post-8021597)
 * We went this route to allow multiple polls with different layouts on the same
   page.
    Looking back, not the best solution.
 * We are working on fixing this.
 * Thank you for your feedback.
 *  Thread Starter [jryanjp](https://wordpress.org/support/users/jryanjp/)
 * (@jryanjp)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cannot-style-with-css/#post-8021598)
 * Actually, Fred, it’s easier than I thought. I just used wildcard selectors:
 *     ```
       div[class*="yop-poll-question"] {
       	font-weight: bold !important;
       	font-size: 125% !important;
       	margin-bottom: 10px !important;
       	margin-top: 0 !important;
       }
       ```
   
 * While this will apply to all of your polls, you can override it by specifying
   the specific class name including the random crap at the end.
 *  [bravenm](https://wordpress.org/support/users/bravenm/)
 * (@bravenm)
 * [10 years ago](https://wordpress.org/support/topic/cannot-style-with-css/#post-8021602)
 * Just thought I would throw my two cents in after the fact here for other users.
   You can customize the classes the template uses and remove the %Poll-id% from
   them. This will pretty much invalidate most of the styles in the CSS field, but
   you could then cut this into your own theme files and update to your new classes
   and ids.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Cannot Style with CSS’ is closed to new replies.

 * ![](https://ps.w.org/yop-poll/assets/icon-256x256.png?rev=3524390)
 * [YOP Poll](https://wordpress.org/plugins/yop-poll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yop-poll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yop-poll/)
 * [Active Topics](https://wordpress.org/support/plugin/yop-poll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yop-poll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yop-poll/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [bravenm](https://wordpress.org/support/users/bravenm/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/cannot-style-with-css/#post-8021602)