-
AuthorPosts
-
November 11, 2014 at 10:20 pm #349703
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 :)
November 12, 2014 at 5:29 pm #350137Hey 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,
ElliottNovember 13, 2014 at 4:44 pm #350711Hi, 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.
November 14, 2014 at 12:44 am #351028Hi!
If your adding it to a child theme then make sure it’s surrounded with php tags.
<?php code goes here ?>Regards,
Elliott-
This reply was modified 10 years, 11 months ago by
Elliott.
November 14, 2014 at 1:52 pm #351229Hi, unfortunately same result.
here’s the current code in my child theme functions.php
EDITED
-
This reply was modified 10 years, 11 months ago by
user877. Reason: removed link to website
November 14, 2014 at 9:26 pm #351513Hey!
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-
This reply was modified 10 years, 11 months ago by
Elliott.
November 15, 2014 at 1:44 pm #351801This reply has been marked as private.November 15, 2014 at 10:09 pm #351909This reply has been marked as private. -
This reply was modified 10 years, 11 months ago by
-
AuthorPosts
- The topic ‘Adding enfold elements on Product Page’ is closed to new replies.
