0

I am customizing magneto theme i was working on list.phtml file to show all products from specific categories on home page i did by including online jquery file at beginning of list.phtml file but home page sub categories are not showing on hover effect might me conflict with another js.. if i remove script from list.phtml file then sub categories are shown on hover effect but animation effect goes out. and if i remove script from list.phtml then sub categories shown on mouse hover effect but animation not.. i downloaded js file but don't know where to put this file in folder structure so my animation effect and hover effect both works fine.

enter image description here

1
  • Plz suggest solutions Commented Jan 30, 2015 at 12:42

2 Answers 2

1

Include it in page.xml after prototype. Also you need to include jQuery.noConflict() to avoid conflicts of jquery and prototype

Sign up to request clarification or add additional context in comments.

4 Comments

But where to put downloaded js in magento folder structure. and where to add jquery.noConflict...
You can add it in js folder. The line you need to include in page.xml is inside <reference name="head"> is : action method="addJs"><script>your_js_name.js</script></action>
Hey but my page.xml does not contain any reference name = "head" all are reference name = "root" tags are there.
Hey buddy, best way is to create a local.xml file in your layouts. Here I am attaching the code below as an answer
0
<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <reference name="head">
            <action method="addJs"><script>jquery.js</script></action>
            <action method="addJs"><script>jquery-no-conflict.js</script></action>
        </reference>
    </default>
</layout>
.

Comments

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.