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.
I tried copying the theme to sites/all/themes and change naming etc. in .info and template.php. My new theme isn't showing up under Appearance settings. How can that be?
best,
Comment | File | Size | Author |
---|---|---|---|
#2 | prebeun-flux.info | 818 bytes | kristofferrom |
#2 | template.txt | 5.73 KB | kristofferrom |
Comments
Comment #1
zirafa CreditAttribution: zirafa commented1. Did you clear the Drupal cache after adding the new theme files?
2. Can you attach your .info and template.php file so I can see what settings you've got?
Comment #2
kristofferrom1. yes, not helping
2. yep, see attachments (i've changed the php to a txt file. couldn't upload the php here
Comment #3
zirafa CreditAttribution: zirafa commentedAh, looks like you have a dash (-) in the namespace that could be causing this problem. Drupal hooks and naming convention typically only uses underscores (_). Try renaming to prebuen_flux instead of prebeun-flux and see if that solves the problem.
Comment #4
kristofferromThat made sense, sorry about the rookie mistake:). But sadly it didn't help. The name has been corrected in both folder, .info & .php, I've flushed the cache and it's still not showing.
Comment #5
zirafa CreditAttribution: zirafa commentedHm, I couldn't see the .info file you attached in your previous post. Can you upload it as a .txt file or paste it in the body of the comment?
Comment #6
kristofferromhere you go
Comment #7
zirafa CreditAttribution: zirafa commentedHey kristofferrom, thanks.
I tested out your .info file and it worked fine, the theme was recognized by Drupal and I could see it under Appearances. Maybe try just placing only the .info file (the .info file is technically the only file you need to declare a new theme) and see if it shows up.
There are a couple reasons you still might not be seeing the new theme:
1.) Directory/File permissions.
Double check that the permissions are readable by Drupal, usually something like 755.
2.) Caching.
Double check that your browser isn't caching pages (you can use webdeveloper plugin to disable all caches). Also if you have server side caching like Varnish on your webserver (used on high end servers like Pantheon), it is possible the cache could cause some weird behavior, too.
Comment #8
kristofferromOkay thanks, we actually have varnish running on another domain on the same server. Gonna look into that. I'll report back when I find a solution.
thanks again
Comment #9
zirafa CreditAttribution: zirafa commentedClosing old issue due to inactivity