Tony Thomas

Father to two, husband to one, web developer and musician.


Posts Tagged ‘baseline theme’


Baseline Theme Version 1.1

Sunday, September 5th, 2010

It had been a while since I’d done any WordPress development, but I recently dusted off my Baseline theme to start a new project only to find that the jQuery libraries weren’t loading properly. A quick bit of research revealed that new versions of WordPress require a slightly different syntax when using jQuery, so I made a few changes.

  1. jQuery UI is now loaded using wp_enqueue_script("jquery-ui"); instead of linking to Google’s hosted copy.
  2. The code for loading Superfish uses this syntax:
    jQuery(document).ready(function() {
            jQuery('ul.sf-menu').superfish();
        });
  3. Lists will now obey margins of neighboring floating elements by default because I declared this in style.css:
    div#content ul, div#content ol {
    	list-style-position: inside;
    }

Later versions of WordPress don’t support the ‘$’ syntax normally used with jQuery. Wherever you would normally use ‘$’ (such as $(document).ready ();), you have to use ‘jQuery’ instead (jQuery.document.ready();). There were a couple of other housekeeping items like reformatting style.css and creating a table of contents for it. Baseline should be all set to work with the latest versions of WordPress again. Download it here.

Baseline WordPress Theme Version 1.0.2

Monday, March 22nd, 2010

I’ve uploaded a new version of the Baseline theme for WordPress development. The only change this time around is that I’m using wp_enqueue_script() to include WordPress’ existing copy of JQuery. (Hat tip to Chris Coyier.) This seems like a significant enough change to merit a small version bump.

I used the Baseline theme as a launching pad for this website. At least for me, it serves as a good starting point when you begin developing a brand new theme.

If you find this useful, you might be interested in checking out Jeff Star’s functions.php template.

Baseline Theme Version 1.0.1

Tuesday, February 16th, 2010

There is a new version of the Baseline Theme. In the last few days of tinkering with it and modifying it for use with this website, I noticed a small bug. The Blueprint IE reset was acting funny in conjunction with the IE8 JavaScript. I chose to make IE8.js the default with the option of including Blueprint’s reset instead. (more…)

Blueprint Optional Fancy-Type Plugin

Monday, February 15th, 2010

The Baseline Development WordPress Theme has Blueprint plugged in already. There are some optional Blueprint plugins you can take advantage of. We’ll take a look at the fancy-type plug-in. (more…)