Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #334376

    Hello!
    How can I modify woocommerce product by adding “Share this entry” section from post under product image?
    I’m talking about “Photography Demo”.

    #334664

    Hi artspbseo!

    Thank you for using Enfold.

    You can add this on functions.php:

    remove_action( 'woocommerce_before_single_product_summary',  'avia_close_image_div', 20);
    add_action( 'woocommerce_before_single_product_summary',  'avia_product_share', 20);
    
    if(!function_exists('avia_product_share'))
    {
    	function avia_product_share()
    	{
    		global $avia_config;
    		if(is_product()) {
    		$avia_config['currently_viewing'] = "shop_single";
    		get_sidebar();
    		}
    		
    		//share links on single post
           	avia_social_share_links();
    		echo "</div>";
    	}
    }

    Regards,
    Ismael

    #335016
    This reply has been marked as private.
    #335422

    Hey!

    I checked functions.php but the code is not there. Please make sure that the wp-content folder has correct file permission in order to edit the file. Please ask your host.

    Regards,
    Ismael

    #337690

    Now working. Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Share-box for Products’ is closed to new replies.