Support » Plugin: YOP Poll » Multiple Polls on page show questions only.

  • Resolved Gideonengel

    (@gideonengel)


    I have a page with many polls on it. I would like to show only the different questions on the page. The user then cliks on a specific question to participate in the relevant poll. If there is a settings option, I cannot see it. Any suggestions? Regards.

    http://wordpress.org/plugins/yop-poll/

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

    Gideonengel

    (@gideonengel)

    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

    Gideonengel

    (@gideonengel)

    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 ‘Multiple Polls on page show questions only.’ is closed to new replies.