Posted by polarsky on December 2, 2009 at 12:52pm
hello all,
I have to integrate a certain search engine into an already existing drupal theme and this requires me to insert some html code into the "head "region.How do I accomplish this in drupal?which of the theme files am I supposed to edit and how?My take is the page.tpl.php file but guys I'm not sure.....
Comments
You are correct
I would edit the page.tpl.php
John Gavula | Gavula Design Associates - Strategic Branding
=-=
In Drupal 6, if you want to add a javascript file (either with pure javascript or jQuery syntax) you just need to add your .js file to the theme's .info file.
Example .info file:
name = My theme
description = Theme developed by me.
core = 6.x
engine = phptemplate
version = 6.x-1.0
;
scripts[] = my_java.js
When altering a themes .info ensure you clear the theme registry afterward.
Thanks, good people of the
Thanks, good people of the drupal community. I was finally able to get the search engine integrated into my website...merci!
...and hey VM thanks for that bit about javascript.....