Not logged in. · Lost password · Register
Forum: General Help and Support Templates and Layout RSS
Adding an icon/logo in the upper part of the page
Ok, it is a newbie question
Avatar
francois_sabot #1
Member since May 2007 · 16 posts
Group memberships: Members
Show profile · Link to this post
Subject: Adding an icon/logo in the upper part of the page
Hi guys,
I love Doku. I am using this to create a scientific wiki about Transposable elements, which will be hosted by bioinformatics.org
To this purpose (and to thanks them for hosting), I have to include their logo in the pages. I would like to include it in the upperbar of my current template (sidebar), between the pagename and the wiki name. But as I am a complete newbie I cannot find how to do it :p
I have really basic knowledge in php, html, and not at all in css :s
Can someone help me ?

Thanks a lot
chi #2
Member since Jun 2006 · 1851 posts · Location: Munich Germany
Group memberships: Members, Super Mods, Wiki Managers
Show profile · Link to this post
Hi,

assuming that you`re using the default template and that the extension of the picture is .png and that the logo shouldn`t be clickable:

  - put the image into dokuwiki/lib/tpl/default/images/logo.png
  - edit dokuwiki/lib/tpl/default/layout.css
  - search for:

  1. div.dokuwiki .header {
  2.  padding: 3px 0 0 2px;
  3. }

  - and modify it like below:
  1. div.dokuwiki .header {
  2.  padding: 3px 0 0 2px;
  3.  background: __background__ url(images/logo.png) no-repeat top center;
  4.  height: 100px;
  5. }

You may have to play a bit with the height attribute to fit the height of your image.

--
chi
Please add [SOLVED] to the initial thread subject if you feel your question has been answered.
If my answer doesn't make sense maybe your question didn't either - just visit http://facepalm.org.
This post was edited on 2007-05-13, 18:27 by chi.
Avatar
francois_sabot #3
Member since May 2007 · 16 posts
Group memberships: Members
Show profile · Link to this post
Thanks a lot :D... And.. how can I make it clickable ?

EDIT: BTW on Sidebar template it does not appear :s
I'll go on the tpl website to check it out
This post was edited on 2007-05-12, 11:46 by francois_sabot.
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-08-21, 18:40:28 (UTC +02:00)