Jump to content
Sign in to follow this  
urbanimatic

Is this a jQuery conflict ?

Recommended Posts

urbanimatic

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
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
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
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
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
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
urbanimatic
Hi Philip....i would love some help.

Share this post


Link to post
Share on other sites
Rob
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
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
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
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
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×