Bali Web – Images of Bali – Simple Photo Blog
Indonesia Travel,Bali Trips,Tropic Vacation, Tutorial,Photos of Bali
Indonesia Travel,Bali Trips,Tropic Vacation, Tutorial,Photos of Bali

Sometimes i wonder how things are done so i right click my mouse and select view source, but they are already out put as html code not actual code that build it. so the journey begins one day i saw a website with a animated tabs ,ahh that’s cool i want one that on my website! and after searching a while with uncle google, i found jquery tabs and i don’t even know what is jquery :O but best part is; it is packed with examples. Next problem is how to make it works with Wordpress, so here this is my quick n dirty resolution.
This time the mission involving following files: from the jquery tabs :
and put them all in one folder called js then put the folder inside my wordpress themes e.g my themes titled bali so the js folder is wp-content/themes/bali/js And from my wordpress theme i change 2 files ( header.php and sidebar.php) plus adding one file to store the tabs call jquery.tabs.php
step one open header.php and adds following lines just before </head>
<!– Additional IE/Win specific style sheet (Conditional Comments) –>
<!–[if lte IE 7]>
<link rel=”stylesheet” href=”<?=bloginfo(’stylesheet_directory’) .’/js/jquery.tabs-ie.css’;?>” type=”text/css” media=”projection, screen”>
<![endif]–>
<script src=”<?php echo bloginfo(stylesheet_directory) .’/js/jquery-1.1.3.1.pack.js’;?>” type=”text/javascript”></script>
<script src=”<?php echo bloginfo(stylesheet_directory) .’/js/jquery.history_remote.pack.js’;?>” type=”text/javascript”></script>
<script src=”<?php echo bloginfo(stylesheet_directory) .’/js/jquery.tabs.pack.js’;?>” type=”text/javascript”></script>
<script type=”text/javascript”>
$(function() {
$(‘#container-a’).tabs({ fxShow: { height: ’show’, opacity: ’show’ }, fxSpeed: ‘normal’, fxAutoHeight: true });
});
</script>
I want the tabs to show on my sidebar , open sidebar.php and add this line
and what’s in on jquery.tabs.php
Comments are closed.