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
<h1>
{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}
{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}
{$displayPageHeaderTitle}
{elseif $alternatePageHeader}
{$alternatePageHeader}
{elseif $siteTitle}
{$siteTitle}
{else}
{translate key="common.openJournalSystems"}
{/if}
</h1>
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.
Regards,
Juan
