Logo text

Status
Not open for further replies.

Andyd358

Member
Aug 23, 2018
243
8
18
55
UK
I have changed the logo (top left) but when I hover over it it says FusionPBX can this be changed. Ive looked in the default settings and also templat.php but I cant find where to change the "Title" as in:

<img id="menu_brand_image" class="navbar-logo" src="/themes/default/images/logo.png" title="FusionPBX">

I cannot locate that line in Template.php I take im looking in the wrong place ?

Cheers

Andrew
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,414
376
83
Looking at the code. In themes/default/template.php there is the following line:
Code:
$menu_brand_text = ($_SESSION['theme']['menu_brand_text']['text'] != '') ? escape($_SESSION['theme']['menu_brand_text']['text']) : "FusionPBX";

Which suggests that the hover text defaults to "FusionPBX" unless a default setting under the theme category named menu_brand_text exists.
 

Andyd358

Member
Aug 23, 2018
243
8
18
55
UK
Looking at the code. In themes/default/template.php there is the following line:
Code:
$menu_brand_text = ($_SESSION['theme']['menu_brand_text']['text'] != '') ? escape($_SESSION['theme']['menu_brand_text']['text']) : "FusionPBX";

Which suggests that the hover text defaults to "FusionPBX" unless a default setting under the theme category named menu_brand_text exists.
Funny enough that line does not appear in my template.php or i cant find it.not does that setting appear under default settings. I did try to add it

Edit

I had added it to default setting incorrectly its now showing as i wanted it to. Agin thank you for your help
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,414
376
83
Not sure what you want to implement. Is it just the menu branding text as detailed above?

You can do a lot with FusionPBX branding, with settings under the theme category under default settings. Some settings are not actually set by default, but the code in template.php assumes default settings for those values.

Full details of branding and how to do it is provided in the FusionPBX members documentation. If, like many others when starting out, you find membership not economically viable, you can at least work the settings out for yourself by examining the code in template.php. You should never need to change any code in this file.
 

CGOODDAY

New Member
Aug 15, 2020
22
3
3
45
Oh, I see. actually, I was already gearing to pay registration of member fee and get the benefit.
Thanks
 

markjcrane

Active Member
Staff member
Jul 22, 2018
448
162
43
49
In the member documentation search for branding and you will find detailed instructions.
 

zero48

New Member
Mar 26, 2021
10
2
3
57
Hello,
As today I cant find <img id="menu_brand_image" class="navbar-logo" src="/themes/default/images/logo.png" title="FusionPBX"> I want to edit the hover over the logo but no joy . this line is not in my system which only have 3 days installed in ost recent version ... Any help ?
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,414
376
83
I can only reiterate what I have said before, instructions are available in the member documentation. If you are unable to afford the membership fee, which does help towards the continued development of FusionPBX, then it is possible to work it out for yourself by looking at the code in themes/default/template.php.
 

zero48

New Member
Mar 26, 2021
10
2
3
57
I can only reiterate what I have said before, instructions are available in the member documentation. If you are unable to afford the membership fee, which does help towards the continued development of FusionPBX, then it is possible to work it out for yourself by looking at the code in themes/default/template.php.
I wish I could pay the membership fee in order to support this awesome piece of software. I do thanks you for your hint, however in my template.php that one does not exist.
Regarding hover, all I have in that particular file is this :

line 643
//crossfade menu brand images (if hover version set)
{if $settings.theme.menu_brand_image != '' && $settings.theme.menu_brand_image_hover != '' && $settings.theme.menu_style != 'side'}
{literal}
$(function(){
$('#menu_brand_image').on('mouseover',function(){
$(this).fadeOut('fast', function(){
$('#menu_brand_image_hover').fadeIn('fast');
});
});
$('#menu_brand_image_hover').on('mouseout',function(){
$(this).fadeOut('fast', function(){
$('#menu_brand_image').fadeIn('fast');
});
});
});
{/literal}
{/if}
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,414
376
83
It would appear that things have changed in the version of "master" that you have installed. This is the problem with not having a viable stable release that we all use in production.
Try looking in fusionpbx/resources/classes/menu.php

I would really like to help you further but I'm afraid this is where the FusionPBX membership becomes divisive. It makes it difficult for community members to help each other on certain subjects. I worked out how to configure branding long before FusionPBX membership came along but, now that I am a member, I do not want to be accused of passing on "member only" information. Silly isn't it!
 
  • Like
Reactions: zero48

zero48

New Member
Mar 26, 2021
10
2
3
57
It would appear that things have changed in the version of "master" that you have installed. This is the problem with not having a viable stable release that we all use in production.
Try looking in fusionpbx/resources/classes/menu.php

I would really like to help you further but I'm afraid this is where the FusionPBX membership becomes divisive. It makes it difficult for community members to help each other on certain subjects. I worked out how to configure branding long before FusionPBX membership came along but, now that I am a member, I do not want to be accused of passing on "member only" information. Silly isn't it!
Yes, It was there ...

I hope this may help others with my case .

Thanks very much for your time a patience !!
 
  • Like
Reactions: pedro.assis
Status
Not open for further replies.