Soapa Posted October 20, 2013 Share Posted October 20, 2013 -http://soaparcadia.com/en/ should inline the following small resources: http://soaparcadia.comthemes/leodrin/js/custom.jsWhich file, and how? Link to comment Share on other sites More sharing options...
vekia Posted October 20, 2013 Share Posted October 20, 2013 you can add to header.tpl file to head section <script></script> command with src="URL_TO_JS_FILE" param or just with script inside these tags Link to comment Share on other sites More sharing options...
Soapa Posted October 20, 2013 Author Share Posted October 20, 2013 Hi Vekia, Like this <script> $(document).ready(function(){$("#productsview a.btn").click(function(){if($(this).attr("rel")=="view-grid"){$("#product_list").addClass("view-grid").removeClass("view-list");}else{$("#product_list").addClass("view-list").removeClass("view-grid");}return false;});$('.box-wishlist').hover(function(){$(this).parent().parent().find('img').addClass('XXX')},function(){$(this).parent().parent().find('img').removeClass('XXX')});}); </script> And I put this ^ in the header.tpl file? Link to comment Share on other sites More sharing options...
vekia Posted October 21, 2013 Share Posted October 21, 2013 if you use brackets { } in you script you have to use also {literal} {/literal} tags <script> {literal} $(document).ready(function(){$("#productsview a.btn").click(function(){if($(this).attr("rel")=="view-grid"){$("#product_list").addClass("view-grid").removeClass("view-list");}else{$("#product_list").addClass("view-list").removeClass("view-grid");}return false;});$('.box-wishlist').hover(function(){$(this).parent().parent().find('img').addClass('XXX')},function(){$(this).parent().parent().find('img').removeClass('XXX')});}); {/literal} </script> 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now