Laptop, meet window. Window, meet laptop. For the love of hot pockets I need help.

Discussion in 'PHP' started by Germz, Feb 23, 2009.

  1. #1
    This post is about Wordpress, if you don't know Wordpress then leave. No don't leave, I'm just kidding please help me.

    I am trying to create a php conditional tag that will make my jquery load ONLY on other pages other than my homepage.

    http://codex.wordpress.org/Conditional_Tags

    This is my website,

    http://www.thegermz.com

    Also, I am not calling for the jquery to load as the jquery is loading on it's own... I'm not sure if it's the wp_head that's calling it, but if it is the wp head I can't disable it from the homepage as I have some plugins there.

    The reason why I dont want jquery on my homepage is because my featured content gallery plugin breaks with jquery.

    Apparently FCG and Jquery had a problem when they were little and never got over it... but what do I know.
     
    Germz, Feb 23, 2009 IP
  2. w0tan

    w0tan Peon

    Messages:
    77
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think I understand what you're trying to do; correct me if I'm wrong.

    You'll have to find where jQuery is being loaded from. It will have to be in your template files for you to use the conditional. Search through the wordpress files to locate all instances of the jquery javascript file string (jquery.js).

    From there you should be able to do

    
    if (is_home() == FALSE) {
    //load jQuery
    }
    
    Code (markup):
     
    w0tan, Feb 24, 2009 IP
  3. Germz

    Germz Peon

    Messages:
    1,109
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #3
    wp_head is loading it.
     
    Germz, Feb 24, 2009 IP