Not logged in. · Lost password · Register
Forum: General Help and Support Templates and Layout RSS
Editing bootstrap3 template to allow larger logos
Avatar
tsom #1
Member since Nov 2012 · 47 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.

[Image: https://user-images.githubusercontent.com/4688030/69014661-892d4580-0984-11ea-965d-1045d49f58de.png]

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

tpl_link(
                    $home_link,
                    '<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: https://github.com/giterlizzi/dokuwiki-template-bootstrap3
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
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-12-06, 10:16:06 (UTC +01:00)