Not logged in. · Lost password · Register
Forum: General Help and Support Templates and Layout RSS
Editing bootstrap3 template to allow larger logos
tsom #1
Member since Nov 2012 · 53 posts
Group memberships: Members
Show profile · Link to this post
Subject: Editing bootstrap3 template to allow larger logos
I've been trying to insert a 171px x 60px logo into the images/logo.png location. This is larger than the 32px allowance that seems to be embedded into the template. I tried to modify line 32 of navbar.php with:

$logo_size = 'height="60"';

but this doesn't seem to solve the issue, which is that the image is not centred on the top navbar.


I have tried to play with the tpl/navbar.php snippet

                    '<img src="'.$logo.'" alt="'.$title.'" class="pull-left'.(($tagline) ? ' dw-logo-tagline' : '').'" id="dw__logo" '.$logo_size.' />
                    <span id="dw__title" '.($tagline ? 'style="margin-top:-5px"': '').'>'. $title . $tagline .'</span>',
                    'accesskey="h" title="[H]" class="navbar-brand"'

but to be honest I do not understand what this section of code is doing.

Part of the difficulty is that the CSS uses LESS and I'm not very familiar with that structure. I've tried to use Inspect mode on my browser to track down the issue.

Could it be something like defining a float or absolute position for the image somehow?

The template code can be found at this Github link:
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-04-10, 09:00:29 (UTC +02:00)