Archives: Snippets

Cart Fees

Do you need to add some type of fee to your shopping cart? An extra line item not associated with a product? In the following article I’ll show you a couple ways this can be accomplished. The above code includes two examples. The first example adds a simple “Special Handling Fee” of $5.25 to the …

Cart Fees Read More »

Show Post View Count

Have you ever wanted to display a count of the current post’s views? Here’s a small code snippet that you can add to your site to accomplish this: In this example, I’m using the ‘genesis_after_content’ action to hook into a point within the Genesis Framework’s actions in order to display the view count after the …

Show Post View Count Read More »

Site Functionality Plugin

I feel that the best way to add code snippets to your site is through what many developers call a “Site Functionality Plugins.” This is because, unlike a theme’s functions.php file, a custom plugin will never be overwritten when/if you update your theme. Better yet, the plugin’s features are not lost if you decide to …

Site Functionality Plugin Read More »