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

vm’s picture

copy 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.

vm’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

RachelNY’s picture

It 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

Suggestions only work when it is placed in the same directory as the base template. In other words, trying to get comment-blog.tpl.php to work, comment.tpl.php also needs to exist inside your theme and in the same directory.

ryan88’s picture

Thanks 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!

xalexas’s picture

Damn it Drupal! It was bugging me also until I added poll-results.tpl.php to theme folder