0
 <block type="page/html_head" name="head" as="head">



<action method="addItem"><type>skin_js</type><name>js/jquery.flexslider.js</name></action>
                <action method="addItem"><type>skin_js</type><name>js/jquery.flexslider-min.js</name></action>


 <action method="addCss"><stylesheet>css/flexslider.css</stylesheet></action>

</block>

I include this code at page.xml.. but ccs & js is not included to follow this code . please help me..

2
  • <block type="page/html_head" name="head" as="head"> <action method="addItem"><type>skin_js</type><name>js/jquery.flexslider.js</name></action> <action method="addItem"><type>skin_js</type><name>js/jquery.flexslider-min.js</name></action> <action method="addCss"><stylesheet>css/flexslider.css</stylesheet></action> </block> i use it.. but not working Commented Apr 11, 2014 at 8:00
  • Welcome to Magento Stack Exchange! Please have a look in the great debugging tutorial and report back. Commented Apr 11, 2014 at 8:02

1 Answer 1

2

In your app/design/frontend/[package]/[theme]/layout folder, create a local.xml and add the following:

<layout>
<default>
    <reference name="head">
        <action method="addItem"><type>skin_js</type><name>js/jquery.flexslider-min.js</name></action>
        <action method="addCss"><stylesheet>css/flexslider.css</stylesheet></action>
    </reference>
</default>
</layout>

If the file already exists, add the contents of <layout> (and if <default> already exists you can add the content of that) to the file.

You don't need to add the flexslider and the minified version (the -min.js file), just the minified is fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.