I am trying to set this up as a subtheme of pixture_reloaded. I tried to follow the readme to set this up in sites/all/themes/cwetheme making the name changes as appropriate (I thought) to the .info, template.php etc. When I enable the theme and flush all caches I get this error:

Fatal error: Call to undefined function load_subtheme_media_queries() in /home/mysite/public_html/sites/all/themes/cwetheme/template.php on line 24.

If I comment out that line, the theme site will then load properly. I also tried editing the line to read: load_cwetheme_media_queries (just to try something) and that made no change.

Just not sure what to check on. Thanks!

Excerpt from template.php:
// Load the media queries styles
// If you change the names of these files they must match here - these files are
// in the /css/ directory of your subtheme - the names must be identical!
$media_queries_css = array(
'cwetheme.responsive.style.css',
'cwetheme.responsive.gpanels.css'
);
//PROBLEM LINE BELOW:
load_subtheme_media_queries($media_queries_css, 'cwetheme'); // Replace 'footheme' with your themes name

Comments

Jeff Burnz’s picture

Sounds like you need to install Adaptivetheme its the basetheme for Pixture Reloaded and where that function is defined.

druplerjr’s picture

Status: Active » Closed (fixed)

Good tip. I had it loaded but it was only the version 1.2. Updated to 2.1 and all is well. Thanks for your help.

3rdLOF’s picture

I am having this problem while trying to create a subtheme using AT Commerce.

The error is coming in the same line as above, and having both AT Commerce and AT Core enabled and disabled makes no difference.

Replacement of name is fine (I have done this 100's of times) and cannot get it to go:

function etta_preprocess_html(&$vars) {


  // Load the media queries styles
  // If you change the names of these files they must match here - these files are
  // in the /css/ directory of your subtheme - the names must be identical!
  $media_queries_css = array(
    'etta.responsive.style.css',
    'etta.responsive.gpanels.css'
  );
  load_subtheme_media_queries($media_queries_css, 'etta'); // Replace 'footheme' with your themes name

folder is labeled "etta"
Info file is labeled "etta.info"

I DO have the subtheme inside a separate folder withim the all/themes folder, which accordingly to instructions should be fine. But just for testing I moved the subtheme inside AT core, next to AT core.....nothing,

Any idea?

3rdLOF’s picture

Status: Closed (fixed) » Active
Jeff Burnz’s picture

What do you have specified as the "base theme" in etta.info?

3rdLOF’s picture

Thank you for the fast response. Very kind of you.

base theme = at-commerce

3rdLOF’s picture

Status: Active » Closed (fixed)

I see what happened: the at commerce theme has a folder name "at-commerce", but the actual name for the theme's name definition is "at_commerce"

That threw me off. All working now.

Thanks.

mrP’s picture

@kannary100 -- #7 worked for me too. thank you kindly