- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2016 06:01 AM
Hi,
I am trying to change the logo of a header. For some reason, the logo won't change no matter what I do. I even made a new header and uploaded a completely different logo to no effect. Where are header logos getting overwritten?
Also, I am talking about the CMS header block as so, not the actual banner image:
For example, the olympic logo below won't change on my CMS page no matter what I do.
Thanks.
Message was edited by: Tyler Li
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2016 07:01 PM
Looks like the script rendering the image is using a static image instead of the one provided in the record. Search your UI Macros table with filter: XML contains fplogo.png
If you find something you might need to update it to use ${current.logo.getDisplayValue()} instead.
Also, a less clean way to do it as the Header record becomes misleading (and this is why you actually struggle updating a simple image) look for Name contains fplogo.png inside your Image library, if you find it then update it with the new logo. If you don't find it you can create an image record with the name fplogo.png and this should overwrite the existing image.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2016 02:54 PM
My Header is in Global Scope, but the site itself is in my custom scope.
I have also tried header in custom scope (same as my site page) but still won't update.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2016 05:29 PM
Someone might have modified the OOTB header renderer.
You can try to have a look at these UI Macro:
- render_content_block_header Ensure that this block is in place
<tr class="cms_header_logo_row">
<td colspan="3">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="${jvar_background_middle}">
<tr>
<td class="cms_header_logo"><g:cms_header_logo /></td>
<td class="cms_header_text"><g:cms_header_text /></td>
<j:if test="${current.chat_queue != ''}">
<td class="cms_header_text"><g:cms_header_chat silent_warnings="true" /></td>
</j:if>
</tr>
</table>
</td>
</tr>
- cms_header_logo Ensure that this block is in place
<j:if test="${current.logo.getDisplayValue() != ''}">
<div class="cms_header_logo" >
<a href="home.do"><img src="${current.logo.getDisplayValue()}" alt="{gs.getMessage('Home')}" /></a>
</div>
</j:if>
Finally, check that your field in which you place the logo has the column name of "logo".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2016 06:19 AM
Hi Laurent,
The render_content_block_header block was indeed commented out.
I'm not sure how the logo was rendering even though the block was commented out.
However, un-commenting it out did not fix the problem. Could it be render_content_block_header getting overwritten?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2016 07:26 AM
Yes it could be that the Header of your CMS site does not use a Header record.
Go inside one of your CMS page, click on the related link "Edit Page". Press on the Edit button of the Header block to see if your Header record gets opened, if it is not the Header record that gets opened you have two choices:
- Update your pages to use the OOTB Header
- Look at the record opened to try to find out where you can update the logo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2016 08:07 AM
I press the Edit button in the header block, and my Header record does get opened.
I update the logo in the Header record, but somehow my Header still has the unchanged logo. The only way I can change it is by removing the logo entirely.
I think this is very bizarre.