tmjm3714
Member
Posted 1 year ago #
I've got the plugin installed and activated, but I'm a bit lost as to where to put the code snippet used to make the voting bar show up. I understand it goes in "the loop", but I'm not quite sure where to find the code for the loop and where to stick the code snippet once I get there.
tmjm3714
Member
Posted 1 year ago #
Gotcha! I don't know where my brain was that I couldn't figure that out, too little sleep will do that to ya!
Now I have another question; is there any way I can change the graphic for the bar? I don't mind that bar itself, but I would like it to be a little bigger so that my visitors don't miss it. In the futute I might decide to use a different pictoral representation for the bar, but for right now having the bar bigger would help.
multippt
Member
Posted 1 year ago #
You can adjust the bar size by editing the CSS style sheet. You may need to experiment with the widths and heights to get the desired size.
eslunite
Member
Posted 9 months ago #
Hi sorry guys..
I am using 2.7.1 and I have no idea where to insert that code..
Please could you guide me
thanks
gibby
multippt
Member
Posted 8 months ago #
Example of the loop with the vote button in it:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!-- If the post is in the category we want to exclude, we simply pass to the next post. -->
<?php if (in_category('3')) continue; ?>
<div class="post">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y'); ?></small>
<div class="entry">
<?php the_content(); ?>
<?php DisplayVotes(get_the_ID()); ?>
</div>
<p class="postmetadata">Posted in <?php the_category(', '); ?></p>
</div> <!-- closes the first div box -->
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>