-
-
Hi guys,
could you help me? I would like to have one column in the complete the look.
-
Hello,
Please go to file includes/codeless_functions_woocommerce.php and find this line:
if( is_single() && isset($woocommerce_loop['name']) && $woocommerce_loop['name'] == 'cross-sells' ) $cols = codeless_get_mod( 'shop_cross_sell_single', 2 );
Change the value 2 to 1 and save changes.
Best regards!
- This reply was modified 5 years, 8 months ago by Mirela. Reason: wrong file name
-
Hello,
That’s not the right file:
https://ibb.co/PmWm95JBest regards!
- This reply was modified 5 years, 8 months ago by Mirela.
-
It is the location you said.
I don’t know why /cart/ is in between. I think your code is wrong then.
-
There is not even a cross-sells.php in the cart folder.
Please provide the right code. Really need this to be in one column as in the example of your theme.
-
-
Hello,
Hmm you are right. It was a speedy mistake, i saw the wrong path, while editing the right file. So the file in question is includes/codeless_functions_woocommerce.php. I can’t make the change for you. SFTP connection needed. Please try again.
Best regards!
-
Hi there,
I’ve added the file to mij child theme in the includes folder and there I have made the change but it does not do the trick.
Even if I change it in the main theme it is not working.
See screenshot.
-
-
Hello,
But i see the change is showing in the single product page: https://ibb.co/6wfJGTm
Is this not what you wanted?Regards!
-
Yes, but this is 2 columns. I want it to be one column. So there has to be one image.
-
-
Hello,
In the same file find this block:
<?php $woocommerce_loop['name'] = 'cross-sells'; $woocommerce_loop['columns'] = 2; // Handle orderby and limit results. //$orderby = apply_filters( 'woocommerce_cross_sells_orderby', $orderby ); //$cross_sells = wc_products_array_orderby( $cross_sells, $orderby, $order ); //$limit = apply_filters( 'woocommerce_cross_sells_total', $limit ); //$cross_sells = $limit > 0 ? array_slice( $cross_sells, 0, $limit ) : $cross_sells; wc_get_template( 'single-product/cross-sells.php', array( 'cross_sells' => $cross_sells, // Not used now, but used in previous version of up-sells.php. 'posts_per_page' => 4, 'columns' => 2, ) ); ?>
Edit out the number 2, to 1. Save, clear cache and refresh page.
Best regards!
-
Really, it is not working. It resizes the current column.
Looks like you do not understand me. I do not want to show two items, just one that covers the full width.
-
-
Hello,
I added some custom css in General > Custom css. Please go to file css / codeless-woocommerce.css and find this line:
.single-product .cl-complete-look .shop-products.name-cross-sells .product_item .cl-thumb-wrapper{ max-width: 120px !important; width:75% !important; }
Edit max-width to 320px. Save changes.
Let me know.Best regards!
-
-
You must be logged in to reply to this topic.