Different logo for each template?

Is it possible to insert logo to template files/setup, so that each template would have its own logo graphic? We plan to have both light and dark template so that user could choose one he likes better. That would mean logos should be different, one negative of another. Is it possible to (easily) override basic logo uploaded via settings>logo?

Quote · 1 May 2011

You can do this by using a custom _sub_header.html file in each of your template directories.

Standard code in /templates/base/_sub_header.html is below,  Replace the code in  red with your own image.

 

<div class="sys_main_logo">
<div class="sys_ml" style="width:__main_div_width__;">
<div class="sys_ml_wrapper">
<bx_injection:injection_logo_before />
__main_logo__
<bx_injection:injection_logo_after />
</div>
</div>

 

Afterwards, your code should look something ;like that shown below.  Then just upload the logo image to your templates image directory.

<div class="sys_main_logo">
<div class="sys_ml" style="width:__main_div_width__;">
<div class="sys_ml_wrapper">
<img src="templates/tmpl_SomeTemplateName/image/.logoDark.png" />
</div>
</div>

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 1 May 2011

Your templates may, or may not, already have a _sub_header.html file.  If they do not, just copy the one from the templates/base directory, then make the changes.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 1 May 2011

Got it thank you! Just replace bx_injection-lines in _sub_header.html-file in each templates folder.

Quote · 2 May 2011
<div class="sys_ml_wrapper">

<img src="templates/tmpl_SomeTemplateName/image/.logoDark.png" />
</div>

Thank you for the advice, I also profited. I added just a little thing:

<a href="<bx_url_root />"><img src="<bx_url_root />templates/tmpl_SomeTemplateName/images/logoDark.png" class="mainLogo" alt="logo" /></a>

Quote · 5 May 2011

One more thing: remove the line <bx_injection:injection_logo_after /> turns off the quote next to the logo. That is why I left this line.

Quote · 7 May 2011

Thank you, these will help a lot.

Quote · 9 May 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.