php - Magento: adding css to a theme -


I picked up the task to modify a magenta subject and I already have a heavy headache.

So, I'm just trying to add a CSS to the page. Xml CSS is included only properly, however, the base URL is off my subject is rwd / default.

page.xml  html output

What can be happening?

You set your code to rwd / default . Magento has call back functionality built for theme management, it means that it will see a file in the package / theme directory that you have defined via the administrator (if you have a custom theme set If not, the default package will be for rwd / default for Magento 1.9 and default / default & lt; magento 1.9 ) If the file is not found there, then that file will be base / default Will be examined in Older.

In this case, this call back functionality will work in such a way to some degree.

  1. Browser request browser of CSS file for Magento.

  2. Accepts Magento requests It looks like the current theme is being used.

  3. Magento recognizes the current theme rwd / theme. Bingo

  4. Magento prepares the URL based on the subject. This is the skin / frontend / rwd / default / css / main.css < / P>

  5. Will check Magento for that file. Oops !!! It's not there.

  6. Magento thinks we check this file in base / default . Therefore, this URL creates the skin / frontend / base / default / css / main css and the file appears there.

  7. Eureka ... file exists Therefore Magenta includes this URL for that CSS file

  8. If the file is not there, Magenta will be "desperate" and will tell us "Sorry, the requested file Do not find anywhere. " (literally) then shows the no-detected error.

    So what do you have to do, copy your main cass file from skin /frontend/base/default/css/main.css Go to skin / frontend / rwd / default / css / main.css this will do the trick

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -