Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
karld Posted January 2, 2018 Posted January 2, 2018 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?
rayzir Posted January 9, 2018 Posted January 9, 2018 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.
karld Posted January 11, 2018 Author Posted January 11, 2018 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
Joel R Posted January 11, 2018 Posted January 11, 2018 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.