I use this function to add classes to my menus, but after some time the function stops being called. I flush the caches, and it will work form some time, then stop. I thought it was related to the search box issue, and was hoping updating the theme would solve it, but it didn't. It's as if after some time I just added the function and need to flush to reread the template.php. It's not a problem if I rebuild the theme registry every time.

Thanks!
Sean

Comments

akalata’s picture

Status: Active » Postponed (maintainer needs more info)

Has the API documentation (http://api.drupal.org/api/group/themeable/6) offered any insight? Are you still experiencing this issue?

pvasener’s picture

I'm using a custom theme and I experience the exact same problem. I overrid the theme_menu_item_link() function in the template.php of my theme to add a classed span to the tab link. It works for some time and, after a while, the overriden function doesn't seem to be called as the span is not added. Everything comes back to normal when I flush the cache. I read the API documentation for Drupal 6. The main change is that theme functions have to be define in hook_theme() but I don't see where this can help us.

rrrob’s picture

Any updates on this issue? I am experiencing the exact same problem.

misqu23’s picture

I also experiencing the same problem. And I can't find a solution.

markchitty’s picture

Component: PHP Code » layout.css

I haven't looked into this very far, but one short term solution is to add theme function to the genesis theme 'template.php' file instead.

johnalbin’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing.