Add Scripts to WP Header.php with Functions.php

Sometimes we need to add references to scripts, metatags or conditional styles to the WordPress <head></head> section in header.php. WordPress has an action hook for this purpose. It’s very easy to use. To add scripts, conditional styles or links to header.php, use the wp_head() action hook, like this: add_action(‘wp_head’, ‘function_name’); function function_name() { echo “\n”; … Read more

Give Your MarketPress Shopping Cart the Grid View Treatment

MarketPress from WPMU is a wonderful shopping cart with lots of display options and payment gateways. It’s excellent for selling shippable and downloadable goods. I rate it above WooCommerce and other expensive shopping carts. But MarketPress lacks one huge (often essential) component: it has no gridview. Without gridview you can’t display goods side-by-side as clickable … Read more

How to Center the Genesis Theme Logo Image

The Genesis theme usually places the header image to the left side of the page. You can center it with a quick snippet of CSS. Center your theme logo header image by putting this CSS in your child theme’s style.css file: /** Center the header image */ #header { background-position: top center; } If you … Read more

Make Genesis Themes BuddyPress Compatible

The Genesis theme framework for WordPress has a BuddyPress compatibility plugin called Genesis Connect for BuddyPress. It is a free plugin, has been for a couple of months. Don’t use it. It’s not fully compatible with BP 1.6.3. Use the officially recommended BP Templates Pack plugin instead. If you do use Genesis Connect you might … Read more