urbanimatic 1 Report post Posted September 2, 2011 Hi there, I have implemented this sliding panel ( http://web-kreation.com/all/implement-a-nice-clean-jquery-sliding-panel-in-wordpress-27/ ) to platform pro using a hook. The issue is that it works only in Home page here is how i did it: Added the slide.js to the header.php (check the code bellow)..if i load the .js using custom code panel via platform pro settings it doesn't even work in Home page. <?php pagelines_register_hook('pagelines_head'); // Hook wp_head(); // Hook (WordPress) ?> Here is the code in slide.js(in the link above it use $ instead of jQuery but had to change this in order to at least work in Home page: jQuery(document).ready(function() { // Expand Panel jQuery("#open").click(function(){ jQuery("div#panel").slideDown("slow"); }); // Collapse Panel jQuery("#close").click(function(){ jQuery("div#panel").slideUp("slow"); }); // Switch buttons from "Log In | Register" to "Close Panel" on click jQuery("#toggle a").click(function () { jQuery("#toggle a").toggle(); }); }); And here is the hook: http://pastebin.com/QdJbNwhf Can anyone advice on why this works only in Home page ? Thanks, -Stelios Share this post Link to post Share on other sites
urbanimatic 1 Report post Posted September 2, 2011 By the way this is not the first jquery i used that worked only in the home page. don't know why Share this post Link to post Share on other sites
catrina 103 Report post Posted September 2, 2011 Have you already tried deactivating your plugins to see if any of them could be causing a conflict? Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
urbanimatic 1 Report post Posted September 2, 2011 Hi Catrina...already done this, i have 4 plugins one of them is akismet..deactivated and still the same. By the way it works with another theme i tried and with all 4 plugins active ...it just don't work with platform pro and as i mentioned this is not the first time i have this problem with platform pro and jquery some other jquery plugins i tried worked also only in the Home page. Share this post Link to post Share on other sites
catrina 103 Report post Posted September 2, 2011 The urbanimatic folder is in the correct folder on your server, correct? Right now this is the directory where the jquery is coming from: wp-content/themes/urbanimatic/js/slide.js Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
urbanimatic 1 Report post Posted September 2, 2011 Yes...but if it wasn't in the correct folder it wouldn't work at all...now it works at least in the Home which is really weird Share this post Link to post Share on other sites
philliphobbs 0 Report post Posted September 2, 2011 Let me know if we can help you :) Share this post Link to post Share on other sites
urbanimatic 1 Report post Posted September 2, 2011 Hi Philip....i would love some help. Share this post Link to post Share on other sites
Rob 547 Report post Posted September 2, 2011 Hi, I've found your problem. The plugin is outdated and not working with the current edition of Wordpress. Note that it is cited as BROKEN in this link http://wordpress.org/extend/plugins/wp-sliding-logindashboard-panel/ You may try, but respectfully, you will be spinning your wheels to try and fix it. Much easier to find an alternative solution. When searching for Wordpress plugins, you should always search via http://www.wordpress/extend/plugins to ensure that you see the version of WP it's compatible to, and any comments about its working status. When plugins are not maintained by their authors, the plugin just isn't worth spending your time. I'm very sorry for this bad news, but the facts are cited clearly on that link above. Former PageLines Moderator, Food Expert and Raconteur Share this post Link to post Share on other sites
urbanimatic 1 Report post Posted September 2, 2011 Hi Rangelone....i don't use the wordpress plugin.....didn't even know there was a plugin What i did is to implement manually the code using a pageline hook Share this post Link to post Share on other sites
Rob 547 Report post Posted September 2, 2011 If you're using the code from that plugin, and it's .js file, it won't work. I'm quoting your statement: [quote]I have implemented this sliding panel ( http://web-kreation.com/all/implement-a-nice-clean-jquery-sliding-panel-in-wordpress-27/ ) to platform pro using a hook. The issue is that it works only in Home page here is how i did it: Added the slide.js to the header.php (check the code bellow)..if i load the .js using custom code panel via platform pro settings it doesn't even work in Home page.[/quote] Since that sliding panel (a plugin), is outdated, any code you obtained from it, or their site, will not function properly. The javascript file will conflict with the current version of WP. Former PageLines Moderator, Food Expert and Raconteur Share this post Link to post Share on other sites
urbanimatic 1 Report post Posted September 2, 2011 Thank you very much rangelone...i'll try to find an alternative solution or re-do this from scratch. -Stelios Share this post Link to post Share on other sites
cmunns 16 Report post Posted September 2, 2011 I don't see where you added the actual jquery call in the pastebin code? What is the error you get or do you not get one? Share this post Link to post Share on other sites
urbanimatic 1 Report post Posted September 2, 2011 HI Adam, You mean jquery js or the slide.js ? I added slide.js to header I don't get an error it just works only in Home / index page. For example it works on www.mydomain.com but it does not work on the other pages www.mydomain.com/about e.t.c. but no error messages Share this post Link to post Share on other sites