0

In

/magento1/app/design/frontend/base/default/layout/instagramapi.xml

    <?xml version="1.0"?>   
<layout version="0.1.3"> 
<adminhtml_system_config_edit>
    <reference name="head">
        <action method="addCss">
           <name>instagramapi/css/hBratingsliderAdmin.min.css</name>
        </action>
        <action method="addJs">
             <script>instagramapi/js/jscolor/jscolor.js</script>
        </action>
    </reference>
</adminhtml_system_config_edit>
    <default>
       <reference name="head">
    .............

file is located at

magento1/skin/adminhtml/default/default/instagramapi/js/jscolor/jscolor.js

and

/magento1/skin/adminhtml/default/default/instagramapi/css/hBratingsliderAdmin.min.css

is there any error in this code as no css or js file is included in admin panel

1 Answer 1

0

try this code

<?xml version="1.0"?>   
<layout version="0.1.3">
<adminhtml_system_config_edit>
    <reference name="head">
        <action method="addItem">
           <type>skin_css</type>
           <name>instagramapi/css/hBratingsliderAdmin.min.css</name>
        </action>
        <action method="addItem">
             <type>js</type>
             <name>instagramapi/js/jscolor/jscolor.js</name>
        </action>
    </reference>
</adminhtml_system_config_edit>

Also you should put your instagramapi.xml file at location

/magento1/app/design/adminhtml/default/default/layout/instagramapi.xml

9
  • Not working sir Commented Oct 25, 2017 at 11:02
  • can you add path of your js and css files? Commented Oct 25, 2017 at 11:03
  • which path sir ,these files are not included Commented Oct 25, 2017 at 11:05
  • where did you put this js&css files which you want to include? Commented Oct 25, 2017 at 11:06
  • ok i updated my post Commented Oct 25, 2017 at 11:07

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.