Ciodensky Posted November 4, 2021 Share Posted November 4, 2021 Site URL: https://www.xystema.com/ Hi, I would like to re-arrange the product contents in the product-block (not in the product-page). I want the product-variant to be on top of the price. I will appreciate any feedback here. Thank you. Link to comment
Ciodensky Posted November 4, 2021 Author Share Posted November 4, 2021 Hi @creedon, can you post your answer here. Thanks. Link to comment
Solution creedon Posted November 4, 2021 Solution Share Posted November 4, 2021 Try the following for product blocks. Add the following to Page Settings > Advanced > Page Header Code Injection for the page. <style> /* begin product blocks variants first Version : 0.1d0 SS Version : 7.1 By : Thomas Creedon < http://www.tomsWeb.consulting/ > */ .product-block .productDetails { display : -webkit-box; display : -ms-flexbox; display : flex; -webkit-box-orient : vertical; -webkit-box-direction : normal; -ms-flex-direction : column; flex-direction : column; gap : 20px; } .product-block .productDetails > *, .product-block .productDetails .product-price, .product-block .productDetails .product-title { margin-bottom : 0; margin-top : 0; } .product-block .productDetails .product-variants { -webkit-box-ordinal-group : 0; -ms-flex-order : -1; order : -1; } /* end product blocks variants first */ </style> Let us know how it goes. Ciodensky and tuanphan 2 Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment