A place for the Foliage theme

JohannK - January 25, 2008 - 16:02

I have recently taken over the maintenance of the Foliage theme. Support requests, bug reports and feature requests can of course be posted on the issues page at any time.

But this forum post can be a place to share thoughts and experiences or to discuss the theme in general. Another idea could be a showcase if you want other users let to know how you integrated Foliage into your own website.

Noob questions on Foliage theme

Thomasr976 - February 2, 2008 - 02:00

I am so glad that this theme is available and will be using it on my business site. Thanks very much for creating it and porting it to version 6.0 also. Have a couple of questions though that were not answered on the previous foliage theme discussion on http://drupal.org/node/85762.

1) I heard that tableless stylesheets are the way to go. What does foliage use in version 5 and 6?

2) I am going to be modifying the foliage theme for use in a version 5 Drupal install. Should I create a subtheme of it.

3) Are there any steps that I should take to make for an easy transition from Foliage version 5 to version 6?

4) Would like to give credit where credit is deserved. Can u provide code of a link to your organization?

Thanks in advance. All comments welcomed.

Tom,

JohannK - February 4, 2008 - 12:40

Tom,

thank you for your nice comment about the theme :)
Here come some answers:

1) The original Foliage theme for Drupal 5 has been created by netbjarne. He based his theme on Drupal's core Bluemarine by implementing a very nice design.
Some time ago I took over the maintenance for Foliage and ported it to Drupal 6. I modified the XHTML and CSS and made the theme tableless by keeping the same look and feel that Foliage for Drupal 5 has.
This means: Foliage for Drupal 5 is built with tables while Foliage for Drupal 6 is tableless. Maybe I should make another release for version 5 by using the XHTML/CSS code from version 6?

2) You can copy the theme folder, rename it and upload it to your /sites/all/themes directory. This way you can keep the original theme and modify the copy.

3) If you want to upgrade the theme for Drupal 6 some additional steps are required.
You can either upgrade your modification following those steps or install Foliage's Drupal 6 version and then port your modifications from #5 to #6.

4) Your offer to give credits is appreciated :) Foliage for Drupal 5 has been designed and developed by netbjarne and so all credits for this version belong to him.
For the Drupal 6 version you can split the credits if you want in the way: design by netbjarne - upgrade for Drupal 6 sponsered by csswebsite.net (like you can read in the Drupal 6 README.txt).

I hope that my answers have been helpful.

Very helpful

Thomasr976 - February 4, 2008 - 21:30

Really clarified things. Now I have to get to work.

Adjusting foliage theme

oscarrg78 - February 3, 2008 - 22:15

JohannK:

I am a baby on this, but I am using the foliage theme for a community website.

http://www.ageap-usa.org/

My question is how the coloring works in the style file (three digits?). We would like to give it a greener feeling to the fonts and module boxes. Any suggestions for that?

I am using Drupal 5.7.

We appreciate your help with this,

Oscar

=-=

VeryMisunderstood - February 3, 2008 - 22:23

use the firefox browser with the firebug addon to help you figure out what css is being called where.

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

RE: Adjusting foliage theme

wolfflow - February 3, 2008 - 23:38

Hi, as I know so far you can use 6 digit colour definition as well in all style.css.
I did test foliage Theme and it works!

Cheers

Thanks for your comment

JohannK - February 4, 2008 - 13:09

Oscar,

thanks for your comment.

I agree with VeryMisunderstood: Firebug is very helpful when you work with CSS files and it's an absolutely necessary tool for people that work professionally with XHTML/CSS.

For the start you might want to experiment with the following settings in style.css. Modifying those colors will quickly change the look of your website:

- the headers: h1, h2 and h3
- the link color: a:link, a:visited, a:hover
- the block background color: .block
- the block headers: .block .title
(the bold parts refer to the definitions as you find them in style.css)

I hope that my answers are helpful. Have a lot of fun with Foliage :)

Johann

Thanks Johann, and all,

oscarrg78 - February 5, 2008 - 02:25

Thanks Johann, and all, good tips...

See you around,

Oscar

New Drupal 5 version available.

JohannK - February 4, 2008 - 21:36

Thanks to all for your interest in the Foliage theme.

I have modified the Drupal 5 version and it is now tableless like the Drupal 6 version.
Both theme versions have exactly the same XHTML/CSS code.

Johann

Great theme

dorien - February 27, 2008 - 15:53

I must say, I absolutely love your theme!

I do experience a problem in Firefox 2, when I view the new version 5. The problem is that the middle column overlaps with the right. It can be fixed by switching to a smaller font size. You wouldn't happen to have a quit solution?
Thanks,

btw: rawvegandating.com is where I use the theme, in the find match section you can view the bug

Thank You Very Much ...

wolfflow - August 1, 2008 - 06:01

as a newby I have played around with Drupal almost from vers.4.6
and never did I come Through with others Themes, of course
the Drupal versions up 5.x did a lot of improvements for the NEWBY Folk's.

This Theme is compact, easy to custom and the first one that
give me the opportunity to get my first commission for a Drupal made Site.

Thanks a lot

Thank again
Cheers

_________________________________________

3 basic questions

lindan - February 9, 2008 - 18:49

Hello,

I am a new into Drupal world, with very little knowledge of web programming.
I found Foliage Theme really nice, easly adaptable and suitable for different and various sites, thanks to the developers! I have been using Foliage to design a web site for a small company, and I am here to ask some tips to solve small issues:

1. How can I put a different name on the top of the tab/page? Now it appears as
homepage --> "Drupal Italia"
page 1 --> "expertise | Drupal Italia"
... and so forth for the following pages... "activities&projets | Drupal Italia"

2. I would use a html image in a node of the web site. This image will contain some links to other pages (let's say a graphical menu). What kind of image shall I use? How should I put it in the pages?

3. Is there any module to change the header of the web site with respect to the different pages (nodes)?

Thank you in advance.

Linda

Dear Linda

wolfflow - February 10, 2008 - 03:40

Hello Linda,

First I would advice you to go to Drupal Handbooks
there you will find everything you need to amplify your Drupal and of course your WEB Programming knowledge.

If you are searching for more details on THEME you may visit Forum for Themes
and also use google and made search like type your searched word (per example theme) then add a space
and then add site:drupal.org so you will come easily to any answer you need.

Pay attention of the Drupal version you use.

For changing the title of your Site go to:

adminmenu -> administer -> site configuration -> site information

Cheers

Back to Drupal as Newby Second Level. There is nothing better then Drupal.
First Production Site e-kontakt

Thank you very much for your

lindan - February 21, 2008 - 14:38

Thank you very much for your help and these information
Linda

You are welcome ...

wolfflow - August 1, 2008 - 06:01

Dear Linda,

Thought I'm not a professional expert to Drupal, I can really try to help Newby from the beginner point of view.
I know Drupal now about 2 Years but did not have time to go really deep in all aspects, but did a lot of installation testing, on local server environments so as on some hosting server. So feel free to ask me, as I really enjoy to be
a helping reference here and gain more technical knowledge.

Cheers

changing the outer background

microsite - February 25, 2008 - 08:26

i am very new to CSS and HTML. Can anyone tell how to change the outer background of this theme?
i want to put a background picture on it, instead of the current colour #EEEEE

i used firebug to check the CSS but it leads to a CSS file on my "files" folder.

Thank you

changing the outer backround ....

wolfflow - February 26, 2008 - 10:02

Hallo,
as you say , "i am very are new to CSS and HTML..." , there are many ways to change colour or add a picture to the backround of your used Theme. If you have a local server installed Webserver , i suggest you to try firts with the CSS files that are supplayed with your used Theme
in the THEME folder of your Drupal installation. Please make a copy of your used THEME folder before and give it a different name (i.e my_theme).

Here you find some example about working with CSS files Friends Electric , but of course i could help you more in details if you precise your used Drupal Version and used Theme.

Cheers

Back to Drupal as Newby Second Level. There is nothing better then Drupal.
First Production Site Theme Developing Test Site

thnx

microsite - February 27, 2008 - 04:54

Damn.. as i said i am very new to this.

But i've figured it out, i deleted the CSS files in my "Files" folder and now all the styles in my theme CSS file works.

i guess i just had to delete the "cache".

How to change menu width?

bergco - March 15, 2008 - 20:28

Hi there! I've used Foliage for my website (still local) and thanks to the forums I've made quite some changes. I'm really glad I found this theme, because it was closest to what I wanted. Something that I can't figure out is how to change the width of the menu that I've put on the left side. I put in a 'width' somewhere in the style.css, but then the menu overlayed the content. Can someone help me? Thanks!

Menu width change ...

wolfflow - March 15, 2008 - 23:03

Hi,
I just read your request and suddenly have this Theme installed on my local. I can't go in the details yet but
i give you some info where you have to look at.

The styles.css have some item that influence the overall layout of the Menu.
You have to modify (i suppose i did not test yet) following fields values:

#pageWrap
#content
#leftCol
#rightCol
#leftCol .inside
#rightCol .inside

Of course because the menu is in a Block maybe you have to work there too.
It depends also for what a Drupal Version you use this Theme too.(D5.x or D6.x)

Cheers

There is nothing better then Drupal. Please contribute
Drupal Themes Developing

Looked in style.css

Thomasr976 - March 15, 2008 - 23:16

and nothing jumped out at me so that is why I resorted to the forums. The install.txt said that it could be done. I guess I can use Firebug again and see if I can find something. Thanks for responding.

Hi Thomas, I have take a

wolfflow - March 15, 2008 - 23:35

Hi Thomas,
I have take a look at your url, if you plan to move your Site to Drupal would be interesting to help you out.
You may have a test platform on my site for your Foliage Theme, let me know. Free of course, it will be for
me a good experience. Let me know, See You

There is nothing better then Drupal. Please contribute
Drupal Themes Developing

I already moved it, but

Thomasr976 - March 16, 2008 - 02:05

I appreciate your offer.

I had numerous problems because I used TinyMCE and did not pay attention to relative urls. Tinymce was setting everything to absolute urls so when I moved to my host's server all my images and and external urls were a mess. Luckily, I had set relative urls on all of my nodes (about 140 of them). Ended up using some pretty cool SQL queries such as Update and Replace to stratighten things out. Will write this up since I think it would benefit newbies. Regards.

I already moved ...

wolfflow - June 9, 2008 - 23:25

Wow, Yes I uderstand what you mean. It happen past that I had same or similar Trouble with TinyMCE, as i wanted too be confortable with dealing with text and image insertion. Well with the time I get used to avoid using it and learned to tip on my keyboard more but confident that the code i enter is under my control. Anyway I tested for a while xstandard that is very good but you have to install it on your client first. The Pro version is valuable to buy because is really good.
Cheers

There is nothing better then Drupal. Please contribute
Advanced Drupal CSS Site (Still in development)

Found out...

bergco - March 25, 2008 - 22:51

I did it somehow by changing values in the styles.css, where you see 18 here:

body.left #outerColumn {
border-left: 18em solid #fff;
}
#leftCol {
float: left;
margin-left: -18em;
width: 18em;
}

This makes the left side taller. Same works for the right side.

Hi - great theme Can you

drupalfool - March 18, 2008 - 13:43

Hi - great theme

Can you tell me how you managed to get the menus to collapse and turn off in the demo website header when they are clicked? Thanks

Collapsed menus

JohannK - April 1, 2008 - 11:21

I think that you refer to the links "No right column", "No left column" and "No left and right columns" in the primary menu.

This depends on how you organize the display of the blocks in the backend.
The columns disappear if you don't assign blocks to the left and/or right sidebars. There's nothing to change in the theme files.

Foliage uses Drupal's $body_classes variable that displays CSS class names dynamically dependent on various situations. Two of those class names are "sidebar-left" and "sidebar-right". And the settings in style.css depend on those class names.

Round corner?

nikitac - March 20, 2008 - 17:25

I like this theme but I wonder if there is anyway to add round corner to each block? There is a round corner module and doest work with 6.1.

Thanks!

Rounded corners

JohannK - April 1, 2008 - 11:38

There are different approaches:

If you want to add rounded corners around the layout you can replace Foliage's default header.jpg and footer.jpg with images that have rounded corners for example.

The blocks have no background images in the Foliage theme. You might want to create some but then you must also modify the CSS settings.

You can try scripts like Nifty Corners without a contributed module or to use the module that you mentioned in your post.

Menu with primary and secundarie links

drseusz - March 24, 2008 - 14:21

First of all ... thank you for a very nice theme.

And a question. How can I make a menu on top of the site with primary links, and secundary links dependent on the primary links? In the stylesheet I see there's a navlist and a subnavlist. This is exactly what I would like to use, but I can't get it done.

I use foliage 6.x.1.3 on Drupal 6.1.

=-=

VeryMisunderstood - April 1, 2008 - 13:52

you have settings for these in your admin UI.

goto administer -> menus -> settings tabs

adjust the dropdowns accordingly.

If you have done this and are still having trouble, please further explain how you have the drops downs set.

a_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

My settings in Home »

drseusz - April 3, 2008 - 19:31

My settings in Home » Administer » Site building:

Menu containing primary links: Primary links
Menu containing secondary links: Primary links

"If you select the same menu as primary links then secondary links will display the appropriate second level of your navigation hierarchy."

For me this doesn't work.

In the block menu the primary and secondary links are shown (this works).
But in the upper menu (placed over the headerpicture) only the primary links are shown.

How to restore the 3-column format?

labourstart - April 17, 2008 - 10:11

I was going crazy using the Garland/Minnelli there, trying to put a background image into the masthead, when I discovered Foliage. Here it was dead easy to do, and I the love the result.

The problem is, my 3-column format has disappeared -- all that the theme is showing is the main content column, not the login, nothing else.

I realize that I played around a LOT with Garland/Minnelli and perhaps I broke something in doing so -- but I think I was only playing with the styles.css in that specific directory.

Any ideas on how to fix this? Thanks.

Eric

Web design and internet consulting for the trade union movement:
http://www.ericlee.info

Eric,

JohannK - April 18, 2008 - 09:26

Hi Eric,

the theme was coded to adjust the width of the content column dependent on the appearance of blocks inside the left and right sidebars. This means that the left and/or right sidebars are automatically showing up when you add blocks into the left and/or right sidebars in the Drupal backend.

If this does not happen I can only assume that you modified the theme files in some way. It will be helpful if you can show me the URL of your Foliage installation.

Problem solved

labourstart - April 22, 2008 - 14:55

Entirely my fault -- and due to the fact that I'm building several different Drupal sites for different clients, some on version 6.x and some on earlier versions.

This was a version 5.x Drupal site and I was trying to install the version 6.x Foliage them. Now that I've downloaded the correct version of the theme, it's all working fine.

Thanks -- and sorry for taking up your time.

layout problem in .block .content?

orux - May 2, 2008 - 01:38

First, thank you for this theme. It's great.

I had a problem only with Internet Explorer 6.
With adsense 200x200 code in a block, the column went down!

Then i solved the problem:

.block .content, .box .content
{
padding: 2px 3px;
}

"3px" was "4px"

it's really a little problem (only for me and my IE6?)

change block menu item style

ewm7712 - June 9, 2008 - 23:01

Hello,

I'm trying to change the style of menu items within a block but do not see any reference to "leaf" or menu styling in style.css. Any help would be appreciated.

Hi ewm7712,

wolfflow - August 1, 2008 - 06:02

Hi ewm7712,

If i have understand right you want to make direct change in your Theme in the styles.css file.
Ok if you use FireFox or Safari you can use the great tools Firebug(Firefox) and Develop Menu(Safari 3).
Of course you may have surely make first a copy of the default theme Foliage in the /sites/all/theme Folder and give
it a new name and activate in the admin --> Theme . When you analise the .css files with the mentioned tools
you will see all css setting with the path to the relative used .css file. It sound all a bit complex but it's not
please feel free to feedback.

So at this point , of course it depends on what version of Drupal you are using, you will have an overview of all
.css setting the Theme is using. But some of them listed in Firebug or Develop Menu are default settings, this means
that thea where called by the respective modules .css files.

So to overwrite this settings you may just copy the part of settings you want to change in your custom styles.css file
and see what you want to change. Be aware that if an item is existent in your styles.css the first one will be applyed
and the second will be ignored.

Cheers

Foliage theme and AdSense Module

phenazepam - June 18, 2008 - 22:42

Hi everyone,

Was wondering if Foliage theme is compatible with AdSense and Ad modules.

Thank you

I use the Adsense Module

Thomasr976 - June 19, 2008 - 03:25

and Adsense Injector module. Don't see why it wouldn't be with the Ad module or any other drupal module for that matter. Take a look at this site

horizontal menu in primary link

barbosa - July 2, 2008 - 16:20

Hi
Thank's for your job, it's a nice theme. But i am a newby in css.
I use the 6.x-1.3 version on Drupal 6.

Could you to tell me, how to display horizontaly my item in a primary link ?

Actually my item verticaly appear
°item1
°item2
°item3

And i want
°item1 °item2 °item3

Thank you in advance

The primary links are

JohannK - July 15, 2008 - 09:33

The primary links are actually displaying horizontally and not vertically. So I don't quite understand what you mean.

Take a look at the theme demo that is located at http://foliage.nr7.net. The links "Home", "No right column",... in the header are the primary links and they are ordered horizontally.

horizontal menu

svobodicz - August 5, 2008 - 14:09

I am interested in horizontal menu too. It appears to me as described above:
*item1
*item2
and I would need it to be like this: *item1 *item2
I guess it should be only CSS. But I would like to move block with primary links a bit higher. Now it is right next to left column. I wish I had above it.

I cannot compare it with http://foliage.nr7.net, this site is not found, my test site runs here: http://www2.prepeti.cz

I love this theme

adresaklumea - July 25, 2008 - 17:20

I love this theme this theme. I combined with some zen functions and it's a great framework. I still have to work on it but it's great.
I'm using it on Home decor and Haute fashion.
I some how broken the main menu active class but I'll figure it out ... eventually

I've broken 3 columns on IE6

flipip23 - July 30, 2008 - 11:37

Hi,

Great theme, it's been brilliant to base my site on. At some point however, I seem to have broken my 3 column layout on IE6. I've tried various changes in the CSS to no avail - I wondered if you had any suggestions?

The site is at http://www.masonstreetdojo.org.uk - on FF it's fine - on IE6 you'll see that the left and right columns are only being rendered after the centre column.

Thanks

Philip

Fixed!

flipip23 - July 30, 2008 - 13:36

IE doesn't like me setting the font-size to 87.5% for Body, so I've used html>body in the CSS so IE can't understand, and put an IF IE in the html to make sure it's 100%.

Thanks anyway!

Philip

Foliage_timber sub theme

Stanislav.cz - July 31, 2008 - 19:02

Hi,
I've created a new sub theme Foliage_timber. Basic Foliage functionality is retained. Main difference is in the foliage_timber.css which changes all above colours.
Brown is the theme's main colour. I've needed a theme for log-houses and timber so I've modified Foliage.
You can see demo pages on http://demo.stavimezedreva.cz and download the new sub theme on http://demo.stavimezedreva.cz/onas
If you have questions or problems contact me directly, please visit: http://drupal.org/user/271007

Stanislav

Really cool, well done, and

wolfflow - August 1, 2008 - 06:00

Really cool, well done, and thanks for sharing.
Cheers

Share your experience with the Open Source Community it's not only a choice but a Life Philosophy !!!
Some interesting A New Tutorial Site

Need some IE specific help

hg2008 - August 18, 2008 - 02:09

Hi,

Firstly, thanks for this great theme! I'm not a developer and yet I have been hack my way to a decent look and feel (in my opinion) for my site http://www.outdoordesi.com

I'm having display issues with IE6/7. It looks fine in FF. But in IE6/7, the below link does not display properly -

http://www.outdoordesi.com/category/countries-trip-report-entries/usa

In IE7, the left and right columns overflow the column width. In IE6, the left & right columns show up below the middle column. I tried to make IE specific changes (double margin error etc.) but nothing has worked. I read the comment above from Philip who seemed to have similar issues, but I'm not comfortable changing any .tpl files without knowing what I'm doing. Please could someone take a look and give me some pointers?

Another IE6 specific issue is that the search box in the header moves left all the way next to the site logo. It displays properly in IE7 and FF.

Please could someone take a look and give me some pointers?

thanks,
footy

It seems that you have made

JohannK - August 21, 2008 - 12:38

It seems that you have made heavy changes to Foliage's original CSS settings and so I can only guess what has happened.

1) About the columns:
Maybe some content inside the blocks is too wide. Try to disable one block after another. After disabling each single block refresh the browser and see if the page is displaying correctly.
You might find the reason for the problem this way.

2) About the search bar:
I saw that you have set the header-right div to "display: inline" and maybe this is the problem. But you have modified the theme so much that I can't find the problem within a few minutes.
I suggest that you insert the original CSS settings for the header part again and then make your own modifications once more.

Yes, I did make a lot of

hg2008 - August 25, 2008 - 16:41

Yes, I did make a lot of changes to the css (unfortunately, not all of them knowingly). Thanks for the guidance!

Background-image behind columns results in white spaces

bergco - August 24, 2008 - 20:23

I'm using Foliage in a three-column setup. I want to use a (repeated) background-image behind each column, but when one of the columns is longer than the others, I get white space at the bottom of these other columns instead of the background. I've inserted a background-tag in each css-tag in Foliage I could think of, but nothing works... Does anyone have a suggestion?

Solution for columns with background images

JohannK - August 25, 2008 - 12:10

All settings apply to style.css:

1. Set the right column background image (or background color) in #pageWrap.

2. The left column background image (or background color) goes into #outerColumn:

#outerColumn {
  background: url(images/my_background.gif);
}

But the other settings for #outerColumn must also be modified:

.two-sidebars #outerColumn {
  padding-left: 15em;
  margin-right: 15em;
}
.sidebar-right #outerColumn {
  margin-right: 15em;
}
.sidebar-left #outerColumn {
  padding-left: 15em;
}

3. The center column background image (or background color) goes into #innerColumn.
If you don't want a background image for the center column you must at least define a background color because otherwise the background that has been applied to #outerColumn will become visible.

4. Finally add this part somewhere into style.css:

#innerColumn:after {
  clear: both;
  content: ".";
  display: block;
  height: 0;
  visibility: hidden;
}
* html #innerColumn {
  height: 1%;
}

I have tested this code with Firefox, IE6 and IE 7 but it should also work in all other browsers.

 
 

Drupal is a registered trademark of Dries Buytaert.