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
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

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: Google [Bot] and 3 guests