custom wordpress design

How I broke a javascript gallery script to make a Flash-like slideshow

Friday, April 2nd, 2010

artofeyebrows 300x206 How I broke a javascript gallery script to make a Flash like slideshowThis is a story about a site redesign.  The site was for the mother of a client we’ve worked with on other projects.  It was a kind of site we don’t normally do, but we took the gig because it was a referral and someone we know and like working with.  The original site was built in WordPress, and our job would be to fix it up, make it more SEO-friendly and just generally take what they did and make it better.

When I got access to the WordPress backend and found that, rather than building a new theme, the previous designers just added styles to the WordPress Default theme, I figured just how right I was to just take what they did and make it better.  They also controlled the layout via tables and built no custom page templates, all of which told me that they didn’t understand the possibilities and/or were not very skilled WordPress designers or they were just really lazy.

One of the first things I noticed on the site was that there was a lot of graphics that were mostly text.  Search engines can’t read images, so this text – much of it was the sort of keywords that would be valuable for search engines to crawl – was useless (at least from a search engine standpoint).  In addition, said text was, in many cases, jaggy and ugly.  My question: why bother making text into an image if it doesn’t look smooth and clean?  Either use a unique font you can’t get with available web fonts and make it look nice, or just use regular text.  So the first step was taking several graphics like this and removing all the text, and then adding the text to the code and styling it with CSS.  To get a more unique and attractive look (i.e. to make it look more visual and like the graphic it was replacing) I added subtle text-shadows and styled the font using @font-face.

There was also one of those Flash slideshows as a major feature of the home page.  You know, the Flash slideshows with an image and some text.  None of it is interactive; you can’t click on anything to link to a page or anything, and those images, too, had text buried in them that would be relevant for search engines, using the sorts of phrases that I would expect users to actually use in search queries.   My next question: why use a Flash slideshow when you could have the exact same effect, and make the text searchable, by using available javascript-based technologies like AJAX?  The next task, then, was to find some jQuery slideshow script similar to Dynamic Content Gallery or Featured Content Gallery.  In fact, since it was WordPress, I considered building one of those into the theme and using a redirect to point them all to the same page, but ultimately, this would be a bit of a lame hack and I found a better solution.

First, I found a simple jQuery image slide show that I could customize the code for (demo here).  Like Featured/Dynamic Content Gallery and a multitude of other slideshows like them, there was a caption that would rise up from the bottom and then slide back down when the image transitioned.  But up and down didn’t really work for the layout I was using.  I really needed it to either be there all the time (like it would be if it were a static image in a Flash slideshow) or come in from the right side.  Here’s the relevant javascript code:

//Display the caption
$('#slideshow-caption').css({opacity: 0.7, bottom:0});

And…

//Hide the caption first, and then set and display the caption
$('#slideshow-caption').animate({bottom:-70}, 300,() {

//Display the content
$('#slideshow-caption h3').html(title);
$('#slideshow-caption p').html(desc);
$('#slideshow-caption').animate({bottom:0}, 500);
});

The above lines of code control the captions displaying/hiding, the height of said caption area, opacity, etc.  In both cases, I replaced “bottom” with “right” just to see what happened.  What happened was the text didn’t slide at all – it just stayed there until the next slide – precisely what I really wanted to do anyway.  Some styling with @font-face for the captions and, voila, a working alternative to the Flash slideshow.

See the final product here: The Art of Eyebrows

___________________

2e6c0a0ecb51c9d67263485a1713294d How I broke a javascript gallery script to make a Flash like slideshowChris Reynolds is one half of Arcane Palette. He has a personal blog, jazzsequence, where he writes about music, technology and social media and shares links, videos, and posts various personal music and writing projects.

Scenario Writing Studio

Friday, March 19th, 2010

scenariowritingstudio home Scenario Writing StudioScenario Writing Studio was a redesign for an author/screenwriter with whom we’d worked before on True Story Ink.  There was a lot of content on her existing site, but it wasn’t managed very well, was not very search engine friendly, and was impossible for her to make even minor changes without having to get access to the code and use an FTP program.  What’s more, certain features she wanted to offer — like the ability to create an RSS feed for updates — would be impossible on the static site she had been given.  We’d proposed when we started working with her to redo the entire site in WordPress, and the launch of her new book and ghostwriting seminar was the perfect opportunity to do it.

scenariowritingstudio contact 300x103 Scenario Writing StudioLike True Story Ink, the site was to have a strong film noir feel, but it also needed to be obviously a site for an author.  The design we went with is really all about light and dark, and in that way, carries a strong film noir aesthetic.  One of the things the old site had was two sidebars that varied depending on what page you were looking at.  It was used to navigate sub-sections of pages, offer more information relevant to the current page, or give contact information.  For the redesign, we created a similar feature, building 15 pairs of sidebars for various pages, making them all widgetized (and therefore, fully customizable from the back-end), and all called from a single generic page template using a series of if statements (e.g. if this page, display this set of sidebars).

scenariowritingstudio enroll 300x112 Scenario Writing StudioWe designed customized graphics for her social networking links, and customized “enroll” PayPal buttons for her online classes to fit with the design of the site.  We wanted everything to fit with the mood of the site and Netflix’d Chinatown to give us some extra visual inspiration in the early development of the site design.

jazzsequence

Friday, March 19th, 2010

wide home2 jazzsequencejazzsequence is my personal blog, so it’s one of those things that I tinker with constantly.  I loved the old theme i had up before, jazzsequence.com  300x197 jazzsequencebut there were things I wanted to do that i just couldn’t do with that design.  for one, it was very narrow — I wanted to be able to sell ad space if traffic picked up enough, so the new design would need preferably 260 pixels to accommodate standard, large square ads, and 125 pixel square smaller ads.  another requirement was pages — i had a lot of pages that just weren’t very visible in the old design which was more of a straightforward blog layout.  pages were relegated to a sidebar widget amongst a bunch of other sidebar widgets, and therefore hard to find.

home long 139x300 jazzsequencebut the other thing i wanted to do with the new design was to be able to integrate social media updates, different kinds of posts, and posts from different sources, and style them uniquely so you can tell they are different things.  in short, i wanted something that was a bit of a cross between a tumblog and a Facebook wall stream.

the updated design is grid-based.  regular posts are displayed, magazine-style, with thumbnails next to post excerpts.  i also have a class for “asides” where i post random thoughts that are too long for twitter, links, or videos, which are displayed in full, without the title.  posts from other sources are displayed with the title styled differently than posts from jazzsequence.com, and are given an icon to represent where they are from.  a similar method is used to style posts on the lifestream page.

page 183x300 jazzsequencethe theme uses 3 different sidebars depending on where you are on the site.  this gives me the opportunity to hone the sidebar items to be somewhat more relevant to the content displayed on the page as well as make it possible to rotate the ad boxes on the sidebar.  pages display a list of related entries which is especially useful since most of the pages are part of a family of entries — fiction has a series of sub-pages for each piece, ditto for essays and music.  so from any page in a given tree, you can easily access other pages that might be related (this was borrowed from Darren Hoyt’s Mimbo theme).

jazzsequence about 235x300 jazzsequenceI also designed a separate page template for the about page.  this page’s purpose is to give a bit of information about me and an easy place to display the various social networks that i have accounts on and/or use regularly.  I also split the content to give a definition of the name of the site.

i have a ton of content — I’ve been keeping a blog for about 7 years, and have had a non-blog website in one form or another since the mid- to late-90s, and there’s a lot of stuff I wanted to put on my site.  so I wanted to have a theme on the site that would be able to support that much content.  later I added in the dynamic content gallery — after putting that in the dirty creative site — as a way to feature my most popular and/or recent blog entries.  there’s so much content, from so many places, that I liked the idea of having a way to feature the longer-format posts on the front page, right at the top.

jazzsequence has been featured on DesignSnack and WeLoveWP.

www.jazzsequence.com

WordPress Plugins used: Dynamic Content Gallery, SimplePie, WP-O-Matic, Apture, Audio Player, IntenseDebate, Landing Sites, Upgrade Else DIE!, WP-sIFR, Yet Another Related Posts Plugin, WPTouch iPhone Theme

arcane palette home about arcane palette creative design contact arcane palette creative design arcane palette free stuff arcane palette's commitment to being green arcane palette portfolio arcane palette design services arcane palette swag