Home Forums WoodMart support forum Attributes! Reply To: Attributes!

#53287

nackgr
Participant

<?php

add_action( ‘wp_enqueue_scripts’, ‘woodmart_child_enqueue_styles’, 1000 );

function woodmart_child_enqueue_styles() {
$version = woodmart_get_theme_info( ‘Version’ );

if( woodmart_get_opt( ‘minified_css’ ) ) {
wp_enqueue_style( ‘woodmart-style’, get_template_directory_uri() . ‘/style.min.css’, array(‘bootstrap’), $version );
} else {
wp_enqueue_style( ‘woodmart-style’, get_template_directory_uri() . ‘/style.css’, array(‘bootstrap’), $version );
}

wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array(‘bootstrap’), $version );

function woodmart_custom_attributes() {
global $product;
wc_display_product_attributes( $product );
}
remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_excerpt’, 20 );
add_action( ‘woocommerce_single_product_summary’, ‘woodmart_custom_attributes’, 20 );

function woodmart_remove_product_tabs( $tabs ) {
unset( $tabs[‘additional_information’] ); // Remove the additional information tab
return $tabs;
}
add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’, 98 );

}