You are viewing the PKP Support Forum | PKP Home Wiki

Trying to figure out how to add to <head>

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Trying to figure out how to add to <head>

Postby lednakashim » Fri Jan 07, 2011 4:43 pm


I have been scouring the ojs source for the better part of the day trying to find how to add data to the head of a page. Anything I write in header.tpl isn't included in the <header>. I am trying to include a custom javascript that must be in the <head></head> region of an html. How is this done in ojs? Which .tpl do I modify to modify the head of every page?

Posts: 33
Joined: Wed Dec 29, 2010 10:23 pm

Re: Trying to figure out how to add to <head>

Postby jmacgreg » Tue Jan 11, 2011 3:16 pm

Hi Misha,

You may be editing the incorrect header file -- try looking in lib/pkp/templates/common for overall headers as well.

Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Return to OJS Development

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest