WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP-Polls] How to style? (7 posts)

  1. Dave333
    Member
    Posted 4 years ago #

    Anyone know how to style this plugin?
    As usual the author doesn't feel it necessary to provide any explanaiton of how to style it.

    All I want to do is increase the heading of each poll so that it is larger than the questions. Afterall it is a header, or title, which should never be smaller than the the rest of the content.

    I have hard coded the style in by adding font-size: 1.4em as follows:

    <p style="text-align: center; font-size: 1.4em;">%POLL_QUESTION%</p><div id="polls-%POLL_ID%-ans" class="wp-polls-ans"><ul class="wp-polls-ul">

    Is this the method the author intends?

    I thought it would be much more preferable to edit the CSS but there seems to be style for everything BUT the header.

    Any one have any ideas?

  2. Lester Chan
    Member
    Posted 4 years ago #

    polls-css.css ?

  3. Dave333
    Member
    Posted 4 years ago #

    Gee, one word is all the response you could give?

    Do you think you could offer a sentence or more explaining how to increase the title of the polls when used as a widget on the side bar of a blog?

    If you are suggesting that the style for the title of the polls is in that style sheet you are mistaken.

    It is not.

  4. Lester Chan
    Member
    Posted 4 years ago #

    As usual the author doesn't feel it necessary to provide any explanaiton of how to style it.

    because I am a web developer and not a web designer, and when it comes to CSS, I suck in it. I believe if you are independent enough, you will google for tutorials on CSS.

    I thought it would be much more preferable to edit the CSS but there seems to be style for everything BUT the header.

    You can always create a css class in polls-css.css and use that in the template

    .poll-title { text-align: center; font-size: 1.4em; }

    In the template:

    <p class="poll-title">%POLL_QUESTION%</p><div id="polls-%POLL_ID%-ans" class="wp-polls-ans"><ul class="wp-polls-ul">

  5. Dave333
    Member
    Posted 4 years ago #

    Thanks Gamerz,

    You are right, I shouldn't assume every pluging is perfect and should take the innitiative to alter it myself.

    Your suggestion is obvious and easy and I feel a bit stupid for asking it in hindsight.

  6. Lester Chan
    Member
    Posted 4 years ago #

    No worries, it is really up to individual whether you want to use CSS class for it. There is no right or wrong rule.

  7. wesleyzhao
    Member
    Posted 4 years ago #

    I am using the wp-poll plug-in and I was wondering if you could help me figure out how to create a visible border around the poll?

    I have been messing around with the CSS but see no visual changes.

    Thanks,

    Wesley

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags