[jQuery] Re: Using JQuery with WordPress

2009-10-30 Thread JT
You can place the code in the header.php file within the head section,
but after the jquery.js file. However, if you only need this code on
one page, you could just place it in that page within script tags. As
long as you are using $(document).ready(function(), it doesn't matter
where it is placed (head section, body). Although some like to place
their javascript in the head section.

Alternatively you can have a php condition in the header.php file. For
example:

if ($page == '#PAGE_ID') {
// your jquery code
}


[jQuery] Re: Using jQuery with Wordpress

2009-02-04 Thread MH1988

I finally found some documentation regardng this. It seems that using
jQuery inconjuction with Wordpress is fine however, you must use
jQuery () instead of $. Further details also suggest that Wordpress
won't register a jQuery plugin.

On Feb 4, 6:43 pm, MH1988 m.lawrencehu...@gmail.com wrote:
 Oh, thank you for responding back. I didn't think I would get a reply
 at all.

 The problem I am having seems to be that jQuery + the jQuery Cycle
 plugin with simple fade and prev/next transitions does not work at
 all. My main reason for using it is I would like to include it in each
 Wordpress post when I want to present images. This is my page here: a
 href=http://www.culturesinbetween.net/NEWWEBSITE/archives/260;page/
 a

 I have embedded jQuery v. 2.34 and the Cycle plugin v. 1.3.1

 What I have done is evoked the function within the header.php file.
 The only thing I have done is put in the div's in the Wordpress post
 but nothing works.

 I've put overflow: hidden for the div

 I don't know why but works perfectly for users using Indexhibit
 (www.indexhibit.org)

 Mike

 On Feb 4, 3:20 am, Penner, Matthew mpen...@valverde.edu wrote:

  Is jQuery working at all?  I've noticed that WordPress can be very
  intrusive when you put javascript in posts.  When I would first write a
  post with js embedded it would work, but the instant I edited it online
  the helpful editor textbox would reformat my js and break it.

  If you want your gallery to be a permanent fixture (ie. On the side bar
  rather than just a single post) I would suggest you edit your theme
  directly.  This should avoid any WordPress issues.

  Matt Penner

  -Original Message-
  From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On

  Behalf Of MH1988
  Sent: Tuesday, February 03, 2009 5:58 AM
  To: jQuery (English)
  Subject: [jQuery] Using jQuery with Wordpress

  I am having problems using jquery with wordpress. I would like to use
  the simple gallery plugin but it will not fade in/out my images. Help?


[jQuery] Re: Using jQuery with Wordpress

2009-02-04 Thread Richard D. Worth
Also, you can use this pattern to use $ inside a closure:

(function($) {

// ... all your jQuery code using a $ in here

})(jQuery);

- Richard

On Wed, Feb 4, 2009 at 3:04 AM, MH1988 m.lawrencehu...@gmail.com wrote:


 I finally found some documentation regardng this. It seems that using
 jQuery inconjuction with Wordpress is fine however, you must use
 jQuery () instead of $. Further details also suggest that Wordpress
 won't register a jQuery plugin.

 On Feb 4, 6:43 pm, MH1988 m.lawrencehu...@gmail.com wrote:
  Oh, thank you for responding back. I didn't think I would get a reply
  at all.
 
  The problem I am having seems to be that jQuery + the jQuery Cycle
  plugin with simple fade and prev/next transitions does not work at
  all. My main reason for using it is I would like to include it in each
  Wordpress post when I want to present images. This is my page here: a
  href=http://www.culturesinbetween.net/NEWWEBSITE/archives/260;page/
  a
 
  I have embedded jQuery v. 2.34 and the Cycle plugin v. 1.3.1
 
  What I have done is evoked the function within the header.php file.
  The only thing I have done is put in the div's in the Wordpress post
  but nothing works.
 
  I've put overflow: hidden for the div
 
  I don't know why but works perfectly for users using Indexhibit
  (www.indexhibit.org)
 
  Mike
 
  On Feb 4, 3:20 am, Penner, Matthew mpen...@valverde.edu wrote:
 
   Is jQuery working at all?  I've noticed that WordPress can be very
   intrusive when you put javascript in posts.  When I would first write a
   post with js embedded it would work, but the instant I edited it online
   the helpful editor textbox would reformat my js and break it.
 
   If you want your gallery to be a permanent fixture (ie. On the side bar
   rather than just a single post) I would suggest you edit your theme
   directly.  This should avoid any WordPress issues.
 
   Matt Penner
 
   -Original Message-
   From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com]
 On
 
   Behalf Of MH1988
   Sent: Tuesday, February 03, 2009 5:58 AM
   To: jQuery (English)
   Subject: [jQuery] Using jQuery with Wordpress
 
   I am having problems using jquery with wordpress. I would like to use
   the simple gallery plugin but it will not fade in/out my images. Help?



[jQuery] Re: Using jQuery with Wordpress

2009-02-03 Thread MorningZ

Can you elaborate on having problems?

On Feb 3, 8:57 am, MH1988 m.lawrencehu...@gmail.com wrote:
 I am having problems using jquery with wordpress. I would like to use
 the simple gallery plugin but it will not fade in/out my images. Help?


[jQuery] Re: Using jQuery with Wordpress

2009-02-03 Thread Penner, Matthew

Is jQuery working at all?  I've noticed that WordPress can be very
intrusive when you put javascript in posts.  When I would first write a
post with js embedded it would work, but the instant I edited it online
the helpful editor textbox would reformat my js and break it.

If you want your gallery to be a permanent fixture (ie. On the side bar
rather than just a single post) I would suggest you edit your theme
directly.  This should avoid any WordPress issues.

Matt Penner

-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of MH1988
Sent: Tuesday, February 03, 2009 5:58 AM
To: jQuery (English)
Subject: [jQuery] Using jQuery with Wordpress


I am having problems using jquery with wordpress. I would like to use
the simple gallery plugin but it will not fade in/out my images. Help?


[jQuery] Re: Using jQuery with Wordpress

2009-02-03 Thread MH1988

Oh, thank you for responding back. I didn't think I would get a reply
at all.

The problem I am having seems to be that jQuery + the jQuery Cycle
plugin with simple fade and prev/next transitions does not work at
all. My main reason for using it is I would like to include it in each
Wordpress post when I want to present images. This is my page here: a
href=http://www.culturesinbetween.net/NEWWEBSITE/archives/260;page/
a

I have embedded jQuery v. 2.34 and the Cycle plugin v. 1.3.1

What I have done is evoked the function within the header.php file.
The only thing I have done is put in the div's in the Wordpress post
but nothing works.

I've put overflow: hidden for the div

I don't know why but works perfectly for users using Indexhibit
(www.indexhibit.org)

Mike

On Feb 4, 3:20 am, Penner, Matthew mpen...@valverde.edu wrote:
 Is jQuery working at all?  I've noticed that WordPress can be very
 intrusive when you put javascript in posts.  When I would first write a
 post with js embedded it would work, but the instant I edited it online
 the helpful editor textbox would reformat my js and break it.

 If you want your gallery to be a permanent fixture (ie. On the side bar
 rather than just a single post) I would suggest you edit your theme
 directly.  This should avoid any WordPress issues.

 Matt Penner

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On

 Behalf Of MH1988
 Sent: Tuesday, February 03, 2009 5:58 AM
 To: jQuery (English)
 Subject: [jQuery] Using jQuery with Wordpress

 I am having problems using jquery with wordpress. I would like to use
 the simple gallery plugin but it will not fade in/out my images. Help?


[jQuery] Re: Using jQuery in Wordpress

2008-01-07 Thread Benjamin Sterling
Sean O,
I just include it in my theme:

script type=text/javascript src=?php
bloginfo('template_directory');?/common/js/jquery-1.2.1.min.js/script

Not sure how to include what they have in the core, but I think it is out of
date anyways.

On 1/7/08, Sean O [EMAIL PROTECTED] wrote:



 So I'm trying to use jQuery in Wordpress (2.3.2)...  Mostly for site
 design/effects now, eventually for posts too, if possible.  It looks like
 jQuery is in the WP core now, but when I Firebug a few $() functions, I
 get
 errors.

 Any trick to getting this going?  Googling provided sparse / old articles.


 Thanks,

 SEAN O
 ___
 www.sean-o.com
 --
 View this message in context:
 http://www.nabble.com/Using-jQuery-in-Wordpress-tp14672948s27240p14672948.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com
 .




-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com


[jQuery] Re: Using jQuery in Wordpress

2008-01-07 Thread Priest, James (NIH/NIEHS) [C]

 -Original Message-
 From: Benjamin Sterling [mailto:[EMAIL PROTECTED] 

 Not sure how to include what they have in the core, but I 
 think it is out of date anyways. 


I didn't even mess with trying to get whatever is included working - I
didn't want to get stuck using an old version, etc.  I just dumped
jQuery in the root of my site and called it in my template header.php...

Shameless plug for my wife's site:  http://www.yourdoorandmore.com/

I want to next build a little gallery using the cycle plugin w/pager as
well...

http://www.malsup.com/jquery/cycle/pager3.html

Jim


[jQuery] Re: Using jQuery in Wordpress

2008-01-07 Thread Sean O


Ben, Jim, thanks for the replies.

I was ready to just hack it in myself, but I haven't worked with Wordpress
in quite some time and remember it being fairly fragile.  I'll give your
code a shot, Benjamin.

Shameless plug for my wife's site:  http://www.yourdoorandmore.com/
@Jim: my wife is looking for this very thing - a pen  ink drawing of her
childhood home.  Can you work with photographs? (we're in PA)  Contact me
off list:  seanodotcom -at- yahoo -dot- com


Thanks,
SEAN



Priest, James (NIH/NIEHS) [C] wrote:
 
 
 -Original Message-
 From: Benjamin Sterling [mailto:[EMAIL PROTECTED] 
 
 Not sure how to include what they have in the core, but I 
 think it is out of date anyways. 
 
 
 I didn't even mess with trying to get whatever is included working - I
 didn't want to get stuck using an old version, etc.  I just dumped
 jQuery in the root of my site and called it in my template header.php...
 
 Shameless plug for my wife's site:  http://www.yourdoorandmore.com/
 
 I want to next build a little gallery using the cycle plugin w/pager as
 well...
 
 http://www.malsup.com/jquery/cycle/pager3.html
 
 Jim
 
 

-- 
View this message in context: 
http://www.nabble.com/Using-jQuery-in-Wordpress-tp14672948s27240p14674018.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Using jQuery in Wordpress

2008-01-07 Thread Gerry Tucker
This page 
http://scratbycoastalerosion.org.uk/gallery/?photoset_id=72157603031152209view=slideshow
 from one of my Websites is using enqueued jQuery and the Cycle plugin for a 
gallery.

My own shameless plug.

Gerry

--
From: Priest, James (NIH/NIEHS) [C] [EMAIL PROTECTED]
Sent: Monday, January 07, 2008 7:25 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Using jQuery in Wordpress

 
 -Original Message-
 From: Benjamin Sterling [mailto:[EMAIL PROTECTED] 
 
 Not sure how to include what they have in the core, but I 
 think it is out of date anyways. 
 
 
 I didn't even mess with trying to get whatever is included working - I
 didn't want to get stuck using an old version, etc.  I just dumped
 jQuery in the root of my site and called it in my template header.php...
 
 Shameless plug for my wife's site:  http://www.yourdoorandmore.com/
 
 I want to next build a little gallery using the cycle plugin w/pager as
 well...
 
 http://www.malsup.com/jquery/cycle/pager3.html
 
 Jim
 
 
 
 
 -- 
 No virus found in this incoming message.
 Checked by AVG Free Edition. 
 Version: 7.5.516 / Virus Database: 269.17.13/1212 - Release Date: 06/01/2008 
 22:55
 


[jQuery] Re: Using jQuery in Wordpress

2008-01-07 Thread Gerry Tucker
Sean,


JQuery in WP 2.3.2 is up to version 1.1.4. I imagine at WP 2.5 it will move to 
v1.2.x.

In your header file (header.php) you need to add the following line BEFORE 
the line that reads ?php wp_head(); ?.

?php wp_enqueue_script('jquery'); ?

so that it reads:

?php wp_enqueue_script('jquery'); ?
?php wp_head(); ?

Gerry



From: Benjamin Sterling 
Sent: Monday, January 07, 2008 7:01 PM
To: jquery-en@googlegroups.com 
Subject: [jQuery] Re: Using jQuery in Wordpress


Sean O,
I just include it in my theme:

script type=text/javascript src=?php 
bloginfo('template_directory');?/common/js/jquery-1.2.1.min.js/script

Not sure how to include what they have in the core, but I think it is out of 
date anyways. 


On 1/7/08, Sean O [EMAIL PROTECTED] wrote: 


  So I'm trying to use jQuery in Wordpress (2.3.2)...  Mostly for site
  design/effects now, eventually for posts too, if possible.  It looks like
  jQuery is in the WP core now, but when I Firebug a few $() functions, I get 
  errors.

  Any trick to getting this going?  Googling provided sparse / old articles.


  Thanks,

  SEAN O
  ___
  www.sean-o.com
  --
  View this message in context: 
http://www.nabble.com/Using-jQuery-in-Wordpress-tp14672948s27240p14672948.html
  Sent from the jQuery General Discussion mailing list archive at Nabble.com.





-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com 





No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.17.13/1212 - Release Date: 06/01/2008 
22:55


[jQuery] Re: Using jQuery in Wordpress

2008-01-07 Thread Gerry Tucker

Sean,

JQuery in WP 2.3.2 is up to version 1.1.4. I imagine at WP 2.5 it will
move to v1.2.x.

In your header file (header.php) you need to add the following line
BEFORE
the line that reads ?php wp_head(); ?.

?php wp_enqueue_script('jquery'); ?

so that it reads:

?php wp_enqueue_script('jquery'); ?
?php wp_head(); ?

This page 
http://scratbycoastalerosion.org.uk/gallery/?photoset_id=72157603031152209view=slideshow
from one of my Websites is using enqueued jQuery and the Cycle plugin
for a gallery.

My own shameless plug.
Gerry


On Jan 7, 7:42 pm, Sean O [EMAIL PROTECTED] wrote:
 Ben, Jim, thanks for the replies.

 I was ready to just hack it in myself, but I haven't worked with Wordpress
 in quite some time and remember it being fairly fragile.  I'll give your
 code a shot, Benjamin.

 Shameless plug for my wife's site:  http://www.yourdoorandmore.com/

 @Jim: my wife is looking for this very thing - a pen  ink drawing of her
 childhood home.  Can you work with photographs? (we're in PA)  Contact me
 off list:  seanodotcom -at- yahoo -dot- com

 Thanks,
 SEAN

 Priest, James (NIH/NIEHS) [C] wrote:







  -Original Message-
  From: Benjamin Sterling [mailto:[EMAIL PROTECTED]

  Not sure how to include what they have in the core, but I
  think it is out of date anyways.

  I didn't even mess with trying to get whatever is included working - I
  didn't want to get stuck using an old version, etc.  I just dumped
  jQuery in the root of my site and called it in my template header.php...

  Shameless plug for my wife's site:  http://www.yourdoorandmore.com/

  I want to next build a little gallery using the cycle plugin w/pager as
  well...

 http://www.malsup.com/jquery/cycle/pager3.html

  Jim

 --
 View this message in 
 context:http://www.nabble.com/Using-jQuery-in-Wordpress-tp14672948s27240p1467...
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.- 
 Hide quoted text -

 - Show quoted text -