Question

I'm trying to create a custom RWD theme with magento 1.9 and for some reason even after following this guide:

https://www.flinttechnology.co.uk/customising-rwd-magento-responsive-theme/

Its using the base theme as the fallback instead of the RWD theme. enter image description here

Was it helpful?

Solution

UPDATE

As @ProxiBlue pointed my mistake, you need to put this in your theme/etc/theme.xml

<?xml version="1.0"?> 
   <theme> 
     <parent>rwd/default</parent>
   </theme>

and have empty in default section, unless you have default theme in your theme package.

Things to understand of fallback of magento theme

You should have RWD in "Default" section of system > configuration > design > theme. This will make sure your theme will fallback to this theme.

Points to remember

  1. When there is no required .phtml file exist in RWD theme, then it will again fall back to base theme.
  2. Not all .phtml files exist in RWD theme, some of them extend from base theme.
  3. Same thing for css or js or image files.

Hope this helps you.

More reading:

  1. http://alanstorm.com/magento_infinite_fallback_theme_xml
  2. http://www.classyllama.com/blog/depth-look-magento-theme-fallback

Why there is no style applied?

When it is falling back to base it tries to find those styles, since they don't exist there, it is unable to style your html. It totally make sense. Right click on browser and do inspect element, you will see those css/js/image files thrown as 404 not found error.

OTHER TIPS

From the comments, I gather your theme fallback xml is not correct.

The file should contain proper xml, with a <parent> directive.

<?xml version="1.0"?> 
   <theme> 
     <parent>rwd/default</parent>
   </theme>

It looks like the resource you are working from has some issues with the display of the formatted xmlon their blog entry

This is most likely why you thought you only need to have the text 'rwd/default' in the theme.xml file, without any directives.

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top