I’ve used this method a bunch of times and have decided it’s high time to document the process. It’s my favorite method for using colorbox with the built-in WordPress gallery.
Put all three into a directory named colorbox inside of your theme folder’s js/ directory.
$(document).ready(function(){
$('.gallery a:has(img)').colorbox();
$(".colorbox").colorbox();
});
This will be sure that the colorbox script is used in the image gallery and also on any link that has the class “colorbox”, so you can add it to other images and links.
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/js/colorbox/colorbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/functions.js">
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/colorbox/jquery.colorbox-min.js"></script>
I usually like to put the colorbox css before my main theme’s stylesheet, in case I want to make any simple modifications to the defaults. Also, be sure to call in your javascript in the above order.
That’s it, except perhaps for some additional stylesheet-tweaking.
The SSDSA’s website got the biggest upgrade of its life this week when we launched the new website. This new site was created from the ground up in WordPress, with a brand new design and lots of additional custom programming.
This new site has dynamic Announcements and Events managed easily from within WordPress, as well as custom widgets, shortcodes, and other back-end cleverness to make the site dynamic and easy-to-use as well as manage
Launched a brand-new website for That All May Freely Serve. Their site had been an old Joomla installation that got hacked multiple times and finally died. Springthistle created a brand-new design for a brand-new WordPress installation and moved both hosting and registration to DreamHost.
Their new site will be so easy to manage, both in terms of editing their page content and adding news (blog) posts, and of course it’s handsome.
Hop on over to TCJewFolk.com and take a look at their new site. It’s still running WordPress, but has gotten quite a makeover from the old theme (blacks, yellows, greys) to the new one (blues, whites, usability).
These folks came to me after having launched their site entirely on their own a few months earlier. They had reached a point where they wanted to do more and wanted to have a new look, but couldn’t keep doing it entirely alone. They worked with a logo designer and then handed everything over to me to improve.
They seem pleased: “April, Wordpress guru and founder of Springthistle Design, created a look for the blog that creatively incorporated our new logo and greatly improved the user experience. She held our hands all along the way and made the process feel simple (even when we know it wasn’t).”
I signed on with the TCJewFolk people after reading about them in the Mpls Star Tribune earlier this fall. In the article, they talked about their goals for site to provide information and community connections to some of the many young people who have become disconnected from Judaism. And they said they needed ‘techie web geek.’ So I emailed them and here we are, working on a redesign of the site.
Can’t reveal the full plan just yet, but you can see from the peeks below that the visual changes alone will be quite dramatic!

current site

new design
Whenever I publish a WordPress website, I create a custom how-to pdf document for that client. It includes all the basics that they need to know in order to manage their WordPress content.
After modifying and perfecting this document for years, it’s finally ready for public release. This particular pdf is not customized to anyone in particular! Rather, it’s a universal version and contains information that’ll be useful to all of Springthistle’s clients, such as:
Download Springthistle’s Universal Basic WordPress How To
Mind you, I’ll still be customizing this doc for all of my clients, adding to the “Special Content,” “Plugins,” and “Shortcodes” sections as applies to their sites.
WordPress is built so that when you create a plugin, you can create a link to the plugin’s management page within the existing WordPress admin menu. The instructions for adding this link in Posts, Pages, Tools and Settings are clear. However, instructions for adding that link just under the Dashboard was hard to find. With some experimentation, I figured it out. (more…)
While working on a new client site, I needed to modify the three-level son-of-suckerfish css rollover menu to display first and second levels initially and only show third level on rollover. The resulting barebones CSS is below. (more…)
CakePHP continues to amaze me. There’s a new feature every time I turn around! Yesterday I experimented with something, and found that it worked. I couldn’t find documentation of it anywhere, so decided to write it down.
If you’ve got a model association defined in your model, you can change it on the fly from your controller.
For example, I’ve got Events and Registrants. Registrants can sign up for an event in step 1, and pay in step 2. At the end of step 1, the registrant is entered into the table as not_yet_paid (paid=0), and at the end of step 2, their row is marked as fully_paid (paid=1). But some people quit after step 1, without completing step 2. When reviewing event sign-up statistics, the client wants, understandably, to be able to separate out those who completed the process from those who didn’t. (Sometimes, if you send a prompt to someone who started but didn’t finish, they will come back and pay, so it’s worth keeping the data rather than just throwing it out.)
The association in my Event model looks like this:
var $hasMany = array( 'Registrant' => array( 'className' => 'Registrant', 'foreignKey' => 'event_id', 'dependent' => false, 'conditions' => 'Registrant.paid = 1', ), );
Now in my controller, I check for a variable set in the URL by the client user when viewing statistics, and decide based on that whether to change the ‘conditions’:
if ($showunpaid=='unpaidtoo') $this->Event->hasMany['Registrant']['conditions'] = null; else if ($showunpaid=='unpaidonly') $this->Event->hasMany['Registrant']['conditions'] = "Registrant.paid = 0";
This way, registered-but-unpaid registrants are never counted and never show up by default, but that can be changed easily from any controller.
Gotta love cake.
Today launched the culmination of many months of effort by myself and a host of other participants.
After receiving a design from an internal BJ designer, I created the new theme, including some custom shortcode programming, for this new from-the-ground-up WordPress website.
In addition, I built a to-order CakePHP application that allows the congregation’s staff to create, organize and track events and event registrations. More details and more screenshots available here.
The faculty of the Rutgers Genetics Department can now create their own lab websites easily and quickly with a custom multi-user CMS built specially for them by Springthistle Design. Built with CakePHP and integrated with a MSSQL database, and living on IIS using ISAPI_rewrite for clean URLs, this clean application allows the non-technical faculty of the department to create pages within their own sites, add images, and more.
Over at RhodiaDrive.com, they wanted to be able to sprinkle featured posts in the sidebar using widgets. Via my solution, the authors can choose a post to feature, add a text widget to the sidebar, and enter a simple shortcode. The widget will then display the post’s title and an excerpt of the content with a link to the post page.
Usage:
[ahs_featuredpost id=364]
Want it? Just copy the code below/after the jump into the functions.php file for your current theme and voila! You can then style the elements in the widget, which are all in a div with class=”featuredpost”.
Leah Hoffmann, a writer based in New York City with home Springthistle often collaborates, needed a new website where she could direct people to learn about her science and technology writing specialty. Springthistle designed and built this to Leah’s specifications. Launched today!
Want to be able to use WordPress shortcodes in your widgets? Just add the following to functions.php in your active theme:
add_filter('widget_text', 'do_shortcode');
Luna Imaging came back to me wanting their two-page portal site re-done. Their designer provided a draft design and I was consulted about improving it. After implementing most of my suggestions, they provided me with the finalized new design and I built it, all clean html and css with minimal use of images.
Nice working with you again, Luna Imaging!
Take a look at the new Luna Commons »
Launched a new website for Congregation Rodeph Sholom. Another successful synagogue site built with WordPress, customized up the wazoo, and easyphpcalendar handling the calendar and event listings.
As always, a custom unique design.
Take a look at the lovely Rodeph Sholom online »
Launched a new website for the Emanuel Synagogue. Custom-built with WordPress, using easyphpcalendar for the calendar and events.
Unique, custom design for the synagogue, along with a variety of customizations to WordPress to fit their needs.
Visit The Emanuel Synagogue »