Logos In header

Forum dedicated to Mods for HESK created by Mike Koch

Moderator: mkoch227

Post Reply
itmanager
Posts: 7
Joined: Sun Dec 03, 2017 1:06 pm

Logos In header

Post by itmanager »

Hi Mike,

Is it possible to display a small logo in the header ot top of the helpdesk in MFH, thanks?

BTW MFH is great bit of work :-)

Regards

Andy
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Logos In header

Post by mkoch227 »

You can add any HTML/CSS into the header.txt file, and it will be displayed above the navbar.

If you want to add your logo inside the navbar, you'll need to modify the header.inc.php file and admin/show_admin_nav.inc.php files. That however it outside the scope of my support.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
itmanager
Posts: 7
Joined: Sun Dec 03, 2017 1:06 pm

Re: Logos In header

Post by itmanager »

Ok many thanks :-)
jrentzke
Posts: 2
Joined: Sat Feb 18, 2017 3:56 pm

Re: Logos In header

Post by jrentzke »

header.inc.php
after line 255 which is </button>, add the lines below:

<!-- add logo to navbar -->
<a class="navbar-brand" href="http://yourURL/helpdesk/">
<img src="http://yourURL/helpdesk/img/logo.png" alt="alt_txt" width="40" height="26">
</a>


show_admin_nav.inc.php
after line 37 which is <?php if (defined('MFH... , again add the lines above.
itmanager
Posts: 7
Joined: Sun Dec 03, 2017 1:06 pm

Re: Logos In header

Post by itmanager »

Thank you I will try it.
topoldo
Posts: 51
Joined: Wed Sep 21, 2016 10:44 am

Re: Logos In header

Post by topoldo »

jrentzke wrote: Sat Jan 13, 2018 10:32 pm header.inc.php
after line 255 which is </button>, add the lines below:
<!-- add logo to navbar -->
<a class="navbar-brand" href="http://yourURL/helpdesk/">
<img src="http://yourURL/helpdesk/img/logo.png" alt="alt_txt" width="40" height="26">
</a>
show_admin_nav.inc.php
after line 37 which is <?php if (defined('MFH... , again add the lines above.
Tnx for the trick!
Anyway, at least in my hands, while it is working on the client side (ie on the Home Page and on the submission ticket page), in the administrative pages the "Website name" one has to setup in the Helpdesk settings seems to "win" and I simply have this on the left of the "Helpdesk Title".
No logo image.
Regards,
Topoldo
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Logos In header

Post by mkoch227 »

The helpdesk title is printed to the page in two places in show_admin_nav.inc.php, depending on if the page has the black sidebar on the left (known internally as MFH_PAGE_LAYOUT == 'TOP_AND_SIDE') or if it only has the top header (MFH_PAGE_LAYOUT == 'TOP_ONLY'). Line 37 (as jrentzke mentioned) is used when the page layout has the sidebar. Line 23 begins the title display when there is no sidebar.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Post Reply