Plugin Author
YOP
(@yourownprogrammer)
Hello
By default, there is no link for Poll Archive in YOP Poll Widget.
If you want to have the link appear, you will need to edit the templates to add the link.
Please let us know if you need more help with this.
Best Regards,
YOP Team
But I should expect to see Poll Archive on the Polls page, then?
I guess my problem is that of understanding at the moment. I don’t see the archive anywhere, unless I create a page for it and link directly to that.
If there are settings for View Poll Archive Link and View Poll Archive Link Label, I figure I should be expecting to see the link show up somewhere! Shouldn’t I?
I’m okay, I think, with making a change to the template php if I need to, though. I presume that would be yop_poll.php, right? Any tips or suggestions?
Thanks!
Plugin Author
YOP
(@yourownprogrammer)
If you want to show a link to the polls archive, you can edit the template(s) you are using for your polls to add the following code
%POLL-VIEW-ARCHIVE-LINK%
For example:
<div id="yop-poll-results-%POLL-ID%">%POLL-VIEW-RESULT-LINK%</div>
<div>%POLL-VIEW-ARCHIVE-LINK%</div>
Also, you will need to have View Poll Archive Link set to Yes.
Please let us know if you have further questions.
Best Regards,
YOP Team
Absolutely perfect. Just what I was looking for, thanks!
For anyone else interested, I made the following changes:
To “Template Before Vote”
<div id="yop-poll-results-%POLL-ID%">%POLL-VIEW-RESULT-LINK%</br>
%POLL-VIEW-ARCHIVE-LINK%</div>
To “Template After Vote”
<div id="yop-poll-back-%POLL-ID%">%POLL-BACK-TO-VOTE-LINK%
<span style="float:right;">%POLL-VIEW-ARCHIVE-LINK%</span></div>
And in the CSS
#yop-poll-vote-%POLL-ID% div#yop-poll-results-%POLL-ID% {
float: right;
margin-bottom: 0px; /*** was 20px ***/
margin-top: -20px;
width: auto;
}
Thanks, YOP!
Is the polls archive a virtual page or do we have to create it and insert some shortcode into it?
At the moment the link I use in the “Poll Archive Url:” field is non-existing and leads to nowhere when followed.
Plugin Author
YOP
(@yourownprogrammer)
Hi kalligator,
You can create a new page and add [yop_poll_archive] to it.
Then copy the link to the page you’ve just created in
“Poll Archive Url:” field
Regards,
YOP Team