Jump to content

Name of site next to the logo?


tekguru

Recommended Posts

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?

Posted

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?

Posted

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 members

    • No registered users viewing this page.
×
×
  • Create New...