I have portfolio setup within wordpress that uses jquery isotope to dynamically cascade items by category. When adding this code:
// Echo full Magento head file
// Get specific elements from the head
$head = get_block(‘head’, false);
echo $head->getCssHtml(); // All CSS and JS files defined in your Magento head
It loads the css and jquery from magento just fine but it stops the isotope jquery function. When removing the magento blocks from header the jquery loads. I have also tried loading js files into the magento directory and defining them within page.xml under head. let me know your thoughts. Here is some more code reference:
page.xml with added js:
header.php (wordpress with magento blocks):
functions.php (calls js for wordpress):
I tried be as detailed as possible, I hope this helps. Any direction at the least would be great! Thanks again, this product has allowed great things to happen.
- The topic ‘[Plugin: Magento WordPress Integration] JS load problem (wordpress end)’ is closed to new replies.