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 » Fri May 28, 2010 2:39 pm

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!

User avatar
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 » Fri May 28, 2010 2:55 pm

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 » Fri May 28, 2010 3:00 pm

Sorry, I am not using Wordpress... I am using Serendipity. I have WordPress on a separate blog!

User avatar
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 » Fri May 28, 2010 3:29 pm

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 » Fri May 28, 2010 4:24 pm

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 » Fri May 28, 2010 4:28 pm

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.png
HTML Head Nugget View
HTML-Head-Nugget-View.png (11.19 KiB) Viewed 2848 times

User avatar
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 » Fri May 28, 2010 5:14 pm

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 » Fri May 28, 2010 5:53 pm

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?

User avatar
Don Chambers
Regular
Posts: 3641
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Adding Scripts to Blog Header

Post by Don Chambers » Fri May 28, 2010 6:09 pm

Not sure why it is not working. Try this: go to "Personal Settings" and turn off the wysiwyg editor.... Then try again.

meritweb
Regular
Posts: 43
Joined: Fri Jan 25, 2008 3:40 am

Re: Adding Scripts to Blog Header

Post by meritweb » Fri May 28, 2010 6:11 pm

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