Jump to content

Text in header?


karld

Recommended Posts

Posted

Would anybody know how to include some text in the header?
I was to include a brief description of that the forums are about/ what we cover etc.
This is to inform new/potential members and maybe will help with seo?

02-Jan-18 11-20-27 AM.png

Posted

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.

Posted

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

Posted

1. You should reduce your logo.  That's a lot of wasted space. 

2.  Have you thought about using a tool like Notices by @Fosters? You can make a dismissable announcement for guests to help introduce them to the website.  This might be a more elegant solution than hard coding your theme.  

Archived

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

  • Recently Browsing   0 members

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