I am using the zen-6.x-1.1 theme with a subtheme called tennis and I am having difficulty overriding the views_mini_pager in my template.php.

When I apply the override the arrows for next[>>] and previous [<<] disappear.

However if I set my site's theme to garland for example and then apply the override to it's template file it works.

I found this issue, but it did not help: http://drupal.org/node/503062

Does anyone have any idea?

Comments

luco’s picture

weird behaviour. same here.

tried overriding the pager function but it disappeared entirely.

johnalbin’s picture

Status: Active » Postponed (maintainer needs more info)

I'm not sure exactly what you did (since you don't say), but as long as you overrode Views' theme function properly, there should be no problem. See the instruction on how to do that in the theme guide: http://drupal.org/node/457740

jon nunan’s picture

I had this problem, my template.php file was encoded as ANSI not UTF-8, so the arrows (‹‹) encoded in ANSI tripped up check_plain which lead to it generating links with no link text.

Not sure if I accidentally changed the encoding to ANSI instead of UTF-8 for template.php or if it came that way....

dwb17’s picture

I believe that this issue can be resolved if your template.php file is in UTF-8 encoding.

shruti.sheth’s picture

Component: PHP Code » layout.css

Hi,
I tried to override mini pager for zen 6.x-1.1 and it did work fine.
-> Views version used is views-6.x-3.0-alpha3

You may try the following steps, if it can be useful.
1. Please copy the function from sites/all/modules/contrib/views/theme/theme.inc to your custom template.php file and replace theme in
"function theme_views_mini_pager" to "function (your custom theme name)_views_mini_pager"
2. Now any changes made in the above function will override the mini pager behavior.
3. I followed this steps and it worked properly.
4. Please do not forget to copy the templates from sites/all/themes/contrib/zen/zen to your custom theme.

Thanks.

deggertsen’s picture

Changing to UTF-8 encoding fixed it for me.

johnalbin’s picture

Category: bug » support
Status: Postponed (maintainer needs more info) » Closed (fixed)