Loading...
 
Skip to main content

Themes


Changing hyperlink colour in Andreas 09 and other questions

Hi

I am using the andreas 09 theme on my tiki site.

I have some questions.

1. How do I change the hyperlink colour for links in the wikis from black to the more usual blue?
2. I want to turn off left modules in some sections but it is giving me display problems in internet explorer 5 & 6. The main content block is spilling over into the right module column. I see that there are IE.css files included in the theme. Do these get activated ny default or do I need to activate them someway and if so how? If not are there other ways of solving this problem.
3. I am using php layers menu for a top menu line benaeath the title bar. However in Internet Explorer 5 this menu line does not display properly. Is there anything I can do about this?
4. Finally I would like to use some other CSS files available from the Opens source Web design site http://www.oswd.org/Question. How much work would it take to make these work on tiki? (I am a very literate computer applications user but new to CSS and to Smarty and only rudimentary html knowledge.)

If you would like to look at the site it can be found on www.erratum.org.uk but bear in mind this is a relatively new site so it is inly just bginning to get populated.

TIA
Greg

> 1. How do I change the hyperlink colour for links in the wikis from black to the more usual blue?

You have to edit the theme's stylesheet — styles/andreas09.css. Find the anchor selector (a) and give it the color you like, or delete the current color property and the browser default will be used. Keep in mind that there are other link specifications in the stylesheet for particular locations in the page, such as the PHP Layers menus, and these aren't affected by any change in the default a specification; they'll have to be changed individually, or not, as you want. (It'd probably be good to check out an intro to CSS if necessary.)

> 2. I want to turn off left modules in some sections but it is giving me display problems in internet explorer 5 & 6. The main content block is spilling over into the right module column. I see that there are IE.css files included in the theme. Do these get activated ny default or do I need to activate them someway and if so how? If not are there other ways of solving this problem.

The ie.css and ie7.css files are used automatically. There's a "conditional comment" in the header that loads them. (IE browsers read the comment and obey.)

Are you using the column-display controls on Tiki's Admin Features page? This is the most foolproof way to turn them on and off. If the left column is off, the center will expand to fill that space.

Column display in this theme, like other Tiki themes that use Luci's *litecssQuestion layout method, is kind of tricky. To get a no-tables, liquid layout that works in all browsers and can handle wide content in the center column properly, etc., some rather sensitive floating methods are needed. Luci (a Tiki developer and project admin) did a great job figuring this out. I looked at lots of three-column liquid-layout schemes and didn't find any others that would work with Tiki's dynamically loaded variable width center and so on.

But this type of layout is kind of like a mobile hung up for decoration: if one part is changed, the whole thing can go out of balance. In my testing, the left and right columns could be turned off and the remaining column(s) would display properly in all the browsers, in the theme as it is. Did you do some editing already or did your site have trouble with column display at the outset?

Oh, I just noticed you said IE5. I don't have that old browser to test with. Is there any reason why a person with IE5 can't/wouldn't update to IE6?

> 3. I am using php layers menu for a top menu line benaeath the title bar. However in Internet Explorer 5 this menu line does not display properly. Is there anything I can do about this?

Well, update the browser is my recommendation, sorry. 😉

> 4. Finally I would like to use some other CSS files available from the Opens source Web design site http://www.oswd.org/Question. How much work would it take to make these work on tiki? (I am a very literate computer applications user but new to CSS and to Smarty and only rudimentary html knowledge.)

That's a good source of designs for Tiki, but it isn't a matter of making them work on Tiki so much as translating the design ideas from the simple HTML page of an OSWD example to the construction method used by Tiki. In other words, the basic HTML elements — a, ul, ol, h1, h2, etc. — can be just copied across to the new theme stylesheet. Beyond that, though, the specifier names are generally different, so you have to look at the OSWD theme and see what in the Tiki theme corresponds to, say, the left column or the wiki text div or the side-column boxes and their titles. For this, Firefox and the Firebug add-on are great tools, as this lets you see the CSS selectors in a kind of onionskin over the web page.

If you're OK with using the default Tiki templates, then the job is fairly straightforward because there's a set of CSS selectors already in place in templates that are pretty rugged. If you want to maintain the level of "semantic correctness" the OSWD contributors like, then applying their designs to the default Tiki made-with-tables is sort of a step backwards, which is why I use *litecss when possible. (I can't get it to work with designs that have side margins, though, as the center column overlaps the right in IE7, which doesn't support the "display:table" property.)

> If you would like to look at the site it can be found on www.erratum.org.uk but bear in mind this is a relatively new site so it is inly just bginning to get populated.

Nice so far, but I think the empty left column space can be corrected by using the Andreas09 theme as it is and just switching off the left column in Tiki's admin page.

-- Gary

Thanks for this helpful reply.

I tried editing the andreas09.css but there was no "a link colour" specified so I added one. This did give me colours on my links in my side modules (not what I wanted to do)but not in the central column wiki which stayed a charcoal grey colour. I tried a few other combinations but to no avail.
I was adding the following text
a:link {
color: #0000FF;
font-weight: bold;
text-decoration: none;
}

to the "a" section.

In relation to the turning off left modules. I only wanted to do this on some sections but not others so I had ticked the section tickbox in the Admin Features page which lets me set columns by sections. The only other editing I did was to put in my site logo and turn on phplayers.

There is no good reason why people are using IE 5 and I will certainly advise them to upgrade but there have already been one or two people who have visited the site with this browser so I was just wanting to make sure that it was as compatible as possible.

> > 1. How do I change the hyperlink colour for links in the wikis from black to the more usual blue?
>
> You have to edit the theme's stylesheet — styles/andreas09.css. Find the anchor selector (a) and give it the color you like, or delete the current color property and the browser default will be used. Keep in mind that there are other link specifications in the stylesheet for particular locations in the page, such as the PHP Layers menus, and these aren't affected by any change in the default a specification; they'll have to be changed individually, or not, as you want. (It'd probably be good to check out an intro to CSS if necessary.)
>
> > 2. I want to turn off left modules in some sections but it is giving me display problems in internet explorer 5 & 6. The main content block is spilling over into the right module column. I see that there are IE.css files included in the theme. Do these get activated ny default or do I need to activate them someway and if so how? If not are there other ways of solving this problem.
>
> The ie.css and ie7.css files are used automatically. There's a "conditional comment" in the header that loads them. (IE browsers read the comment and obey.)
>
> Are you using the column-display controls on Tiki's Admin Features page? This is the most foolproof way to turn them on and off. If the left column is off, the center will expand to fill that space.
>
> Column display in this theme, like other Tiki themes that use Luci's *litecssQuestion layout method, is kind of tricky. To get a no-tables, liquid layout that works in all browsers and can handle wide content in the center column properly, etc., some rather sensitive floating methods are needed. Luci (a Tiki developer and project admin) did a great job figuring this out. I looked at lots of three-column liquid-layout schemes and didn't find any others that would work with Tiki's dynamically loaded variable width center and so on.
>
> But this type of layout is kind of like a mobile hung up for decoration: if one part is changed, the whole thing can go out of balance. In my testing, the left and right columns could be turned off and the remaining column(s) would display properly in all the browsers, in the theme as it is. Did you do some editing already or did your site have trouble with column display at the outset?
>
> Oh, I just noticed you said IE5. I don't have that old browser to test with. Is there any reason why a person with IE5 can't/wouldn't update to IE6?
>
> > 3. I am using php layers menu for a top menu line benaeath the title bar. However in Internet Explorer 5 this menu line does not display properly. Is there anything I can do about this?
>
> Well, update the browser is my recommendation, sorry. 😉
>
> > 4. Finally I would like to use some other CSS files available from the Opens source Web design site http://www.oswd.org/Question. How much work would it take to make these work on tiki? (I am a very literate computer applications user but new to CSS and to Smarty and only rudimentary html knowledge.)
>
> That's a good source of designs for Tiki, but it isn't a matter of making them work on Tiki so much as translating the design ideas from the simple HTML page of an OSWD example to the construction method used by Tiki. In other words, the basic HTML elements — a, ul, ol, h1, h2, etc. — can be just copied across to the new theme stylesheet. Beyond that, though, the specifier names are generally different, so you have to look at the OSWD theme and see what in the Tiki theme corresponds to, say, the left column or the wiki text div or the side-column boxes and their titles. For this, Firefox and the Firebug add-on are great tools, as this lets you see the CSS selectors in a kind of onionskin over the web page.
>
> If you're OK with using the default Tiki templates, then the job is fairly straightforward because there's a set of CSS selectors already in place in templates that are pretty rugged. If you want to maintain the level of "semantic correctness" the OSWD contributors like, then applying their designs to the default Tiki made-with-tables is sort of a step backwards, which is why I use *litecss when possible. (I can't get it to work with designs that have side margins, though, as the center column overlaps the right in IE7, which doesn't support the "display:table" property.)
>
> > If you would like to look at the site it can be found on www.erratum.org.uk but bear in mind this is a relatively new site so it is inly just bginning to get populated.
>
> Nice so far, but I think the empty left column space can be corrected by using the Andreas09 theme as it is and just switching off the left column in Tiki's admin page.
>
> — Gary

> Thanks for this helpful reply.
>
> I tried editing the andreas09.css but there was no "a link colour" specified so I added one. This did give me colours on my links in my side modules (not what I wanted to do)but not in the central column wiki which stayed a charcoal grey colour. I tried a few other combinations but to no avail.
> I was adding the following text
> a:link {
> color: #0000FF;
> font-weight: bold;
> text-decoration: none;
> }
>
> to the "a" section.

Well, "a" is a short form of "a:link"; often ":link" isn't written explicitly. But this is the global default for the theme. Tiki themes generally have many specific link styles for the different page areas, etc., but in Andreas09 there's no special style for the wiki pages. You can add a selector like this:
a.wiki:link {
     color:  #0000FF;
     font-weight: bold;
     text-decoration: none;
}


> In relation to the turning off left modules. I only wanted to do this on some sections but not others so I had ticked the section tickbox in the Admin Features page which lets me set columns by sections. The only other editing I did was to put in my site logo and turn on phplayers.

Hmm, I wonder what's happening there. Here's a link to a screenshotQuestion of Zukakakina.com using the Andreas09 theme and the left column turned off. As you can see, the center column expands to the left. This is the expected behavior. Looking at the source view of your page, I can see that the "< div class="col2" > < /div >" tags are still there, causing the white space. Normally, when the left column is switched off on the Tiki Admin Features page, a conditional statement in the template causes these to not display.

-- Gary