• Just thought this might be useful for others.

    Since there’s no way of specifying classes for the buttons, I used jQuery to do it for me. In your template, go to the Javascript section and in the part that has “jQuery(document).ready(function(){” put:

    jQuery( “#yop_poll_vote-button-%POLL-ID%” ).removeClass( “yop_poll_vote_button” ).addClass(“btn btn-default”);

    This removes the default and add Bootstrap styling.

    To add a FA icon:

    jQuery(“#yop_poll_vote-button-%POLL-ID%”).prepend(‘<i class=”fa fa-check-square-o”></i>’);

    https://www.ads-software.com/plugins/yop-poll/

  • The topic ‘Change class of the vote button and add FontAwesome’ is closed to new replies.