You are viewing the PKP Support Forum | PKP Home Wiki

Unable to set site and magazine header image

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

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.

Unable to set site and magazine header image

Postby jascanio » Fri Nov 09, 2012 12:47 pm

I've been recently appointed administrator for an OJS 2.2.1 site and magazine. I found a situation in which the magazine displayed its title text floating over the header image. However, nor an image or a title text could be seen as set in the Journal Setup page.
In order to make the floating title dissapear I had to edit the /ojs/templates/common/header.tpl and delete the lines between these h1 tags
Code: Select all
{if $displayPageHeaderLogo && is_array($displayPageHeaderLogo)}
<img src="{$publicFilesDir}/{$displayPageHeaderLogo.uploadName|escape:"url"}" width="{$displayPageHeaderLogo.width|escape}" height="{$displayPageHeaderLogo.height|escape}" {if $displayPageHeaderLogo.altText != ''}alt="{$displayPageHeaderLogo.altText|escape}"{else}alt="{translate key="common.pageHeaderLogo.altText"}"{/if} />
{if $displayPageHeaderTitle && is_array($displayPageHeaderTitle)}
<img src="{$publicFilesDir}/{$displayPageHeaderTitle.uploadName|escape:"url"}" width="{$displayPageHeaderTitle.width|escape}" height="{$displayPageHeaderTitle.height|escape}" {if $displayPageHeaderTitle.altText != ''}alt="{$displayPageHeaderTitle.altText|escape}"{else}alt="{translate key="common.pageHeader.altText"}"{/if} />
{elseif $displayPageHeaderTitle}
{elseif $alternatePageHeader}
{elseif $siteTitle}
{translate key="common.openJournalSystems"}

I presume this is a correct factory-code, but deleting it made the floating text dissapear. So, I suspect that some changes might have been applied by former administration people at a low or mid-level, but cannot find where. I can see, however, in the common.css template (with firebug) starting on line 131 the following code:
Code: Select all
#header h1 {
    background: url("http://www.pasosonline.org/ojs/styles/imagenes/cabecera1.jpg") no-repeat scroll 0 0 transparent;
    float: inherit;
    font-family: Georgia,'Times New Roman',Times,serif;
    font-weight: normal;
    height: 170px;
    line-height: 130%;
    margin: 0 auto;
    padding: 10px 20px;

I'm considereing overwriting common.css with the original, and then restoring the lines I deleted on templates/common/header.tpl, but I'm not quite sure that the problem lays only here.

Any advice, please?
Thanks very much in advance.
Posts: 8
Joined: Mon Jul 23, 2012 3:58 am

Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 5 guests