i’ll put the old codes and see what happens..
old childtheme functions
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css', array('bootstrap'));
if ( is_rtl() ) {
wp_enqueue_style( 'rtl-style', get_template_directory_uri() . '/rtl.css');
}
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array('parent-style', 'bootstrap')
);
function sv_remove_product_page_skus( $enabled ) {
if ( ! is_admin() && is_product() ) {
return false;
}
return $enabled;
}
add_filter( 'wc_product_sku_enabled', 'sv_remove_product_page_skus' );
}
/* Change Description Tab Title & Heading To Product Name
* http://gerhardpotgieter.com/2013/09/04/woocommerce-change-description-tab-title-heading-product-name/
*/
// Change the description tab heading to product name
add_filter( 'woocommerce_product_description_heading', 'wc_change_product_description_tab_heading', 10, 1 );
function wc_change_product_description_tab_heading( $title ) {
global $post;
return $post->post_title . ' Audio Sample';
}
// Add action to hook into the approp
add_filter( 'woocommerce_placeholder_img_src', 'growdev_custom_woocommerce_placeholder', 10 );
/**
* Function to return new placeholder image URL.
*/
function growdev_custom_woocommerce_placeholder( $image_url ) {
$image_url = 'http://onthecornermanila.com/images/placeholder.png'; // change this to the URL to your custom placeholder
return $image_url;
}
// To Move price underneath title use code
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
// remove action which show Price on their default location
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 20);
// add action with Priority just more than the woocommerce_template_single_title ;
add_filter('woocommerce_single_product_image_thumbnail_html','wc_remove_link_on_thumbnails' );
// Change the Single Product Image Click
function wc_remove_link_on_thumbnails( $html ) {
return strip_tags( $html,'<img>' );
}