New 3-column jungle theme..
I just finished doing a quick redesign of the CG site. I still like black and pink, but decided to play with some jungle theme..Enjoy, Hakuna Matata
I just finished doing a quick redesign of the CG site. I still like black and pink, but decided to play with some jungle theme..Enjoy, Hakuna Matata
Hello, its wednesday again.. Happy Halloween.! Today, I shall be giving out a tip on how to organize your theme folder, in wordpress so as to get a grip on what you are doing. This is not so much wordpress, as more of a best practice..
Don’t insert your entire code into your sidebar.php, header.php, home.php, page.php, single.php pages… Instead work with chunks.. What do I mean? I shall demonstrate by example.. If you look into my header.php file in my theme folder for chilligavva.com, here’s what you can see after the <body> tag..
This is a slimmer method, and allows me to see what I am doing.. The slicing does not affect the page generation, but is more of a behind the scenes way of allowing you to break down your theme into manageable chunks.. For instance, the baby blocks i am working with is “inc_geoscript.php” and “inc_aboutblog.php”. Note the way I included the file(s). Its preceded by a TEMPLATEPATH location. This way, you can manage any theme or reuse theme iles without typing out oh so long web addresses.. Neat huh?
Hope this was of some use to you…
Grab the sample here…
<!– begin content –>
<noscript><p class="noscript">OOPS! Some parts of Chilligavva <em>will not work without JavaScript enabled</em>.Please, <em>enable JavaScript in your browser</em> and reload the page. <em>It will not harm your system. That’s a promise.</em></p></noscript>
<? if (is_home()){ ?> <? include (TEMPLATEPATH.‘/inc_aboutblog.php’); ?> <? }?>