Recent Topics

1 Apr 10, 2007 02:41    

My b2evolution Version: 1.9.x

I can't find this answer anywhere so sorry if I'm asking something that's already been asked.

I want the header of my blog (it's just text - no icon/banner or anything) to link to the main page of my site but haven't a clue how to do it. Can someone advise?

Thank you in advance.

2 Apr 10, 2007 14:34

Hallo!

You can change these things in the _main.php of your skin. Often the header section is under the first <body> tag.

e.g. in the "custom" skin:


<body>
<div id="wrapper">

<?php
	// --------------------------- BLOG LIST INCLUDED HERE -----------------------------
	require dirname(__FILE__).'/_bloglist.php';
	// ------------------------------- END OF BLOG LIST --------------------------------
?>

<div class="pageHeader">

<h1 id="pageTitle"><a href="<?php $Blog->disp( 'url', 'raw' ) ?>"><?php $Blog->disp( 'name', 'htmlbody' ) ?></a></h1>

<div class="pageSubtitle"><?php $Blog->disp( 'tagline', 'htmlbody' ) ?></div>

</div>

Below the <body> tag you see first the include of the bloglist and than the div section of the header. In this example, the PageTitle <?php $Blog->disp( 'name', 'htmlbody' ) ?> is alredy a hyperlink because of the <a href="<?php $Blog->disp( 'url', 'raw' ) ?>"> befor and </a> after the PageTitle. You could change the URL of the link by replacing the <?php $Blog->disp( 'url', 'raw' ) ?> with http://yourdomain.tld

So in this example the header section would look like this:


<div class="pageHeader">

<h1 id="pageTitle"><a href="http://yourdomain.tld"><?php $Blog->disp( 'name', 'htmlbody' ) ?></a></h1>

<div class="pageSubtitle"><?php $Blog->disp( 'tagline', 'htmlbody' ) ?></div>

</div>

nureac


Form is loading...