Recent Articles

Acacia executive resurfaces for Tasmania NBN
"Perfectly qualified" to drive NBN rollout on the Apple isle. The man behind the mysterious Acacia organisation that fronted a bid in the failed fibre-to-the-node request for tenders last year has resurfaced to lead Tasmania's...

Mobile Exchange on Wheels to bolster...
Devastating wildfires are burning around the Mediterranean this summer and down south, Australia is still recovering from its worst wildfire season in history...

Telstra's Xero - the price is wrong?
Small businesses are prime targets for a new feature of Telstra's T-Suite SaaS portal, but they are also cost sensitive - especially in the current climate. Accounting and cloud computing are a pretty good match...

ICT careers the top choice for Generation Z
ICT careers have licked graphic design, acting, fashion, animation and gaming to become the number one choice for teenagers, according to an Australian Computer Society (ACS) survey. Conducted online, the survey...


07.28.09

Adding More Interactivity To Your Website

By Michael Gray

If you've spent any time visiting blogs lately chances are you've seen those small little photo's accompained by a title or bit of text in or near the masthead. I'm not sure if it has a proper name, but most people I've talked to call it a carousel, in this tutorial I'm going to show you how to add one to your blog.

For the few of you who don't know what I'm talking about, here's a screen shot from gawker.com which is the first place I saw it being used.



Download Now

As time goes on the stories move across the banner,  eventually dropping out of view, similar to the way horses do on a carousel. I'm going to be showing you how to do this with Thesis, as with many of these tutorials you can adapt the programming to work with any blog, it's just easier with thesis. :-)

First we're going to need a way to isolate which posts we want to appear in the top. Chances are you are going to want to pick the best of your newest posts (not all new posts are best). I like to keep my blog low maintenance or self maintaing, so I decided to use the featured category which is the same I use to fill the visual slider that's on the homepage. However you could just as easily use tags instead of an isolated category.

To make the carouse happen we're going to create a custom function in custom_functions.php called top_carousel() and inside of it we're going to add global $post (which allows wordpress to get items outside of the current post) and an "if" statement to make the carouse appear only on single post pages (I felt the homepage looked to "busy" with a slider and a carousel, but that's your choice). Here's what the initial code looks like:

Continue reading this article.

About the Author:
Michael Gray is SEO specialist and publishes a Search Engine Industry blog at www.Wolf-Howl.com. He has over 10 years experience in website development and internet marketing, helping both small and large companies increase their search engine visibility, traffic, and sales. Michael is a current member of Internet Marketing of New York ( IM-NY.org) and a guest speaker on Webmaster Radio. He is also an editor for the popular search engine new website Threadwatch.org.
About DevWebProAU
DevWebProAU is for professional developers ... those who build and manage applications and sophisticated websites. DevWebProAU delivers via news and expert advice New Strategies In Development.





DevWebProAU is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com NetworkNewz.com






-- DevWebProAU is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2009 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal  

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article


Delivering IT Solutions DevWebProAU News Archives About Us Feedback DevWebProAU Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact