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,

CommentFileSizeAuthor
#2 prebeun-flux.info818 byteskristofferrom
#2 template.txt5.73 KBkristofferrom
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zirafa’s picture

1. 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?

kristofferrom’s picture

FileSize
5.73 KB
818 bytes

1. yes, not helping
2. yep, see attachments (i've changed the php to a txt file. couldn't upload the php here

zirafa’s picture

Ah, 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.

kristofferrom’s picture

That 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.

zirafa’s picture

Hm, 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?

kristofferrom’s picture

here you go

name = prebeun_flux
description = prebeun_flux is a simple, style agnostic base theme used in the Pushtape distribution. It is based on the Framework theme.
core = 7.x
engine = phptemplate
stylesheets[all][] = style.css

regions[top]            = Top
regions[header]         = Header
regions[navigation]     = Navigation
regions[highlighted]    = Highlighted
regions[help]           = Help
regions[content]        = Content
regions[sidebar_first]  = First Sidebar
regions[sidebar_second] = Second Sidebar
regions[footer]         = Footer
regions[bottom]         = Bottom


features[] = logo
features[] = name
features[] = slogan
features[] = node_user_picture
features[] = comment_user_picture
features[] = comment_user_verification
features[] = favicon
features[] = main_menu

;settings[toggle_cover_photo_path] = 0

zirafa’s picture

Hey 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.

kristofferrom’s picture

Okay 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

zirafa’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

Closing old issue due to inactivity