Hi,
Is it possible to add elements above the default product image/title/price/description area? If I add it’s placed underneath the woocommerce stuff.
Loving the theme – no issues to report at all :)
Hey user877!
Try adding this to the bottom of your /enfold/functions.php file.
add_action( 'woocommerce_before_single_product', 'enfold_customization_product_description' );
function enfold_customization_product_description() {
echo the_content();
}
add_filter( 'woocommerce_product_tabs', 'enfold_customization_remove_description_tab', 98 );
function enfold_customization_remove_description_tab($tabs) {
unset($tabs['description']);
return $tabs;
}
That will remove the description tab and add it above everything else.
Best regards,
Elliott
Hi, thanks for the prompt response.
I did add the code you suggested in child/functions.php but made the site fall over. Went into FTP and deleted the code, now all OK.
Hi!
If your adding it to a child theme then make sure it’s surrounded with php tags.
<?php
code goes here
?>
Regards,
Elliott
Hi, unfortunately same result.
here’s the current code in my child theme functions.php
EDITED
Hey!
Not sure what else to tell you because it’s working fine on my XAMPP setup. Make sure you copy the code in my first post and paste it right before this line at the end of the file.
?>
Regards,
Elliott