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

    Hi,
    For the “woocommerce single project page layout”
    I tried to refer below official solution

    Shop

    After that.
    The product are too big.

    Screenshot :
    https://nimb.ws/6D89Sz

    I hope to display product image on the left, product description on the middle. sidebar widget on the right.
    I found there are many users ask same questions.
    I tried some of solution here before. It still not work well.

    Is it possible to have a template or a final solution with CSS here?

    Shop

    Thank you very much!

    #1155239

    Hey HeeHA,
    Sorry for the late reply, please try this solution:
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    add_action('init','ava534345953_init', 50);
    function ava534345953_init() {
    	add_action( 'woocommerce_after_single_product_summary', 'avia_add_sidebar', 25);
    }
    
    function avia_close_image_div() {
    	global $avia_config;
    	echo "</div>
    ";
    }
    
    function avia_add_sidebar() {
    	if(is_product()) {
    	$avia_config['currently_viewing'] = "shop_single";
    	get_sidebar();
    	}
    }

    Then add this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    //add right sidebar to woo product page
    .single-product-main-image {
        width: 25%;
    }
    
    .single-product-summary {
        overflow: hidden;
        width: 45%;
        float: left;
        margin-right: 5%;
    }
    
    .single-product .sidebar {
        width: 25%;
    }

    Before:
    2019-11-09-132840
    After:
    2019-11-09-132613

    Best regards,
    Mike

    #1155266

    HI Mike
    Thank you very much for your reply.

    I tried it before.
    It will have problem on mobile version.
    Screenshot:
    https://nimb.ws/eMWBLA

    I tried to adjust CSS. Seems no changes.
    Could you help it?

    Thanks!

    #1155267

    Hi,
    Thank you for the feedback, for mobile you will have to allow for full-width, I tried to check but couldn’t find the exact item as in your screenshot, but the ones I saw were correct, sidebar in desktop and full width in mobile.
    Please see the screenshots in Private Content area.

    Best regards,
    Mike

    #1155268

    Hi Mike

    Ha. I am trying to adjust it by myself.
    Here is the CSS I tried :

    .single-product-summary {
        overflow: hidden;
        /* width: 45%; */
        float: left;
        margin-right: 2%;
    }

    It still have problem. Please kindly see the Private Content.

    By the way. The sidebar now seems woocommerce default widget.
    It not shown the widget “Single Product Pages”.

    Hope your help. THANKS!

    #1155275

    Hi,
    Thank you for the feedback, please include a link to this page so we can test with the same one, also which browser are you using?

    Best regards,
    Mike

    #1155298

    Hi Mike
    Please see the Private Content.

    I am still trying the CSS.

    I choose the sidebar for the product Sidebar Setting. It’s ok now.
    Is it possible to be the global setting?
    No need to choose the setting every time.

    Thanks!

    #1155299

    Hi Mike

    I use chrome.
    Here is the CSS I tried in our case:
    On desktop, mobile version looks good.
    But on ipad. The sidebar not look well.
    Screenshot :
    https://nimb.ws/3fOzYq

    Hope you have the solution.
    Thank you!

    //add right sidebar to woo product page
    .single-product-main-image {
        width: 25%;
    }
    
    .single-product-summary {
        overflow: hidden;
        /* width: 45%; */
        float: left;
        margin-right: 1%;
    }
    
    .inner_sidebar {
        margin-left: 15px;
    }
    
    .single-product-main-image {
        width: 29%;
        float: left;
        margin-right: 20px;
        overflow: hidden;
        padding-bottom: 50px;
    }
    
    
    #1155316

    Hi,
    Thanks for the link and screenshot, so currently the mobile brake point for the page is 767px, so we will change it to 1399px, at that point there is plenty of room for the 3 columns.
    Please try this css:

    @media only screen and (min-width: 768px) and (max-width: 1399px){
    #top .sidebar_right.template-shop .single-product-summary,#top .sidebar_right.template-shop .single-product-main-image.alpha {
    	width: 60% !important; 
    }
    #main > div.container_wrap.sidebar_right.template-shop > div {
    	padding: 0 10px !important; 
    }
    }

    After applying the css, Please clear your browser cache and check.

    Best regards,
    Mike

    #1155342

    Hi Mike
    It’s great now!
    Thank you very much!

    #1155355

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘woocommerce single project page layout official solution’ is closed to new replies.