Disable WP E-Commerce scripts and stylesheets

This comes straight outta the getShopped forums: http://getshopped.org/forums/topic/disable-all-wpsc-javascript-and-css-files-3/ via cannobbio. To disable all scripts and stylesheets, add this code to the functions.php file in your theme folder: // Remove Styles function childtheme_deregister_styles() { wp_deregister_style( ‘wpsc-theme-css’ ); wp_deregister_style( ‘wpsc-theme-css-compatibility’ ); wp_deregister_style( ‘wpsc-product-rater’ ); wp_deregister_style( ‘wp-e-commerce-dynamic’); wp_deregister_style( ‘wpsc-thickbox’ ); wp_deregister_style( ‘wpsc-gold-cart’ ); } add_action( ‘wp_print_styles’, ‘childtheme_deregister_styles’, 100 […]

The cobbler has shoes! Finally!

After years of using the plain-jane but wonderful Thematic default theme for my personal site, I’ve finally gotten around to designing a theme of my very own. Its a child theme of Thematic like all my sites these days. The colors are from the Tango icons color palette. It was drawn in Inkscape and Gimp. […]

Control error reporting level in WordPress

When you enable error reporting in WordPress you automatically get all errors, notices, warnings and what have you written to your wp-content/debug.log. One of my plugins was creating so many undefined index errors it made the log impossible to read. I needed to fine tune my error reporting. WordPress error reporting bypasses your php.ini settings […]

Slickr gallery for Thematic

Slickr Gallery is a sleek little WordPress plugin for displaying Flickr albums on websites. The themes included in the plugin don’t work with Thematic based themes so I made one that does. Download Download slickr_thematic_theme.tar.gz Installation Just download this file, un-tar it ($ tar -xvzf slickr_thematic_theme.tar.gz) and copy the extracted folder to wordpress/wp-content/plugins/slickr-gallery/themes. Then you […]

Add Mootools to a WordPress child theme

The following code, when included in the functions.php file in your WordPress child theme, will correctly load Mootools and a custom script. This is the only way I am able make custom scripts work, but you hear a lot of stuff out there on the interweb… <?php function add_js() { $stylesheet_dir = get_bloginfo(‘stylesheet_directory’); $myscript = […]

FTOB: Using jQuery with WordPress

Originally posted on 10/10/08 at http://likesalmon.wordpress.com I struggled with this, as the usual method of including a javascript library and an external javascript script did not work. Usually, I would do this: <script style=”text/javascript” src=<?php bloginfo(‘url’); ?>/wp-includes/js/jquery/jquery.js” ></style> <script style=”text/javascript” src=<?php bloginfo(‘template_directory’); ?>/myScript.js” ></style> But that didn’t work at all, even when I included the […]