Archive
Tag "Tricks"

Have you ever wondered how your WordPress posts might look when they’re shared on Facebook?

If you’ve ever shared a link on your Facebook account, you’ve noticed the nifty Title, Image and Description that get automatically loaded to provide an attractive link. Depending on how your particular theme is built, sometimes you’ll have to cycle through several images, before the actual appropriate post image shows up with …

Read More

Occasionally you’ll need to fetch a posts image outside of the loop.

...

Read More

I recently noticed that a particular post had built up about 10 or 15 revisions for it. I started thinking that of all the posts I have, there have to be quite a few revisions and therefore are creating a hefty sized table in my database. This was run on my WP 2.8, but should work for 2.6 and up.

Here is a solution to prevent revisions from being created, as well as removing all revisions …

Read More

Here is a round up of some very useful tricks and snippets for web designers.

Resizeable Background Image with jQuery
15 Wicked CSS Tricks
Build a jQuery Interactive Map
Better Way To Register the WP Sidebar

Read More

If you’re a WordPress theme developer, I’m sure you’ve run into the problem of styling, and altering comments in your theme. Now that comments are called through a loop to allow for the much anticipated threaded comments feature, we’ll have to make use of our function file to style the comments.

If you’re like most every other developer, the first thing you want to get rid of is the “says” that follows the authors name. Now …

Read More

And I’ve been steady with javascript:; ever since.

Ever since I’ve become friends with jQuery, I’ve found that using # inside an anchor href has become occasionally overly jealous and sometimes outright psychotic. After these past incidences, which usually fall in line with using fun stuff like localScroll and scrollTo, I’ve decided to tell # to # sand, and strictly go with javascript:; inside my href.

As # works as an anchor reference point, …

Read More

TimThumb PHP Script is a custom image-sizing script, that allows you to produce a cropped and sized version of an image. These are great to use along with a WordPress Magazine Theme. TimThumb has recently been released as open source, and here I will walk you through adding TimThumb to your WordPress theme.

Read More

Perhaps you’re the guy who still has to hit the “Print Screen” button, paste into Photoshop, and use the marquee tool to measure the pixel width of an element in a website you’re working on.

If so, here are a couple alternatives.

01. XRAY Bookmarklet
My first choice, is to make use of XRAY. It is just a javascript that allows you to click any block element on a page, and it gives you a …

Read More

Here is a tutorial on how to add the Shadowbox modal box to your Magento powered online store. For those unfamiliar with Magento, it is the latest and greatest in open-source eCommerce software. Varian has done the online communi-tay a great service by building a shopcart the right way, from the ground up. Thanks Varian! Granted, Magento has a strong learning curve, so those unfamiliar with basic HTML, CSS, or hacking at code… beware.

Read More

I use Dreamwweaver CS3 for all of my code editing, and I currently have the pleasure of working with the new Magento Shopcart Software. While adding Shadowbox to the cart, I ran into the small problem of Magento template files that use the rare .phtml file extension. As Dreamweaver by default does not color code the syntax, it makes it difficult to read the php code that makes up the template file.

Here is how I added syntax highlighting to a specific file type that is not listed by default in Dreamweaver.

Read More