Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Use Google-Hosted JavaScript Libraries (…still the Right Way

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26613

    Hello All!

    I’m farely new at messing around with WordPress and in a recent screen-cast #73, http://css-tricks.com/video-screencasts/73-wordpress-theme/3 Chris showed how load Google-Hosted JQuery in the WordPress function.php page and Chris also has a post on Digging into WordPress about this too, http://digwp.com/2009/06/use-google-hosted-javascript-libraries-still-the-right-way/ ). In that a article they mention using the "admin_is" conditional tip so as not too mess up the Rich-text editor on the admin side. Unfortunately, I’m fairly new to WordPress and don’t know how to go about doing this. Can someone help me do that?

    Here is my function.php file:

    Code:

  • ‘,
    ‘after_widget’ => ‘
  • ‘,
    ‘before_title’ => ‘

    ‘,
    ‘after_title’ => ‘

    ‘,
    ));
    }
    ?>

And here is my header.php file:

Code:

>




>

Any help someone could give me would be great! My Admin is messed up because of this.

Thanks,
Hal

#66077
Historical Forums User
Participant

Okay, so I just realized that I have the "is_admin" conditional statement in there. So, that is not it. Here are the warnings I’m getting on the admin side:

Warning: Cannot modify header information – headers already sent by (output started at /home/newhop9/public_html/newsite/wp-content/themes/NHFC/functions.php:1) in /home/newhop9/public_html/newsite/wp-includes/classes.php on line 1586

Warning: Cannot modify header information – headers already sent by (output started at /home/newhop9/public_html/newsite/wp-content/themes/NHFC/functions.php:1) in /home/newhop9/public_html/newsite/wp-includes/pluggable.php on line 865

So, if anyone can help me out. That would be awesome!

Thanks,
Hal

#66082
mattvot
Member

Could you try running through your plugins and other code to see if it’s not one of them causing an error? Everything on the script you provided should work.

Viewing 3 posts - 1 through 3 (of 3 total)