Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When I use a sub-theme of a Zen sub-theme, the THEME_process functions are not run, which results in all $classes variables being blank in my templates.
Comment | File | Size | Author |
---|---|---|---|
#2 | 683904-2.patch | 1.41 KB | JohnAlbin |
#1 | zen-DRUPAL-6--2_process_base_theme.patch | 875 bytes | dboulet |
Comments
Comment #1
dboulet CreditAttribution: dboulet commentedComment #2
JohnAlbinGood catch, Daniel!
But the patch isn't quite right.
Comment #3
JohnAlbinFixed!
Thanks again for noticing this!
Comment #4
dboulet CreditAttribution: dboulet commentedThanks John! It seems to work fine now. Sorry if my fix was no good, I'm new to Zen, and I'm still trying to wrap my head around it.
Comment #5
dboulet CreditAttribution: dboulet commentedI think I spoke too soon, it's still not working right. I think that I did a bad job of describing the problem originally. What I meant is that zen_process() is not being run for my theme, which means that the
classes_array
variable is never converted to theclasses
variable. My patch still fixes the problem for me.Comment #6
dboulet CreditAttribution: dboulet commentedComment #7
sunshinee CreditAttribution: sunshinee commentedI can confirm that this is fixed in the latest dev package. Yay!
Comment #8
broncomania CreditAttribution: broncomania commentedI still got the same problem. in my case are the classes of the sidebars are not set. I think this is critical because the whole template design is crashed. I also use a subtheme. The only classes are set are from the admin menu. Maybe someone has an solution. I also upgrade to the last dev package with the same result.
Comment #9
dboulet CreditAttribution: dboulet commentedThis is definitely not fixed. Changing the title to make the problem more clear.
Comment #10
dboulet CreditAttribution: dboulet commentedFix that works for me:
Add this to your Zen sub-sub-theme's template.php (replace 'themename' with the name of your theme):
The bug shows up when hook_theme() is not implemented.
I'm guessing that this is a requirement of Zen, and so this isn't truly a bug?
Comment #11
MXTI have the same problem, my body classes result like this:
<body class="">
The issues born when I made the upgrade from 6.x-1.1 to 6.x-2.0 (in 6.x-1.1 all worked fine)
(I already have the code suggested by dboulet in my subtheme template.php)
Thank you for your work.
MXT
Comment #12
keesee CreditAttribution: keesee commentedhaving he same issue. Classes are also not being assigned to the node div in subthemes.
will try fixes above and report back.
--
J.
Comment #13
mineaeliza CreditAttribution: mineaeliza commentedthanks dboulet, I had the same easy fix to do.
Comment #14
sbandyopadhyay CreditAttribution: sbandyopadhyay commentedIt's not fixed quite yet. Can we somehow move this into Zen core so that new sub-sub-themes are automatically made with these few extra lines?
Comment #15
sbandyopadhyay CreditAttribution: sbandyopadhyay commentedWoops. I spoke too soon. This IS a part of the standard subtheme already, as per the starterkit. So when you turn a subtheme into a sub-subtheme, you should already have those few lines.
Fixed it is!