I would like to make some modifications to the poll-results-block.tpl.php file, specifically I want to remove the links code so that the "Older Polls" link does not display. I wasn't able to do this using CSS (if you know how, please share) and have edited the poll-results-block.tpl.php file.
I would much prefer to be able to put the poll-results-block.tpl.php file in my theme directory and not edit any modules that are part of the core system.
Is there a way to do this?
Thanks,
Rachel
Comments
Comment #1
vm commentedcopy the file to your theme folder. Clear the theme registry and the new tpl.php file should get used.
Questions of this nature are often better placed in the forums as well rather than as an issue against core. More eyes in the forums tends to mean more help.
Comment #2
vm commentedComment #4
RachelNY commentedIt wasn't working until I also copied the default poll-results.tpl.php file in addition to poll-results-block.tpl.php
From: http://drupal.org/node/190815
Comment #5
ryan88 commentedThanks for posting that! I was wondering why my site was not recognizing the poll-results-block.ptl.php file in my theme directory. Adding poll-results.tpl.php to my theme directory fixed it!
Comment #6
xalexas commentedDamn it Drupal! It was bugging me also until I added poll-results.tpl.php to theme folder