I'm getting this error when I copy the template file into my subtheme directory:

Fatal error: Cannot redeclare blueprint_theme() (previously declared in ~/sites/all/themes/blueprint/blueprint/template.php:15) in ~/sites/all/themes/blueprint/<subtheme>/template.php on line 21

Any idea what's causing that? Is this not a file that can be duplicated then edited in the subtheme?

Comments

designerbrent’s picture

Status: Active » Fixed

FM: Have you tried using the BPSTARTER theme to start your sub theme with?

The recommended way to do it is to copy the BPSTARTER theme and then rename all the functions that start with BPSTARTER_ to mythemename_. I will be writing this up into a readme file soon.

It really isn't recommended to edit or duplicate the template.php file from the base theme. Take a look at the template.php file in BPSTARTER.

fm’s picture

I did build my sub-theme with BPSTARTER. I guess with all the updates recently I must have deleted or overwritten my sub-theme/template.php thinking the /blueprint/template.php was the same thing.

fm’s picture

Nevermind. Fixed.

designerbrent’s picture

Great. Glad you got it fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.