WebsiteBaker Community Forum (upd)

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: cmiper on January 11, 2006, 07:42:28 PM

Title: Greytut
Post by: cmiper on January 11, 2006, 07:42:28 PM
A simple template I've worked on over the past few days.

The logo banner was changed for this public template, the original logo was one more specific to original site I had designed it for.

The print CSS was adjusted to show/print only the content, properly formatted to printable pages.

Tested in both IE6 and FF1.5 with no known issues.

Demo found here (http://cmptech.net/wbtest/).

Download found here (http://cmptech.net/greytut.zip).

Comments are welcomed, both good and bad.  :-D

Title: Re: Greytut
Post by: pcwacht on January 11, 2006, 10:42:39 PM
Good template.

Title: Re: Greytut
Post by: i2Paq on January 11, 2006, 11:37:31 PM
Nice!
Title: Re: Greytut template: page headings missing?
Post by: seanie_morris on February 08, 2012, 04:00:35 PM
Just wanted to chip in and say that this is a nice template, easy to manipulate and cleanly coded (thanks cmiper!).

One question though: on my site(s) there are no page headings showing? What am I missing?


Thanks,

Seanie.
Title: Re: Greytut
Post by: dbs on February 08, 2012, 04:08:35 PM
Hi, have a look:
http://www.websitebaker2.org/en/help/designer-guide/adding-template-functions.php (http://www.websitebaker2.org/en/help/designer-guide/adding-template-functions.php)
Title: Re: Greytut
Post by: seanie_morris on February 08, 2012, 05:51:39 PM
Thanks or the reply. You'd think what I am looking for is under 'Main and News Content', but it's not. Other templates automatically add the page heading as seen under the Pages tab in the admin menu. With greytut, the headings do not appear automatically. That's what I am looking for...

Seanie.
Title: Re: Greytut
Post by: kweitzel on February 08, 2012, 06:26:33 PM
Please, if sombody gives you the link already use it and read it. Here http://www.websitebaker2.org/en/help/designer-guide/adding-template-functions.php#anker2 it is explained, what needs to be in the template to automatically pull the meta tags from what you enter in the admin backend.

cheers

Klaus
Title: Re: Greytut
Post by: seanie_morris on February 08, 2012, 06:46:00 PM
I think Klaus you're mixing something up: I am not looking for the website header or the page title, I am looking for the individual page heading(s) to automatically display on their specific page. Create a new page and often the menu title and page title are the same BUT page title is the main heading (<h?></h?>) on that page.

Seanie
Title: Re: Greytut
Post by: kweitzel on February 08, 2012, 08:03:41 PM
Apologies, try this here: http://www.websitebaker2.org/en/help/designer-guide/adding-template-functions.php#anker5

Basically we have everything regarding basic template functions in there, you just need to be willing to read up.  :wink:

cheers

Klaus
Title: Re: Greytut
Post by: evaki on February 09, 2012, 01:22:02 AM
https://forum.WebsiteBaker.org/index.php/topic,23345.msg
Title: Re: Greytut
Post by: seanie_morris on February 09, 2012, 11:44:08 AM
That's the one Klaus, thanks.

Solution:
Under the 'Website Header' section of the aforementioned Help page linked above, insert:
<!-- header -->
    <div id="banner">
        <h1><?php echo WEBSITE_HEADER?></h1>
    </div>

into your index.php file immediately before the snippet:
<?php page_content(); ?>
and replaing: <?php echo WEBSITE_HEADER?> in the newly pasted snippet with:<?php echo PAGE_TITLE?>
instead.

Fixed!

Thanks,

Seanie.