Hello. I'm trying to theme the theme_box function, because I think the 'Search results' and 'Your search yielded no results' texts (H2's) are quite ugly with my design. However, when I theme that function, I get the following PHP error:

Fatal error: Cannot redeclare phptemplate_box() (previously declared in /##/themes/engines/phptemplate/phptemplate.engine:289) in /##/themes/##/template.php on line 154

I looked at engines/phptemplate/phptemplate.engine. It seems indeed that this function is already declared here. Is that correct? Is there another way to change the texts? I would like to use my txt2img()-function to make the search result texts are bit more in line with my design.

Comments

pwolanin’s picture

What's your theme's name? If we assume it's "mylayout", then you can override using mylayout_box() which will superceed phptemplate_box().

---
Work: BioRAFT

eyos’s picture

Thanks pwolanin! That's the solution.

heine’s picture

Use the file box.tpl.php. It's one of the default overrides, just like block.tpl.php.
--
The Manual | Troubleshooting FAQ | Tips for posting | Make Backups! | Consider creating a Test site.