0

Change number of related products output Hook

To change the number of related products display in the detail page,use the following code in your theme’s functions.php file. [code language=”php”] add_filter( ‘woocommerce_output_related_products_args’, ‘sp_related_products_args’ ); function sp_related_products_args( $args ) { $args[‘posts_per_page’] = 4; // 4 related products $args[‘columns’] =… Continue Reading

0

Remove Woocommerce default address fields

Use the following action hook to remove default address fields value from checkout page [code language=”css”] <pre><code>add_filter(‘woocommerce_default_address_fields’, override_address_fields’); function override_address_fields( $address_fields ) { $address_fields[‘address_1’][‘placeholder’] = ”; $address_fields[‘address_2’][‘placeholder’] = ”; $address_fields[‘city’][‘placeholder’] = ”; $address_fields[‘state’][‘placeholder’] = ”; $address_fields[‘postcode’][‘placeholder’] = ”; return $address_fields;… Continue Reading

0

Removing WooThemes Updater Plugin Notice and IgniteWoo Updater Notice

Add the following lines in function.php [code language=”css”][/code] // Remove WooCommerce Updater remove_action(‘admin_notices’, ‘woothemes_updater_notice’); // Remove IgniteWoo Updater remove_action(‘admin_notices’, ‘ignitewoo_updater_notice’); [/css] We noticed after the installation of the new version of Woocommerce, WooThemes and IgniteWoo Plugins there will be a… Continue Reading

0

WordPress Breadcrum function

function.php code [code function=”css”] function the_breadcrumb() { global $post; echo ‘<div class="breadcrumb">’; if (!is_home()) { echo ‘<a href="’; echo get_option(‘home’); echo ‘">’; echo ‘Home’; echo ‘</a> / ‘; if (is_category() || is_single()) { echo ”; the_category(‘ / ‘); if (is_single())… Continue Reading