Another Tabbed Widget for Thesis Tutorial (Better!)

by Matt Langford on June 5, 2009 · Comments

Tabbed Widget for Thesis Wordpress Theme Version 2

This tutorial will take you through the process of building a fast-loading, animated tabbed widget for the Thesis Theme. For another version (without the animation), read this tutorial.

The Overview

This tutorial is an adapted version (specifically for Thesis) of an excellent tutorial offered by NetTuts.com. Many of the steps are similar, but there are also some significant differences. If you would like to develop this widget for any other theme or design, please follow their instructions.


Step 1: Download Files and Upload to Server

Click here to download the needed files for this tutorial.

Next, upload them to your server. You can place them in any location, but you must remember where you uploaded them. If you like consistency, place them in your Thesis Custom Folder.

Step 2: Linking to Scripts

headerscriptsOne of the great things about Thesis is its terrific administration options. In the Wordpress Admin Panel, under Appearance, click Thesis Options.

Scroll down and find the area for Header Scripts and open it by clicking the corresponding + icon.

Paste all of this into the text box and be sure to change “YOURURLHERE” to the correct location of your uploaded files (from Step 1):

<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="YOURURLHERE/jquery-ui-personalized-1.5.2.packed.js"></script>
<script type="text/javascript" src="YOURURLHERE/sprinkle.js"></script>

Step 3: Setting up the HTML

If you would like the content in your tabbed widget to be manually updated with static content (e.g. Your Favorite Posts) with nothing dynamically generated, you can place the following code in a simple text widget.

However, if you would like dynamic content (e.g. popular posts, tag cloud, etc.), you must insert the following code into Thesis OpenHook. (I am aware that you can also place the code into your theme files or custom_functions.php, but I’m keeping this tutorial as simple as can be!)

If you have not yet installed the Thesis OpenHook plugin, please do so now.

In your Wordpress Admin Panel, under Appearance, click Thesis OpenHook.

Choose the location you would like to place your widget. I highly suggest using “Before Sidebars.”

Paste this code into the corresponding text box:

<div id="tabvanilla" class="tabbedwidget">

    <ul class="tabnav">
    <li><a href="#popular">Popular</a></li>
    <li><a href="#recent">Recent</a></li>
    <li><a href="#featured">Featured</a></li>
    </ul>

    <div id="popular" class="tabdiv">
    <ul>
    <li><a href="#">Welsh Zombie Sheep Invasion</a></li>
    <li><a href="#">Sheep Rising From The Dead</a></li>
    <li><a href="#">Blogosphere Daily Released!</a></li>
    <li><a href="#">Aliens Infiltrate Army Base In UK Town</a></li>
    <li><a href="#">U2 Rocks New York's Central Park</a></li>
    <li><a href="#">TA Soldiers Wear Uniforms To Work</a></li>
    <li><a href="#">13 People Rescued From Flat Fire</a></li>
    <li><a href="#">US Troops Abandon Afghan Outpost</a></li>
    <li><a href="#">Are We Alone? A Look Into Space</a></li>
    <li><a href="#">Apple iPhone 3G Released</a></li>
    </ul>
    </div><!--/popular-->

    <div id="recent" class="tabdiv">
    <p>MattFlies.com!</p>
    </div><!--/recent-->

    <div id="featured" class="tabdiv">
    <ul>
    <li><a href="#">Aliens Infiltrate Army Base In UK Town</a></li>
    <li><a href="#">Are We Alone? A Look Into Space</a></li>
    <li><a href="#">U2 Rocks New York's Central Park</a></li>
    <li><a href="#">TA Soldiers Wear Uniforms To Work</a></li>
    <li><a href="#">13 People Rescued From Flat Fire</a></li>
    <li><a href="#">US Troops Abandon Afghan Outpost</a></li>
    <li><a href="#">Sheep Rising From The Dead</a></li>
    <li><a href="#">Blogosphere Daily Released!</a></li>
    <li><a href="#">Apple iPhone 3G Released</a></li>
    <li><a href="#">Welsh Zombie Sheep Invasion</a></li>
    </ul>
    </div><!--featured-->

    </div><!--/widget-->

As you can see, we’ve created a navigation menu using a list and 3 divs with the corresponding content. However, it looks pretty bad! Let’s get this thing fixed…

Step 4: Making It Look Good

For this step, you will need to edit your custom.css file. The easiest way to do this is through the Thesis OpenHook plugin by selecting Thesis Custom Styling underneath Appearance in the Wordpress Admin Panel.

Paste the following code into custom.css and save:

/*Tabbed Widget Version 2.0*/
.tabbedwidget {
margin-top: 3em;
background: #DF7718;
padding: 5px;
padding-top: 10px;
border: 1px solid #DF7718;
}

.tabnav {
margin-bottom: 10px;
}

.tabnav li {
display: inline;
list-style: none;
padding-right: 5px;
}

.tabnav li a {
background: #e5f6fc;
border: 1px solid #0262A5;
padding: 4px 6px;
}

.tabnav li a:hover, .tabnav li a:active, .tabnav li.ui-tabs-selected a {
background: #e5f6fc;
border: 1px solid #0262A5;
}

.tabdiv {
margin-top: 2px;
background: #e5f6fc;
border: 1px solid #0262A5;
padding: 7px;
}

.tabdiv li {
list-style: none;
margin-bottom: 0.667em;
}

.ui-tabs-hide {
display: none;
}

Of course, you’ll want to modify the above code to fit your site’s design. Feel free to change anything above, except for the .ui-tabs-hide portion, as the jQuery will make good use of that!

Step 5: Inserting Great Content

The type of content you insert into your widget is entirely up to you! If you can dream it up, it can probably be done! To get you started though, I’ll offer a few simple suggestions with directions.

Recent Posts:
To display your 10 most recent posts, simply paste this code in the tab where you would like it to display. (You can change the number 10 to any number.)

<?php query_posts('showposts=10'); ?>
    <ul><?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
<?php endwhile;?></ul>

Tag Cloud:
To display a tag cloud of your posts (assuming you use this included feature in Wordpress), simply paste the following code into a div in the tabbed widget code.

<p><?php wp_tag_cloud(); ?></p>

Recent Comments:
You can display the 10 most recent comments on your blog by pasting all of this code into the tabbed widget code.

<?php
global $wpdb;
$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID,
comment_post_ID, comment_author, comment_date_gmt, comment_approved,
comment_type,comment_author_url,
SUBSTRING(comment_content,1,30) AS com_excerpt
FROM $wpdb->comments
LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID =
$wpdb->posts.ID)
WHERE comment_approved = '1' AND comment_type = '' AND
post_password = ''
ORDER BY comment_date_gmt DESC
LIMIT 10";
$comments = $wpdb->get_results($sql);
$output = $pre_HTML;
$output .= "\n<ul>";
foreach ($comments as $comment) {
$output .= "\n<li>".strip_tags($comment->comment_author)
.":" . "<a href=\"" . get_permalink($comment->ID) .
"#comment-" . $comment->comment_ID . "\" title=\"on " .
$comment->post_title . "\">" . strip_tags($comment->com_excerpt)
."</a></li>";
}
$output .= "\n</ul>";
$output .= $post_HTML;
echo $output;?>

Popular Posts:
If you use the Wordpress.com Stats plugin and its sister, Popular Posts, you can insert this code to display the 10 most popular posts on your website (based on hits).

 <ul>
<?php WPPP_show_popular_posts( "title=&number=10&format=<a href='%post_permalink%' title='%post_title_attribute%'>%post_title%</a> (%post_views% views)" );?>
</ul>

If you’d like even more options and flexibility, consider adding these plugins by Rob Marsh. See instructions for what code to place in the widget for these plugins.

If you have any questions or simply need help, don’t be afraid to ask in the comments below! I will help you IF you include a link to your blog in the comment. If you need to paste code into a comment, please encode it here and place it between <pre></pre> tags.

  • Wow! I finally bit this particular bullet, and it was delicious. Thanks for a great tutorial.
  • Matt, thanks for the tutorial. Notice one thing. When the site load, both the two tabs show up on top of each other and then it collapses into one widget. I wanted to have separate tabs for popular posts for particular categories ie green living, green building, etc. How would I code that in the tab. I already have popular post and recent post tabs. My site is www.green-talk.com
  • Great Tutorial, quick and easy set up! Thanks
  • trackfocus
    Matt-

    The tabbed widget looks great thanks for sharing. I am a bit of programming and Thesis noob and need help figuring out what my "YOURURLHERE” is in Step 2. I placed the folder in my Custom thesis folder, but am sure how many directories an subdirectories I must include to make it work. Thanks.
  • Your URL Here is the web address of your site such as http://google.com.
  • Hello Matt,

    Your site is great, I've already implemented lots of your stuff. But I'm having some problems with the tabbed widget you might be able to solve.

    My blog is: http://www.lickmylife.ch

    When you look at the tabbed widget, I don't know why it does the "underline of the posts" in black instead of red, as everywhere else. I explicitly set it in the CSS-file under ".tabdiv --> text-decoration: underline;). It wouldnt even show any underline without that.
    In addition to that I would like to have the underline removed on hover. How do I do that?

    Second Question. How can I display a Header title on top of the tabbed widget?

    And third and most stupid question. I don't particularly like the "fading"-effect with Javascript. But apart from that I like this approach of tabbed widgets far more than the one on your first post. Is there a way to get rid of the animation and keep all the rest?

    thank you very much in advance, you've been great help already.

    cheers,
    Amy
  • Sorry about the delayed response, Amy. First, if you remove a bit of the css, you'll get styling that is more inclined to match the rest of your blog. The reason I included so much css is so everyone could see how to style it if they needed.

    Secondly, you could just put a h3 tag surrounding your title above the html of the widget.

    Thirdly, the fading effect is the only major difference between the two widgets. The look and feel (other than the animation) can be replicated using css, although it may take some time.
  • bizziemommy
    Matt,
    I'm hoping there is an easy fix to my problem - I think I installed everything but it looks like the styles aren't working correctly. My site is www.bizziemommy.com and the tabs don't appear to be working. Do you have any suggestions?
  • It's not accessing the js file correctly... Repeat that step to make sure there are no typos or other faults.
  • bizziemommy
    Really,
    Here is what I have

    <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="http://www.bizziemommy.com/jquery-ui-personalized-1.5.2.packed.js"></script>
    <script type="text/javascript" src="http://www.bizziemommy.com/sprinkle.js"></script>


    Can the JS not be in the root directory, i tried both in the root and in the theses theme folder.
  • Hi Matt,
    Thanks for the great tutorial. We've had this up and running & have loved it, but now we want to add a rotating slideshow in the multimedia box, and it is causing some conflicts. The best slideshow we've found is the vslide, but it prevents the tabs from collapsing. Any ideas on how to help them play nice?
    We are playing with it on our test site: http://whiteonricecouple.com/testblog/
    Thanks again.
  • I've taken it off for now, since I've found another option. The plugin Tabbed Widgets just got upgraded and the new upgrade works for us, so I'll be playing with the CSS on that for now. Thanks again for the awesome tutorial. We may end up coming back to it.
  • The two javascript libraries can cause some conflict. I'm glad you found a solution though!
  • Matt.. thanks for the tutorial.

    I'm having an issue getting the tabs to hide. I've gone thru the comments and tried several solutions, but i am still having the same problem. The tabs are stacked on top each other.. any thoughts?

    http://opt911.idwtestrun.info/
  • Hey Matt, I can't seem to get it to work on my website (webjourney.me). The code is displayed instead of the recent posts, etc.
  • Sounds like you have some incorrect formatted code... missing a bracket or something of that nature?
  • michellesarabia
    I am designing a website in Thesis Test Drive, but I need to find out why the box is showing all the elements? It was showing the animated tabs before, but now is showing everything at once. Please let me know what I can do.

    THanks!
  • michellesarabia
    Got it! I have one more question...how can I expand my "search" box? It only shows half of the writing in the box.
  • Thanks for the info
  • Hi Matt,

    Great tutorial, I got it working after some playing :-)

    One question though, how can I edit the comments part so it includes the post title the comment is in? E.g.* commenter* in *post* - *comment*

    Also my one seems to cut off the text half way across the widget I'm not sure why
  • searchbrat
    Hey Mark

    Did you ever find a solution to the issue of the individual elements stacking up on each other rather than appearing tabbed ? Been trying to get this working all day. I can provide my test blog that I was using if you have 5 minutes to take a look ?
  • searchbrat
    hey, ignore my last comment. I got it working. I was referencing the .js files incorrectly. Brilliant tutorial .... the feedback in the comments is great.
  • Thanks! Glad you got everything working.
  • Robert
    Thank you for this.

    Is there a way to turn off the animation that occurs when tabs are switched?
  • For this particular one, there is not a simple way to turn off the animation. However, I do have a tutorial that shows exactly how to build one with no animation that has been viewed almost 7,000 times!
  • Robert
    Thanks for the response. I did find and attempt to impliment that one several times without success.
  • absolutely fantastic article... I've used the above on tagged widgets to help me install on my blog... got there in the end... much appreciated
  • shaiekh
    very nice tutorial...
    i have implemented it in my localhost. everything work fine and looks cool.
    but i have face a problem. i implemented it after multimedia box. my all widgets from my sidebar2 are displayed to the saidebar1. sidebar2 is blank now. very weird problem. could u help me??
  • That's very odd -- it'll be extremely hard to correctly diagnose the problem without a link though. Any chance you could upload it somewhere and post a link?
  • Matt, this is great. I was so proud of myself for figuring it out, but it's not working like I expected.

    http://www.pix2brix.com/blog

    The content of all three tabs shows up in the block at the same time, rather than just the content from the "selected" tab. And when you click Tabs, Feedback, or Featured, the page pops down, instead of changing what shows in the block. What did I do wrong?

    Also, I'd like to have a tab for the categories. What php do I use for that? (Is there someplace I could look up the other possibilities?)

    Thanks.
  • Everything is done correctly on your part except Step 1. Your uploaded JS files are not in the correct place. Make sure you place them in your custom folder. Your linking to them here, but that's not their current location.
  • Sheesh. Thanks. I uploaded the tabs20 folder and then didn't put the folder in the path. Worked like a charm.

    That'll teach me to do this in the middle of the night. Well, probably not, but it should.
  • Hi Matt

    Having read through your replies, I have a feeling that you answered to 'Indiescreet' instead of me and therefore, you think I've solved the problem when in actual fact I haven't. The videos are still stacked up!

    Ian
  • From a quick glance at your site, it appears you changed the div names, which is probably what's breaking it. Any div class or id that starts with "tab" must be left intact, as this is necessary for the JavaScript.

    Secondly, it looks like your structure is a little out of order. I think you have the headers below the videos instead of the other way around.

    This tutorial still works as advertised, and is still implemented in various places (there are threads devoted to it in the the Thesis forum). Just remember, you cannot place any php code into a widget or post. If your tabs include php, they must be placed using a hook in custom_functions.php or Thesis OpenHook. Cheers!
  • Hi Matt,

    Recently came across your great site and I've already implemented a few suggestions from it on my site, http://politicalrant.co.uk. Last night I tried setting up a tabbed widget, following your tutorial (and nettutts) but like so many other people I can't get the tabs to hide and they stack on top of each other.

    I read through the comments section to see if I could get the answer, and tried loads of suggestions, but nothing appeared to work. I was wondering if you had finally got to the bottom of the problem and had a simple solution?

    I notice that a lot of your readers have now removed the tabbed widget from their site and fear this may be because it failed to work correctly. Any advice would be appreciated.

    Ian
  • Forget that, I had the div named as comments so changed it to recent_comments and now it works fine!
  • Yeah, that's been a common problem -- it's addressed in the comments here a couple times, but with the amount on this post, I don't blame you for not seeing them. Glad you got it working correctly!
  • Matt,

    My tabbed widget works fine apart from one slight problem.

    When loading a single post the recent comments (which I C&P'd from here) stays at the bottom rather than being hidden until the tab is clicked.

    Any ideas? Is there some kind of overlap with the main comment secion which could be causing this problem?
  • I love this tutorial--got it working exactly as I wanted. :)

    One concern, however: As of the last day or so, my "popular" tab is completely blank. It appears the same thing has happened to you. Any idea what's causing this?
  • It's working correctly on both of our sites at the moment. It's rare, but if wordpress.com goes down for any amount of time, this particular popular posts plugin will do the same (it's hosted there).
  • Ah, indeed it is (working). I suppose that explains it. Thank you! (Good to know that it's not something I'm doing wrong/need to fix.)
  • Ah, had a little trouble but I believe it was where I was pointing the directions to the .js files.

    I now can play with the design/look. this is seriously kickass
  • Tried doing this last night - the trouble I was having was that the slider javascript wasn't working - it was just listing everything and when i clicked the tab it jumped down to that section instead of sliding from one to the other. I since took it off until I could figure it out. Any words of wisdom?
  • When this happens, 99% of the time it's because the URLs you inserted in Step 2 are incorrect. Try manually going to them in your browser -- if you get a 404 Error, then you know the url is incorrect.
  • dylanb02
    Does this work in IE8? I followed the tutorial and everything works in Firefox but not IE8... But it does work on your sidebar, which I think is the same code? Any suggestions?
  • It should work fine in IE... and yes I am using the exact same good. Must be something else messing it up for you!
  • Matt - THANKS! What I want (thank GOD it is simple because this more than anything else has made me feel like a big ol' loser :) is to have 4 tabs, above my sidebars (so that they can go the width of my 2 sidebars right?) that are

    1. Search
    2. Categories
    3. Archives
    4. Link Here

    The place I saw and really liked this is the site www.greenyourdecor.com. I do not know which of your tabbed widgets will work better but I have been playing (and failing ) with both for a day now. Sorry I missed your reply last night!

    Thanks so much. I can't believe how helpful you are to everyone! You Rock!
  • Matt, I am sure I will have issues because that is just how this whole process has been since I am a newbie at all this design stuff but before I go into the dirty work what I am looking for is a tabbed widget that will show the Search Box, Categories, Archives and potentially my Button Link. Is it possible to do this with this widget? Thanks so much. This looks like a GREAT solution and you are so supportive with all these questions.
  • Brittany, that is 100% possible and not even that complicated! If you can think of it, and it's not too large to fit in your widget, it's possible. In your case, it'll only take a couple lines of code for each option. Let me know when you've decided what you want for sure, and I'll point you in the correct direction!
  • Hi Matt - do you know what I could put to get the Search, Categories, Archives and a Text Like Widget with a link button? I know you said it was simple and I have been trying for almost a month to figure it out with no luck. Thanks!
  • Alright, I'll take you through the steps of a couple of these, and if we get them, we'll move on to the next two! Sound good? First, we will never use the "Widget" option in Wordpress. This particular Tabbed Widget (despite its name) is not in the same category as those. We have to modify code (instead of simple drag and drop) for something this cool.

    From the code above, choose one of the tabs that were created by default (e.g. popular) and rename it Categories. Every time you see the word 'Popular' change it to 'Categories.' Where it now says div id=categories, delete everything between the ul tags and add this in its place.

    Next, repeat the above steps, changing one of the options to "TextLink". Between the ul tags, add a link to anything you'd like. You can even embed a photo or video.
  • Matt, I followed your instructions here. At least I think I did. But I have trhee problems:

    (1) Categories tab seems to work, but it doesn't actually show all my categories. Instead it shows the word "categories" and then lists only two.

    (2) Need php to load a search box

    (3) Need php to load popular posts (I installed and activated the Popular Posts plugin by Rob Marsh)

    Any help appreciated. http://www.pix2brix.com/blog
  • Wow, you've done good for yourself! Sorry about the delayed response, I've been out of town for a little while. Is there anything else you still need?
  • Solved last problem with help from DIYthemes forum. Woot!
  • Also solved #1. The snippet you linked to specifically only includes SOME of the categories. I got rid of that last part and now it works pretty much l like I want. The only things I'd like to change is to get rid of the word "Categories" at the top and also get rid of "Uncateogorized."
  • I figured out number 3. But I've scoured the code for categories and can't see anything wrong. And can't find the snippet for adding a search bar.
  • shaunacallaghan
    Hi Matt...I am having a problem with the tabbed widget over at www.completeorganizingsolutions.com - The tabbed content is showing up on top of each other rather than "tabbed" - Can you take a look & see what I am doing wrong. In reading through these comments - I just cant seem to find a solution.

    Thanks so much!
    Shauna
  • Shauna, sorry about the delayed comment, somehow your question got caught in my spam filter and I just went through it! Unfortunately, I'm assuming you removed the widget because of the errors. If you would still like to add and need me help, please let me know.
  • shaunacallaghan
    Thanks so much for getting back with me! - Don’t you love spam filters! I have stopped working on this tabbed widget with this client but would love to get it up again. You probably cant see where I have the files and such now. Let me chat with her and see if I can reinstall and get it up again. I would love to get it working and use on other sites in the future. Would love to promote your skillz....



    Shauna Callaghan
    214.683.3445 - Direct
    BurbMom.net - Website for North Texas Moms
    SeeMyDesignsbyShauna.com - Custom Blog Design
  • Matt, thanks. But it still doesn't work. Please advise what's wrong. I've pasted the code here

    <div id="tabvanilla" class="tabbedwidget">

    <ul class="tabnav">
    <li>Recent Posts</li>
    <li>Recent Comments</li>
    </ul>

    <div id="recent posts" class="tabdiv">
    <?php query_posts('showposts=10'); ?>
    <ul><?php while (have_posts()) : the_post(); ?>
    <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></li>
    <?php endwhile;?></ul>
    </div><!--/recent posts-->

    <div id="recent comments" class="tabdiv">
    <?php
    global $wpdb;
    $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID,
    comment_post_ID, comment_author, comment_date_gmt, comment_approved,
    comment_type,comment_author_url,
    SUBSTRING(comment_content,1,30) AS com_excerpt
    FROM $wpdb->comments
    LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID =
    $wpdb->posts.ID)
    WHERE comment_approved = '1' AND comment_type = '' AND
    post_password = ''
    ORDER BY comment_date_gmt DESC
    LIMIT 10";
    $comments = $wpdb->get_results($sql);
    $output = $pre_HTML;
    $output .= "\n<ul>";
    foreach ($comments as $comment) {
    $output .= "\n<li>".strip_tags($comment->comment_author)
    .":" . "ID) .
    "#comment-" . $comment->comment_ID . "\" title=\"on " .
    $comment->post_title . "\">" . strip_tags($comment->com_excerpt)
    ."
    </li>";
    }
    $output .= "\n</ul>";
    $output .= $post_HTML;
    echo $output;?>
    </div><!--recent comments-->

    </div><!--/widget-->
  • Matt,


    The Tabbed Widget on my test page is messed up again. I don't know what's wrong this time. Could you help me out? Thanks. http://webstudio13.com/test313/


    Andrew
  • Andrew, it looks like you may have accidentally deleted some characters from the php in Step 5. I think just starting over at the beginning of that step should solve your problems!
  • Kitty
    ugh, now I'm totally confused. I have started with this, Tabs 2 version.

    It's confusing to me because for dynamic content (I'd like to use Marsh's plugins), I don't know where to put the php code in relation to what you say to copy to Open Hook which includes static lists?? It's a tad more difficult because I am not using the OpenHook by Rick (got errors in the past - now I'm gun-shy and just put it in Custom_functions), BUT, I have no idea what to write for the hook... and the function...

    Oh dear I'm so frustrated. Maybe I'd better take a break. I thought I was doing so well... blah.
    This is the site (in testing mode)
    http://fitnfat.com/blog/

    Thanks for all that you do Matt... I'm just tired I guess.
    :)
  • Kitty, It's a lot more complicated since you've chosen to bypass using the plugin by Rick. You can still do it that way, but I highly recommend downloading the latest version of his plugin as it has many more features and, to my knowledge, no one has reported any errors.
  • Kitty
    I should really give that another try... (Rick's plugin). It will be less stressful this time because now the blog I'm on is more of a test site..

    Thanks Matt!
  • Hi Matt,

    I'm trying to figure out which tabbed widget to use... so if I understand correctly, this one ideally requires html to add your own content (to a certain tab area) whereas the other one just gets fed the info? Or, I think you mentioned that you don't have to add the html, correct?

    Are all of the plugins you mention from Rob, as well as your tabbed widgets, compatible with wp 2.8.1 & Thesis 1.5.1? (I imagine they are?)

    I'm just nervous... not sure which to use... sorry for the "thinking out loud."
    :)
  • Kitty, both widgets can be used in the same way -- with static or dynamic content. The only differences in the two are the look/feel and the animation.

    All of the plugins and the widgets are 100% compatible with the latest versions of WP and Thesis and the way they are built, this should be the case forever.
  • Hey Matt!
    I loved the post! And i am definitely going to use this on my blog. Two quick questions though

    1) Is there a way to display RSS feed in one of these tabs? Preferably using the built word press RSS widget
    2) Is there a way to make this just show up on a specific page? I tried to use "if ( is_home())" in the open hook code but that did not work.

    Thanks alot!
    Sosmos.com , its still in the design phase :p
  • Matt, thank you so much. You're the lifesaver! Since you are a Thesis expert, I am gonna try to ask you a question that doesn't seem to have anything to do with this post. Just try your best and see if you can help me. Currently, I am trying to stretch the body area of my blog so it appears full-width. Kinda like the look on this website if I may demonstrate - http://psd.tutsplus.com/. The reason I want to do this is because I want to change the color in the sidebar but I don't want the page look. Can it be done with Thesis? Do you know the code? Thanks again, buddy.
  • If you want a full-width framework with Thesis, simply go to Design Options (under appearance) and select Full-width from the Framework option.
  • Matt, I like your post a lot. I have an issue that seems to bother me. As you can see currently on my testing page - http://webstudio13.com/test313/, the "popular," "recent," and "featured" areas are aligned vertically. How can I fix it and make it look like the one you have? What went wrong? Please advise. Thanks.
  • Andrew, looking at your code, I see that you did insert the code from Step 2, but when I try to follow the links, I get a 404 Page Does Not Exist error. This simply means that you either didn't upload the files properly (from step 1) or you're not linking to them correctly (from step 2).
  • elliot
    I love your widget. Thank you so much for the code. I do have a question though.

    How can I program it to make it random so that each time someone comes to my site, it starts with a different tab for the widget?
  • You'd have to edit some of the jquery files to make it function in that way. I know it's possible, but that's above me! Try the <a href="http://nettuts.com/javascript-ajax/create... article for help in that area.
  • baloot
    matt, sorry this is offtopic question.

    your blog alexa ranking about 78k+.
    how much did your hosting use bandwidth every month?
  • Sorry about the delayed response, baloot -- As far as bandwidth goes, I don't know right off hand. I'll have to look it up and get back to ya!
  • baloot
    ok matt. i'll wait for your information. :)
    have a nice weekend matt.
  • baloot
    hello again matt. still remember me? :)

    yeah, as always, you did a great tabbed widget tutorial for thesis users.

    hey matt, don't forget to check out my blog.
    i already apply your tutorial. thanks a lot. you're my man...

    cheers from Malaysian blogger...
  • Of course I remember you! The widget looks good on your blog too!

    Nice to hear from you again!
  • something wrong happened to my widget.. my 'popular' tab is empty..
    i didnt do anything on my css file since last week..
    i dunno why my popular tabs suddenly dissapear...
    any idea?

    thanks
  • It seems to have something to do with whichever "Popular Posts" plugin you're using. I suggest either reinstalling your current plugin or switching to another. Should fix the problem.
  • Here's something that annoyed me to death while trying to do this on a client site.

    Justin Tadlock's Sliding Panel plugin completely breaks this tabbed widgets tutorial. I -think- it has something to do with calling jquery, but I'm a part time designer, not a full time developer. :)

    Just an FYI
  • You're right -- a few plugins that attempt to call the same (or similar) jquery library have caused issues. As of yet, I'm not sure of a perfect fix, but If I hear of one, I'll let you know.
  • Hey Matt,

    This is an awesome tutorial! I have a quick query. Do you know the php code to insert blogroll links into the widget area? I'd also like to separate them into the different categories (Board of Advisors - Young & Board of Advisors - Old).

    You can see my site here: http://jrbiz.org (bottom right)

    Thanks in advance,
    Nick
  • Nick, you can do what you need by using this code. You'll have to play around with it some to get exactly what you want!
  • Thanks, Matt! That's exactly what I was looking for.
  • Thanks for this tutorial. I've done a six tab widget on my site and it looks great!
  • Very well done! Looks like it saved a lot of space in your sidebars!
  • joseph
    Great tutorial. One question, is there any way to put this in a blog post or more importantly, in the content box of a page? That is what i am dying to be able to do.
  • Joseph, yes you can do that, with some restrictions.

    Just place the code from Step 3 into whatever page you'd like it to appear. It should work phenomenally, assuming you only use static text and no php (nothing from Step 5). If you'd like to insert PHP into the page, it'll require an additional plugin.
  • hi matt,
    just one simple question..
    how to change the font size and color of the tabbed..
    my tabbed look too small..

    your twitter widget(below tabbed) look very nice man..
    how to make it? :)
  • Ben, to change any of those elements, you'll just need to modify the CSS from Step 4 above. Anything that begins with a # sign (such as #FFFFFF) is a color. Do a google search for hex color values if you need to find a certain color.

    For font size, depending on how you use the widget, it can be modified in the Thesis Design Options or by inserting the parameters in the same CSS in Step 4.
  • Hi,
    I left a comment yesterday b/c i had been having trouble with adding a tabbed widget. Please disregard the comment. It ended up I had a '{' instead of a '}' in my custom css. Issue resolve. Thanks for writing very easy to follow instructions for tabbed widgets.

    Thanks,
    Abby
  • That was it, I think after the upgrade it did not verify. grrr. Thanks so much.
    .-= Lori´s last blog ..I May Need Intervention or At Least a Life =-.
  • Ok after messing with things now my page rank went to zero. Any idea what I could have done?
    .-= Lori´s last blog ..I May Need Intervention or At Least a Life =-.
  • What you've done here shouldn't have any bearing on your PageRank. It sounds like it might be a sitemap issue (if you use the Google XML Sitemaps plugin, try resetting it) or go to Google Webmasters and check to see if your site is still verified.

    Your search results are still prominent, so it doesn't seem to be affecting your site any.
  • Woops! my bad. I thought I've entered it along with email. Now, I've entered it. Have a look please ;)


    .-= Mickey´s last blog ..Hello world! =-.
  • To insert two of these with different styling for each, it'll be a little more complicated. Not only will you have to change the css classes (you've already done that), but you'll have to duplicate the 2 scripts you downloaded from this tutorial, change their name, and insert that into the header area (Thesis Options) as well.

    Next, you'll have to open those 2 scripts and manually edit the names of all css styles (such as tabnav) to reflect the names of the 2nd widget.

    If, however, you leave them both with all the same styles (don't edit the css), they should work properly. They will look exactly the same, though.
  • Mickey
    I'm using the code twice on my page - once 'below sidebar' using hook and second in a text widget. The text widget one is not working, while the other one is working perfectly. Can't I use it twice on one page?

    I even went ahead and made the changes of making new classes, IDs but it still didn't worked.
  • Without seeing your site, my best guess would be that you're trying to use php in your text widget. Wordpress does not allow this. If that's not the case and it still isn't working, I'll need to see a link to your page. Thanks for reading!
blog comments powered by Disqus

Previous post:

Next post: