Skip to content

Instantly share code, notes, and snippets.

@tegansnyder
Created July 14, 2014 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tegansnyder/7df70109fe7b7bc432a7 to your computer and use it in GitHub Desktop.
Save tegansnyder/7df70109fe7b7bc432a7 to your computer and use it in GitHub Desktop.
Example of a general.xml file kept in rwd/global-base/layout/mytheme/general.xml
<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
<default>
<reference name="head">
<action method="addItem"><type>skin_js</type><name>mytheme/js/app.js</name><params /></action>
<action method="removeItem"><type>skin_js</type><name>js/lib/selectivizr.js</name></action>
</reference>
</default>
</layout>
@tegansnyder
Copy link
Author

If you wanted to add a new template to the head of the page:

<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
    <default>
        <reference name="head">
            <block type="core/text_list" name="head_before">
                <block type="core/template" name="mytheme_css_header" template="page/html/head/myhead.phtml" />
            </block>
        </reference>
    </default>
</layout>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment