Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Jeff -
I find that I need to override the color scheme for the Site Name (so it is different than --text--).
I could just hardcode it, but felt the better solution was to add an entry to the color scheme.
I have added an entry for sitename in color.inc for the field name and each of the color schemes; however, I'm not getting the info to show up on the corolla color scheme admin.
I've cleared the cache but there must be something else I'm missing.
Would appreciate your guidance and of course, i'd be glad to submit code change back to you for inclusion in corolla theme.
bekasu
Comments
Comment #1
Jeff Burnz CreditAttribution: Jeff Burnz commentedAttach your code or pastebin it.
Comment #2
bekasu CreditAttribution: bekasu commentedHere are the three files I've changed so far: (pastebin)
bekasu/corolla/css/fields.css
bekasu/corolla/color/colors.css
bekasu/corolla/color/color.inc
Comment #3
Jeff Burnz CreditAttribution: Jeff Burnz commentedShow the CODE please.
Comment #4
bekasu CreditAttribution: bekasu commentedI'm not sure why you couldn't see the code in the pastebin files.
I'll attach all three files here:
color.inc
colors.css
fields.css
Comment #5
Jeff Burnz CreditAttribution: Jeff Burnz commentedTry disabling the theme, and re-enabling it.
Are you sure its not there? Not just hiding in the list where you don't expect it to be? I say this because when you add something new to the info fields array it gets added to the end, the keys are not rewritten like you might think and the new items appear at the bottom of the rendered form.
fields.css has nothing to do with this, that's for entity fields, not form elements.
Comment #6
Jeff Burnz CreditAttribution: Jeff Burnz commentedOps, better change that now.
Comment #7
bekasu CreditAttribution: bekasu commentedThe field.css looked to have a couple of typos.
This is what I see on the color scheme settings. Of course there is the color and the #numbers for the color to the right of each entry.
Color scheme
Color set
Base
Background
Text
Link
Hovered Link
Link underline
Slogan
Navigation
Navigation hover
Tab
Block title
Border
Border strong
Fieldset
Fieldset border
Since I didn't see Site Name, I figured it was a cache issue and went to my admin/configuration/performance and cleared all cache.
I'm not sure if this is a coding issue or a cache issue, but I don't see the entry for Site Name. I
had expected it to work much like Block Title as far as naming (hyphens, no hyphens, underscores, etc). It sure fills like I'm missing something obvious.
I do appreciate you taking time to review the code. I'll keep trying things.
Comment #8
bekasu CreditAttribution: bekasu commentedJeff -
I finally stumbled upon the solution.
Here was the lead: http://mearra.com/blogs/sampo-turve/becoming-friends-drupal-color-module... ... the relevant link is at the bottom
Here is the info they were referring to: http://drupal.org/node/1236098
Basically, if you are using a 'custom' setting, the new color info is not written to the file. You have to reset the color to be any one of the presets and save the configuration. At that point, the new entry shows up (at the bottom as you told me).
You can then swap back over to the custom setting and change the new entry.
You've had a couple of requests for allowing the sitename to be independently set and these changes would do that. Although, you might have to add a FAQ re: using a custom setting.
Let me know if you would like me to help in some way.
Comment #9
Jeff Burnz CreditAttribution: Jeff Burnz commentedSure, its no problem to add a few more color settings to this theme, surely site name is a good one to have control over. Mostly I just get short on time, so if a patch can be written for 7.x-3.x then it would be great.
Comment #10
bekasu CreditAttribution: bekasu commentedWill do.