Adding Scripts to Blog Header

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
meritweb
Regular
Posts: 43
Joined: Fri Jan 25, 2008 3:40 am

Adding Scripts to Blog Header

Post by meritweb »

I have recently decided to try a live chat feature for our company website. This requires that we add a script to every page, just before </head>.

Is there a way I can do this within wordpress to include the script on all blog posts?

Thanks!
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Adding Scripts to Blog Header

Post by kleinerChemiker »

If you want to include it in Wordpress, you have to ask in a Wordpress forum.
meritweb
Regular
Posts: 43
Joined: Fri Jan 25, 2008 3:40 am

Re: Adding Scripts to Blog Header

Post by meritweb »

Sorry, I am not using Wordpress... I am using Serendipity. I have WordPress on a separate blog!
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Adding Scripts to Blog Header

Post by kleinerChemiker »

there is an event plugin: page nugget (or somethimg like that)
meritweb
Regular
Posts: 43
Joined: Fri Jan 25, 2008 3:40 am

Re: Adding Scripts to Blog Header

Post by meritweb »

I found the HTML Nugget, but that holds a nugget of HTML in the sidebar... is that what I need?

I am looking to hide a <script> right before the </head>.

Please advise. And thanks for your help, kleinerChemiker.
meritweb
Regular
Posts: 43
Joined: Fri Jan 25, 2008 3:40 am

Re: Adding Scripts to Blog Header

Post by meritweb »

The HTML - Head - Nugget is what I am using... but I can't get it to hide the HTML... it shows it at the top of the page!

I obviously don't want it visibile!
Attachments
HTML Head Nugget View
HTML Head Nugget View
HTML-Head-Nugget-View.png (11.19 KiB) Viewed 4252 times
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Adding Scripts to Blog Header

Post by kleinerChemiker »

If you use the wysiwyg-editor you have to switch to the html-modus or turn the wysiwyg-editor off.
meritweb
Regular
Posts: 43
Joined: Fri Jan 25, 2008 3:40 am

Re: Adding Scripts to Blog Header

Post by meritweb »

I opened the "HTML-Code inside head (HTML-Head Nugget)" plugin. It brought up the Content / WYSIWYG editor. I toggled to the HTML Source to Text Mode, and entered my script. However, this did not save the script, or include it on the pages.

Do I just give up?
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Adding Scripts to Blog Header

Post by Don Chambers »

Not sure why it is not working. Try this: go to "Personal Settings" and turn off the wysiwyg editor.... Then try again.
=Don=
meritweb
Regular
Posts: 43
Joined: Fri Jan 25, 2008 3:40 am

Re: Adding Scripts to Blog Header

Post by meritweb »

Don Chambers wrote:Not sure why it is not working. Try this: go to "Personal Settings" and turn off the wysiwyg editor.... Then try again.
THAT DID IT! Thanks Don!

kleinerChemiker - I appreciate all of your help. You at least got me going in the right direction.

Thank you both so much.
Post Reply