You are not logged in.

Announcement

Forum database was corrupt and an old backup was restored as temporary replacement. Registrations closed until the database is recovered. Please ask questions using the Contact form

#1 25-03-2014 23:21:51

vijfwinkel
Contributors
Registered: 09-05-2013
Posts: 96

how to put a picture in the header

hello

i found this thread on putting a picture in the header

http://metro-webdesign.info/forum/viewtopic.php?id=57

i have a question about the second part of the solution

"And header.php is like this

<div id="header">
	<div id = "logo">
		<img style = "width:60px;height:60px;" src="file_name.png">
	</div>
	<div id="headerTitles">
as usual...

"

in what php file do i place this code?

thanx
hans


better a dumb question than no question at all.
maybe there are no dumb questions, only dumb answers

Offline

#2 25-03-2014 23:33:09

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: how to put a picture in the header

That was for v3, doesn't work in v4 anymore.

Instead, try this:

edit index.php, find:

<h1><a href="<?php if($bot){echo "index.php";}?>#!"><?php echo $siteName?></a></h1>

replace with:

<div id="headerLogo"><a href="<?php if($bot){echo "index.php";}?>#!"><img src="path/to/image.jpg"></a></div>

Put this in your themes/YOURTHEME/theme.css:

#headerLogo {
	margin-top: 10px;
	margin-right: 100px;
}

Offline

#3 26-03-2014 20:10:12

vijfwinkel
Contributors
Registered: 09-05-2013
Posts: 96

Re: how to put a picture in the header

thanx!
it works great!


better a dumb question than no question at all.
maybe there are no dumb questions, only dumb answers

Offline

Board footer

Powered by FluxBB