click for slideshow
Tiga1 is a simple three column theme that I did as a learning exercise in order to understand the WordPress theme system.
Writing a new WordPress theme from scratch is surprisingly not too difficult, given the excellent documentations.
Perhaps one day I’ll write a simple tutorial on how to do it if there’s enough demand.
To install:-
- Download tiga.zip (version 1.0.2).
- Unzip it to your local PC.
- Upload the ‘tiga’ directory to ‘wp-content/themes’ so that you have ‘wp-content/themes/tiga’.
- Go to the ‘wp-admin’ presentation page and select ‘Tiga’ as your active theme.
After a successful installation go to the ‘Presentation’ tab in the ‘Admin’ interface. You will see a new ‘Tigarator’ submenu there. If you click on this tab, a page with various configurable options can be seen.
If you need to configure the theme even further, you can edit ’style.php to add your changes.
Once you’re satisfied with your changes you can go to:-
http://your-wp-path/wp-content/themes/tiga/style.php
to retrieve the CSS file produces and save it in ’style.css’.
Important: Please do this from IE! This is because ‘style.php’ generates some extra codes for IE compatibility. So doing this from IE will ensure that this extra code is generated and your pages would look consistent in IE and also most modern browsers.
You can then switch to this stylesheet by selecting a checkbox in the admin page. You may also want to do this to produce a back up of your style changes.
Localisation
If you need to localized this theme you can use poEdit to translate the ‘default.pot’ to your language. Please do not ask me questions on how to use poEdit or WP localization, try the forums for that.
Some existing language files :-
- Chinese Simplified provided by How
- Czech provided by Josef Klimosz
- Dutch provided by Milly Rondèl
- Italian provided by Matteo Riso
- Malay provided by me
To use the above files, just download them and place it in the root of your ‘tiga’ directory.
Frequently Asked Questions
How do I enable gravatars?To enable gravatars2, download the plugin from here.
and follow the installation instructions on that page. You do not need to edit any files (unless you want to do something extra
) because the code to display the gravatars is already in ‘comments.php’.
If it is successful you will see little icons beside comments like you see below.
BTW, due to my lack of artistic talent, all commenters without gravatars defaults to something which looks like Ernie from Sesame Street. You can customise this by changing the image in ‘images/anon.jpg’
How do I add stuff to the right sidebar?Edit ‘sidebar.php’ and put the following code :-
<div class="right-widget-title">Put your widget title here</div><!-- This is optional -->
<div class="right-widget">
<!-- Put the code for your sidebar content below here! -->
</div> <!-- right-widget --> <!-- BTW, please don't forget this closing 'div'! -->
somewhere between the section that says :-
<!-- ########### Begin - Right Sidebar ############# -->
.
.
.
<!-- ########### End - Right Sidebar ############## -->
How do I add stuff to the left sidebar?
Same principle, but instead, replace right-widget-title with left-widget-title and so on.
Well you guys are pretty smart so I’ll leave the details as an excercise for the reader
.
Edit ‘header.php’ and append the following code to the very end of that file :-
<div class="center-widget-title">My Fantastic Widget Title</div><!-- This is optional -->
<div class="center-widget">
<!-- Put your "stuff" below here -->
</div> <!-- Again, please don't forget this closing 'div' -->
How do I add stuff to the bottom of every page?
Edit ‘footer.php’ and append the following code :-
<div class="center-widget-title">My Fantastic Widget Title</div><!-- This is optional -->
<div class="center-widget">
<!-- Put your "stuff" below here -->
</div> <!-- Please don't forget this closing 'div'!!! -->
to above the line which says :-
<?php wp_footer(); ?>
I’ve edited the theme and now it look a bit strange. Can you look at my html and tell me what’s wrong?
The divs are used to apply styles to HTML elements so an unterminated div would cause some visual wierdness (to use a technical term
) on different browsers depending on how they handle error conditions. Some can recover gracefully and hence the page looks good and some make bad guesses on where to terminate and hence makes it look bad.
BTW the tool I use is the the excellent firefox extension called ‘Web Developer’ which you can get it from here :-
http://chrispederick.com/work/webdeveloper/
Once installed, and firefox is restarted, you can see a new toolbar appear at the top of your browser. Under the ‘Tools’ button on the toolbar you can find many goodies to validate your webpage. I highly recommend this. Also there are tools to change the CSS style of any page on the fly which helps a lot when customising themes.
From my experience, most of the problems are due to external widgets. I personally need to correct a few to make them XHTML compliant (google ads are not one of those, I must say).
What are the CVS sub-directories for?The CVS subfolders are just artifacts of the version control software that I use and can be safely deleted.
Since it takes up very minimal space and distributing it with the folders itself makes my life easier when testing on my machine with various version of the releases in different subfolders, that’s why I decided it’s not worth the trouble of deleting it before distribution.
More info on CVS can be found here.
When I tried to install this theme I get the following error:-Warning: preg_grep(): Second argument to preg_grep() should be an array in .../themetoolkit.php on line 39. What am I doing wrong?
You didn’t do anything wrong. This is a bug in the WordPress Theme Toolkit I use to power the Tigarator. It occurs when you use this theme on a fresh install without any plugins activated. The simple workaround is to activate any plugin such as the ‘Hello Dolly’ plugin and it should work fine.
Hey Shamsul, I’m thankful for your work. You’re such a nice and helpful guy. Can I buy you lunch?
Sure, there’s a “Buy me lunch!” button on the right sidebar
Sneak Preview
I’m still improving this theme and if you’ve downloaded the stable version above but would like to have something like you see on this site, grab the development version.
This is actually just a dynamically generated snapshot of this website. Which means you’re getting exactly what is driving this site.
Installation is as per normal
.













[…] shamsulazhar.com A three column, center content theme, that was designed to work with FAlbum (a Flicker plugin). Crisp design, and nice way to work the flickr images in. 3 column flickr F Album photoblog WordPress // Used for showing and hiding user information in the comment form function ShowUtils() { document.getElementById(”authorinfo”).style.display = “”; document.getElementById(”showinfo”).style.display = “none”; document.getElementById(”hideinfo”).style.display = “”; } function HideUtils() { document.getElementById(”authorinfo”).style.display = “none”; document.getElementById(”showinfo”).style.display = “”; document.getElementById(”hideinfo”).style.display = “none”; } […]
[…] Tiga è un tema a tre colonne per WordPress, che usa il posizionamento assoluto per le colonne laterali. […]
Grazie mille WordPress Italy.
I’ve just uploaded version 0.3 which have the following fixes :-
[…] You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site. Leave aReply […]
[…] Added : Yeah, I dah jumpa! Tiga can be downloaded from here. « Christmas - Give where it matters most. || […]
Uploaded Version 0.4
Just corrected a few more bugs :-
Hello & thank you for such a wonderful template.
Found another bug: There is a div mismatch when the user is not logged in & views the “single.php” template. The “footer.php” template ends up inside of the “Leave a Reply” box.
I’m using WordPress (& your template) as a way to learn PHP… so I’m not sure of the best way to fix it. It looks like “comments.php” either needs another before the “else” or the center-thingy div start moved before the entire “if” statement.
Anyway, thanks for the clear layout & comments in the templates. It’s *almost* making sense!
Hi David,
Thanks for the bug report. However I can’t replicate the problem you’re reporting. FYI I’m using the W3C markup validation service to validate the pages produced. Here’s the URL :-
http://validator.w3.org/
If there’s any DIV’s mismatch this will definitely catch it.
Can you pass the URL which this problem occur.
TIA.
nice work!!!
Thanks Yvy.
Sure. Here’s a link to an individual entry: How to Enable your Objinfo.xml file
I think the difference is due in part to how the “user” options for writing are set.
BWT: Is there an *easy* way to make the footer span the entire width of the page & show up below all 3 columns?
Hi David,
Just wanted to thank you for a great, simple theme. I was wondering if there is a way to sort the Categories alphabetically?
Thanks Greg.
Yes, if you change the php code that displays the categories (in ’sidebar.php’) from
to
that should do it.
If you’re interested the full documentation is here.
[…] Tiga es un nuevo tema de 3 columnas para WordPress que recuerda mucho al Journalized de Mike Little. Pero Tiga me gusta más. [Vía Blogging Pro] wordpress, asides Enviar por email Estadísticas del post:Total: 1 | Hoy: 1 | Ultima lectura: 31.12.1969 - 16:00 Conversación No hay comentarios Aporta tu opinión Suscribete al feed de la conversación. Post Enviar artículo por email Haz trackback desde tu blog. Guardar en del.icio.us Artículos Relacionados […]
Mucho gracias la brujula verde
[…] Tiga,一个简洁的三栏式模版,我倒是很有兴趣想把它用在BPCN上。 by Scott | posted in WordPress Themes Trackback URL | Comment RSS Feed Tag at del.icio.us | Incoming links […]
Thanks for that last bit of code. That really helped me figure it out. I appreciate your commenting your work. Once, again, great job.
The last of my widgets for the right side of the sidebar.php gets pushed to the bottom of the page for some reason. Any suggestions how I could fix that?
Sorry, one more question. Your style sheet makes mention of it being grvatar ready. Is there something I have to do to activate gravatars?
Hi Greg,
<div class="longtailvert">try changing that to<div>. I’m only guessing here because I don’t have the source for that CSS style. Another strong possibility is that your have some unterminated tags. You can check by going to http://validator.w3.org/ and pass in your url. It’s good to keep your pages error free since it will help ensure that your website appears consistent on all browsers.BTW, you do have some great content on your website
.
谢谢 Blogging Pro China
adoi….looks like u are another WP guru. can i make u mine as well?
Sure Yvy, however I’m far from being a WP guru. I’ve just started using WP since Aug 05. Know some CSS and HTML from playing around with websites. Can figure out a bit of PHP although have never done any PHP before. Only discovered pingbacks when I started getting it last few days (still don’t really understand what it is for).
So the main reason of doing this theme was to learn all of the above……
.
……and so far, it’s been educational
i’m more afraid of screwing up my template n server setting lar. thats why i’m in a stationary motion.
as what the northern ppl say, ‘pi mai pi mai, tang tu jugak’.
Amboi, panasnya……ramai peminat. I am pretty sureI am going to use Tiga for my blog. Cuma ada satu soalan aje. Is it hard for me to put the flickr pics as the banners? My knowledge is limited to upload to the theme, add in my google adsense codes (yang ni penting sekali) and that’s it.
Tak susah, tapi bila sudah pakai jangan lupa lawati laman penaja iklan deria ye (kenyit-kenyit).
Penat-penat je saya buat…tapi tak ramai yang lawati iklan deria ku. Kecik sangat agaknya…ki..ki..ki
.
Tapi sabar dulu, saya sedang memperbahrui ke versi 0.6 yang mempunyai laman maklumbalas yang lebih changgih lagi.
Great theme!
It works very well with WP 2.0 RC1, which is what I’m running.
How do you get the pictures at the top? What photo program are you using?
Thanks!
Rob of UnSpace
Uh, never mind. I’m an idjit.
Now to see if I can get it to cooperate with Gallery 2….
Thanks Rob of UnSpace,
Those pictures on the top is my Flickr tag. Although I’ve hack it a bit so that the flickr logo does not appear.
BTW, if you got it working with Gallery 2……drop us some pointers will ya
, there might be some others who’s trying to do the same thing.
Regards.
Shamsul of shamsulazhar.com.
Uploaded version 0.6
Changes:-
i’m totally compused n lost. blek!!
Hi Yvy,
If you describe your problem, probably I can help.
[…] Shamsul Azhar, creator of the Tiga theme for WordPress, worked out how to put the image at the top of the page and sent me the results. I am surprised and humbled at this act of generosity and wish to make a public thanks for both the theme and the assistance. […]
No problems Rob of UnSpace, now I’ve learn a bit about background images
.
BTW, also uploaded version 0.7 which adds the ‘Meta’ widget to the main page as per Rob’s suggestion.
Thanks for your work, Shamsul,
I was trying to make my blogroll appear on the right sidebar, with the code Newsgator is giving… :
But noting is showing ! Is there some trick I should know ? It was easily appearing in the other template…
Thanks Gilles,
I assume your blogroll is define in your ‘links manager’, if that is so you need to edit ’sidebar.php’, and cut the code between:-
from the left sidebar section and paste it somewhere in the right sidebar section. The right sidebar section is the stuff between:-
Oh, BTW, if you need to add new widgets to the right sidebar you can add :-
in the right sidebar section.
Hope that helps
.
Thanks Shamsul,
But it is exactly what I tried : putting the code of Newsgator inside the “right widget” bases… because I am not using the Link manager inside Wordpress : 51 RSS feeds to manage with that is too much ! With the Newgator code, I was able (in my last template) to publish automatically my list of feeds, ajusted in real time to the choices (adding, cutting feeds) I make into my News reader software.
Hi Gilles,
I’m not familliar with the Newsgator feature you’re talking about. If you email me the code snippet you’re trying to integrate, it’ll be much easier for me to find out the solution to your problem.
Hey shamsul: your theme is great. IN Firefox 1.5 on the Mac the calendar does not unherit the style in te left sidebar. Can you point me in the general direction for applying a style to the calendar? Or is it supposed to inherit the style from another element?
Bonjour monsieur Gilles,
Comment allez vous?
Les instructions (En English, désolé, mon Français n’est pas bon.
):-
I’ve tried the newsgator feed you’ve sent me and it works as you can see on the right side of this page.
The code that I use is:-
Au revoir
.
Hi Greg,
Hmm…not easy for me to solve that one since I don’t have access to a Mac
.
Just one question, does this problem also occurs when you’re viewing my homepage (http://shamsulazhar.com and not this page) using Firefox 1.5 on a Mac? The reason is because that page validates cleanly on http://validator.w3.org/ (This page is deliberately broken so I can do fancy stuff with the quoted source code when answering comments).
If viewing my homepage is fine, then the problem might be bad CSS or unterminated tags in your page.
BTW, I’ve tested this theme on Windows XP using Firefox 1.5, IE 6 and Opera 8.51.
Any Mac Firefox 1.5 users out there having the same problem?