Jump to content

Text in header?


karld

Recommended Posts

There's probably a better way of doing it, but you can hard-encode it into the site's template.

Edit your Themes>choose your template>Edit HTML & CSS

Choose Templates>Core>Global>Logo

 

{{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='{setting="board_name" escape="true"}'></a>

<span style="display: inline-block; max-width: 400px; padding-left: 10px;">YOUR TEXT HERE</span>

{{else}}
<a href='{setting="base_url"}' id='elSiteTitle' accesskey='1'>{setting="board_name"}</a>
{{endif}}

 

You'll have to mess around with the CSS and whatnot to get it to look the way you want it.  Alternatively, you can reference a block here instead.  Since you're modifying the template code, there is a chance that it will be overwritten on future updates.  But it should be easy enough to put back in.

Link to comment
Share on other sites

Thanks rayzir has worked out quite well.
 

{{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='{setting="board_name" escape="true"}'></a>

<span style="display: inline-block; max-width: 600px; padding-left: 10px;"><div align="center"><font color="#FFfff" size="2">A British bird keeping website<br>for the breeding’ & exhibiting’ of <br>
British Hardbills & Softbills<br> Mules & Hybrids Canaries & Related Species</span>

{{else}}
<a href='{setting="base_url"}' id='elSiteTitle' accesskey='1'>{setting="board_name"}</a>
{{endif}}

I have kept it on the left at the side of the logo, have included a bit of html code to it.
This also aligns on mobile version too.

Thanks
Karl

5a5783de4380b_11-Jan-183-27-39PM.thumb.png.6ea8eed2a2f972f94338f33fb1087678.png

Screenshot_2018-01-11-15-25-42.thumb.png.e2112f8f9f7aabdc20bc350fc7ca85f9.png

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

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