Adding the Genesis SEO Settings to Products

Add this code snippet to your Genesis child theme to enable the built in SEO options for the product post type.

Adding the Post Type Support.

If your using a Genesis child theme (recommended if you customizing your theme otherwise changes will be lost if you update the framework)

Simply copy and paste this function below into your themes functions.php file.

[php]

add_action(‘init’, ‘add_genesis_support_wpsc’);

function add_genesis_support_wpsc() {

add_post_type_support( ‘wpsc-product’, ‘genesis-seo’ );

}

[/php]

Save your file, clear your cache and next time you go to create a product you will see Genesis SEO support has now been added.

Note: You can also add layout support for the Genisis layout settings you could add the suport for that into the same function

eg:

[php]

add_action(‘init’, ‘add_genesis_support_wpsc’);

function add_genesis_support_wpsc() {

add_post_type_support( ‘wpsc-product’, ‘genesis-seo’ );

add_post_type_support( ‘wpsc-product’, ‘genesis-layouts’ );

}

[/php]