Add text below price on product page

add_action( ‘woocommerce_product_meta_start’, ‘text_after_meta_start’ ); function text_after_meta_start(){ echo ‘  Beställ färgprovar Hemma hos dig inom 2 – 3 veckor Unik, stark och hållbar Tillverkas i vår egen verkstad i Malung-Sälen av lokalt virke Hög kvalitet till ett rättvist pris Personlig service…Continue reading

Moving product short description to under product image

remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_excerpt’, 20 ); add_action( ‘woocommerce_before_single_product_summary’, ‘start_left_side’, 5 ); function start_left_side() { print ‘ ‘.PHP_EOL; } add_action( ‘woocommerce_before_single_product_summary’, ‘woocommerce_template_single_excerpt’, 30 ); add_action( ‘woocommerce_before_single_product_summary’, ‘end_left_side’, 40 ); function end_left_side() { print ‘ ‘.PHP_EOL; print ‘ ‘.PHP_EOL; }Continue reading

Add top bar to Storefront Theme (PHP 1/2)

/** * Adds a top bar to Storefront, before the header. */ function storefront_add_topbar() { ?> Måttbeställt Tillverkade i vårt eget snickeri (Malung-Sälen) Hög kvalitet till ett rättvist pris Snabb leverans (2-3 veckor) <?php } add_action( 'storefront_before_header', 'storefront_add_topbar' );Continue reading

Removing the WooCommerce sidebar

function bake_my_wp_remove_storefront_sidebar() { if ( is_woocommerce() || is_checkout() ) { remove_action( ‘storefront_sidebar’, ‘storefront_get_sidebar’, 10 ); } } add_action( ‘get_header’, ‘bake_my_wp_remove_storefront_sidebar’ );Continue reading

Resizing Shop Page Product Thumbnail Image

add_filter( ‘storefront_woocommerce_args’, ‘bbloomer_resize_storefront_images’ ); function bbloomer_resize_storefront_images( $args ) { $args[‘single_image_width’] = 1500; $args[‘thumbnail_image_width’] = 600; $args[‘gallery_thumbnail_image_width’] = 1500; return $args; }Continue reading

Move description to after product on category page

add_action(‘woocommerce_archive_description’, ‘custom_archive_description’, 2 ); function custom_archive_description(){ if( is_product_category() ) : remove_action(‘woocommerce_archive_description’, ‘woocommerce_taxonomy_archive_description’, 10 ); add_action( ‘woocommerce_after_main_content’, ‘woocommerce_taxonomy_archive_description’, 5 ); endif; }Continue reading