how to block .js files from hooking in the footer of wordpress?

Discussion in 'Programming' started by sandrodz, May 14, 2010.

  1. #1
    I need help!

    I'm trying to optimize my wp to run smoother, so I put everything in two .js files one in footer the other in header.

    But I cannot get one of my plug ins (shadowbax js) to stop including .js file in the footer! I already have contents inside my own combined file, so how do I stop those plug ins from outputting in the theme?
     
    sandrodz, May 14, 2010 IP
  2. ivan.kristianto

    ivan.kristianto Active Member

    Messages:
    136
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    Open the plugin php file.
    Look for wp_footer()
    you can comment that line or seek at the line where the javascript is echoed.
    Cheers.
     
    ivan.kristianto, May 14, 2010 IP
  3. sandrodz

    sandrodz Peon

    Messages:
    1,482
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thx!

    But, if I comment that out some functionality of the theme will break. And js isn't being echoed anywhere at least in my theme file. Where do I seek it? shouldn't it be in shadowbox plugin script? or I can comment it out even from the theme??

    For example before the wp_header() I put <?php wp_deregister_script('jquery'); ?> and no javascript is being included from that hook, but for the footer I have no idea what to do :)
     
    sandrodz, May 15, 2010 IP
  4. sandrodz

    sandrodz Peon

    Messages:
    1,482
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #4
    anyone? I'm stuck with this, cannot make unified js files :(
     
    sandrodz, Jun 10, 2010 IP