Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #301576

    I have followed the instructions on this page:

    http://kriesi.at/documentation/enfold/change-woocommerce-single-product-page-layout/

    I was curious how I could get the side bar to appear on the left instead of the right please.

    Many thanks.

    Luke

    #301581

    Hi Luke!

    Please use following code instead

    #
    # wrap single product image in an extra div
    #
    add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2);
    add_action( 'woocommerce_before_single_product_summary',  'avia_close_image_div', 20);
    function avia_add_image_div()
    {	echo "<div class='three units single-product-sidebar alpha'>";
    	get_sidebar();
    	echo "</div>";
    	echo "<div class='four units single-product-main-image'>";
    }
     
    function avia_close_image_div()
    {
    	global $avia_config;
    	$avia_config['currently_viewing'] = "shop_single";
     
    	echo "</div>";
    }
     
     
    #
    # wrap single product summary in an extra div
    #
    add_action( 'woocommerce_before_single_product_summary', 'avia_add_summary_div', 25);
    add_action( 'woocommerce_after_single_product_summary',  'avia_close_summary_div', 3);
    function avia_add_summary_div()
    {
    	echo "<div class='five units single-product-summary'>";
    }
    
    function avia_close_summary_div()
    {
    	echo "</div>"; //close out the summary
    }

    Regards,
    Yigit

    #301608

    Yigit, your a superstar, thank you very much.

    Can I ask, would it be easy to select which sidebar to show?

    I would like to display the “Shop Overview Page” sidebar.

    Thanks again,

    Luke

    #301609

    Also, are you paid for your work here on Kriesi.at?

    If not, it would be good to allow people to tip people a couple of dollars for helping!

    #301922

    Hey!

    Yep, we are paid support :)

    You would need to change the get_sidebar(); to point to the sidebar name of your choice. See: http://codex.wordpress.org/Function_Reference/get_sidebar

    Cheers!
    Devin

    #345948

    Could someone please advise if the above code has changed due to the update to Enfold/Woocommerce.

    It is no longer working for me and displays everything in a full width column.

    Many thanks,

    Luke

    #345949

    Hi!

    Yes, no need to add functions now. Do you mind posting the link to your website so we can take a look?

    Cheers!
    Yigit

    #346486

    http://www.o-mills.co.uk/dev/product/secret-trinkets-cream-and-crystal-seahorse/

    That is how the product page appears when using the code above in the functions.php in my child theme.

    Luke

    #347098

    Hey!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .three.units.single-product-sidebar.alpha { width: 25%; }
    .single-product-main-image { width: 25%; }
    .five.units.single-product-summary { width: 35%; }

    Cheers!
    Yigit

    #383135

    Hi Yigit,

    Is there a way to display 3 related products at the bottom of the content area?

    Luke

    • This reply was modified 9 years, 10 months ago by Luke86. Reason: updating
    #383392

    Hi!

    You mean like on our demo? http://kriesi.at/themes/enfold/product/zoku-trioquick-pop-maker/

    As long as the products have the same tag assigned to them then they will display as related products.

    Cheers!
    Elliott

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.