View Full Version : Ajax Tabs in sidebar -- almost there, ready to share, CSS woes
maxpower
February 28th, 2006, 12:06
Ok, I have a hack / tutorial almost all finished, I just require some CSS help. Tabbed content in the sidebar is pretty groovy. I've got it working on my site, maxpower (http://www.maxpower.ca), but the style is a little rough. I have written the tutorial, but tweaking the code both for me and for the average joe would be great. Any help is appreciated, comments here, or within the post.
The Tutorial (http://www.maxpower.ca/how-to-sidebar-tabs-for-k2-wordpress/2006/02/27/)
museum
February 28th, 2006, 12:19
looks great ... time to test
finnstones
February 28th, 2006, 06:05
where in sidebar code do i place this? i didnt understand this warning too...
K2 has a lot of if’s and else’s in the sidebar code. Be sure to grab entire sections of what you need from the original sidebar out, take care to grab an even number of brackets.
-sawchuk minion
Th3 ProphetMan
February 28th, 2006, 10:18
i guess you'll have to put that code in the begining of the sidebar (in casee you want the tabs there) and personalize it to your liking so that each tabs show what you want.
i think the warning means that there are many conditional parts in the sidebar code, example:
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
----some HTML code-----
<?php } ?>
if you placed the code there, inside the if, it would appear only in the frontpage of the blog, and not in other sections so for the tabs to appear always you have to make sure the code isn't inside any if or else
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.