4
Way to change title, for white labeling
Question asked by Erik White - 5/3/2017 at 12:02 PM
Unanswered
Dev working with a client to white label 15.5 enterprise (and soon hopefully 16 when it finally comes out). Noticed there is a title of 'Smartermail' applied to every page, custom CSS failed to change this (tried the whole pseudoclass selector with content attribute with no avail, although that worked beautifully with the logo). Being an html element, is there any way to change this?

8 Replies

Reply to Thread
2
Sean Middlemore Replied
Hi Erik,
 
If this is the title in the header, I did it using this css:
 
div#PageHeader{
    background-image: url('/email-header.png');
    background-repeat: no-repeat;
    margin: 10px 0 10px 55px;
    }

div#PageHeader h1{
    display: none;
    }
This will replace the text with a background image. Just place the image in the MRS folder on your server and it should be good to go. This will be system wide however!
 
Sean
0
Erik White Replied
Thanks for the reply, however this is for the title in the browser tab along with the favicon
0
Erik White Replied
discovered solution. Thanks 
0
Sean Middlemore Replied
Hi Erik,

Could you let us know how you did it for anyone else who might need to know? :)

Sean
0
Erik White Replied
went through a couple JS files in the MRS (root, init, iframe, and resize) and at the very bottom put "document.title = 'my title';

very simple fix, i realized that the title was being dynamically assigned by javascript based upon the state of the program (which page you were on), and because i spent atleast 3 hours in vain searching for some hardcoded definition of a title I decided to just overwrite the javascript by inputting that command at the bottom of the file. It had to be a few files because for some of the pages/iframes it was resetting back to the original title.

this solution also means there is no dynamic title change as user navigates. We chose not to care.
0
Mark Davis Replied
For SmarterMail 16, I discovered that going to the mrs\interface\app\authentication folder and simply adding a single line to the bottom of the "login.html" worked for me.
<script language="JavaScript">document.title='Bytes For Less Email Services';</script>
This only modifies page title for login page (which is good for google indexing) and keeps the dynamic titles for the rest of the app.
0
Joe Joe Replied
Hi,

may i ask which files do you mean about "went through a couple JS files in the MRS (root, init, iframe, and resize) and at the very bottom put "document.title = 'my title';" ?

thanks alot.
0
Andrew Soncha Jr. Replied
Easier and more global for 16: modify MRS/Interface/output/site.js    Search for the string pageTitle?t.pageTitle: in the minified JS and change the string that follows in quotes.  The default is set to "SmarterMail 16.x" so change that string to "My Awesome Email Name" of your choice.  This changes for login, and super admin pages.  Do the same for modify MRS/Interface/output/meeting-workspace.js and setup-wizard.js    That should replace any instance of where "SmarterMail 16.x" is displayed in the browser tab.
 
When users login, their email is in the tab.  Note that these files will be overwritten with any updates and the changes will have to be reapplied.  Same goes for overwriting the generic favicon.
 
Ultimately, these should be fields for SuperAdmin to fill in as configurable values.

Reply to Thread