Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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 :)

    #350137

    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

    #350711

    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.

    #351028

    Hi!

    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 ago by Elliott.
    #351229

    Hi, unfortunately same result.

    here’s the current code in my child theme functions.php

    EDITED

    • This reply was modified 10 years ago by user877. Reason: removed link to website
    #351513

    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

    • This reply was modified 10 years ago by Elliott.
    #351801
    This reply has been marked as private.
    #351909
    This reply has been marked as private.
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Adding enfold elements on Product Page’ is closed to new replies.