WordPress.org

Support

Support » Plugins and Hacks » YOP Poll » [Resolved] Multiple Polls on page show questions only.

[Resolved] Multiple Polls on page show questions only.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author YOP

    @yourownprogrammer

    Hi Gideonengel,

    Edit the template you used for your poll and in Template Before Vote section add right at the top

    <div id=”yop-poll-trigger-%POLL-ID%” class=”yop-poll-trigger”>%POLL-QUESTION%</div>
    <div id=”yop-poll-target-%POLL-ID%” class=”yop-poll-target”>

    and at the bottom add

    </div>

    Next, in the JavaScript section, after

    jQuery(document).ready(function(e) {

    add

    jQuery(‘#yop-poll-target-%POLL-ID%’).hide();
    jQuery(‘#yop-poll-trigger-%POLL-ID%’).show();
    jQuery(‘#yop-poll-trigger-%POLL-ID%’).click( function() {
    jQuery(‘#yop-poll-trigger-%POLL-ID%’).hide();
    jQuery(‘#yop-poll-target-%POLL-ID%’).show();
    });

    Also, in the CSS section add at the end

    #yop-poll-trigger-%POLL-ID% {
    display:none;
    }

    and save.

    Regards,

    YOP Team

    Plugin Author YOP

    @yourownprogrammer

    Just a quick note: in the CSS section, instead of

    #yop-poll-trigger-%POLL-ID% {
    display:none;
    }

    add

    #yop-poll-trigger-%POLL-ID% {
    display:none;
    cursor: pointer;
    }

    Best wishes,

    YOP Team

    Hi thank you for the reply.

    I have made the changes to the template (White). Unfortunately nothing changed. All questions with the vote and results still show up on the page.
    Regards

    Plugin Author YOP

    @yourownprogrammer

    Hey Gideonengel,

    Please provide a link to your website so we may assist.

    Regards,

    YOP Team

    I am a novice to WordPress and currenly working on a XAMPP localhost.
    Thank you.

    Plugin Author YOP

    @yourownprogrammer

    Hi,

    Please try to make your website live so we can take a look and provide more instructions.

    Best wishes,

    YOP Team

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Multiple Polls on page show questions only.’ is closed to new replies.
Skip to toolbar