WordPress.org

Forums

YOP Poll
[resolved] Multiple Polls on page show questions only. (7 posts)

  1. Gideonengel
    Member
    Posted 2 years ago #

    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/

  2. YOP
    Member
    Plugin Author

    Posted 2 years ago #

    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

  3. YOP
    Member
    Plugin Author

    Posted 2 years ago #

    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

  4. Gideonengel
    Member
    Posted 2 years ago #

    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

  5. YOP
    Member
    Plugin Author

    Posted 2 years ago #

    Hey Gideonengel,

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

    Regards,

    YOP Team

  6. Gideonengel
    Member
    Posted 2 years ago #

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

  7. YOP
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

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

    Best wishes,

    YOP Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.