Jump to content

Name of site next to the logo?

Featured Replies

Posted

Is it easy to modify the theme to put the name of the site (using standard IPS4 font) next to the logo? Or is this available as standard and I've missed it?

  • Author

Okay I can get this with modifying the logo template as:

{{if \IPS\Theme::i()->logo['front']['url'] !== null }}
{{$logo = \IPS\File::get( 'core_Theme', \IPS\Theme::i()->logo['front']['url'] )->url;}}
<a class='ipsMenu_title' href='{setting="base_url"}' id='elLogo' accesskey='1'><img src="{$logo}" alt=''><b>{setting="board_name"}</b></a>
{{else}}
<a href='{setting="base_url"}' id='elSiteTitle' accesskey='1'>{setting="board_name"}</a>
{{endif}}

But I can't work out which class to use to get text the same size as that used for the 'New Content' title. Anyone any ideas?

  • Author

Maybe not elegant but it works:

{{if \IPS\Theme::i()->logo['front']['url'] !== null }}
{{$logo = \IPS\File::get( 'core_Theme', \IPS\Theme::i()->logo['front']['url'] )->url;}}
<a href='{setting="base_url"}' id='elLogo' accesskey='1'><img src="{$logo}" alt=''><font size="5">{setting="board_name"}</font></a>
{{else}}
<a href='{setting="base_url"}' id='elSiteTitle' accesskey='1'>{setting="board_name"}</a>
{{endif}}

 

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.