• 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

    (@yourownprogrammer)

    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

    (@jryanjp)

    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.

    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

    (@yourownprogrammer)

    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

    (@jryanjp)

    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.

    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.