Home › Forums › WoodMart support forum › need to change style of shipping methods on checkout and cart page
need to change style of shipping methods on checkout and cart page
- This topic has 8 replies, 2 voices, and was last updated 1 month, 3 weeks ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
October 31, 2024 at 7:33 pm #609109
tmo.trnkaParticipantThe shipping methods are sorted chaotically and I need to change that… The shipping text should be above the shipping methods, then the shipping methods in the left column and the prices in the right column. I am attaching pictures, the first picture shows my website, the second picture shows how it should look.
Attachments:
You must be logged in to view attached files.November 1, 2024 at 10:48 am #609178
Aizaz Imtiaz AwanKeymasterHello,
Can you please share the page URL so I will check and give you a possible solution?
Best Regards
November 1, 2024 at 12:03 pm #609220
tmo.trnkaParticipantYeah sorry – nove.zapichy.sk
November 1, 2024 at 3:05 pm #609275
Aizaz Imtiaz AwanKeymasterHello,
Please add the below Custom CSS code to Theme Settings > Custom CSS > Global Custom CSS:
/* Align the radio buttons and text in a row */ #shipping_method li { display: flex; justify-content: space-between; align-items: start; padding: 5px 0; } /* Adjust radio button positioning */ #shipping_method input[type="radio"] { margin-right: 20px !important; } /* Align text on the left and price on the right */ #shipping_method label { flex: 1; display: flex; justify-content: space-between; }
Best Regards
November 1, 2024 at 5:35 pm #609318
tmo.trnkaParticipantnot good… i want Doprava(shipping text) on top, then under Doprava i want shipping options, your code make it even worse, also on mobile phone radio button automaticly uncheck after a few seconds. There is image how it is looks like.
Attachments:
You must be logged in to view attached files.November 2, 2024 at 9:14 am #609375
Aizaz Imtiaz AwanKeymasterHello,
Please remove the previous code and try adding the following Custom CSS in the desktop Custom CSS area under Theme Settings >> Custom CSS.
#shipping_method li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; right: 80px !important; position: relative; margin-top: 30px; } #shipping_method input[type="radio"] { right: 10px !important; } table :is(tbody,tfoot) th { flex: 1 !important; display: flex; justify-content: space-between !important; }
Best Regards.
November 2, 2024 at 4:32 pm #609446
tmo.trnkaParticipantnow it is even worse…
Attachments:
You must be logged in to view attached files.November 2, 2024 at 9:48 pm #609468
tmo.trnkaParticipanti got it…
/* Zarovná celú tabuľku dopravy */
.woocommerce-shipping-totals {
display: flex;
flex-direction: column;
}
/* Zobrazí nadpis ‘Doprava’ ako samostatný riadok nad možnosťami */
.woocommerce-shipping-totals th {
text-align: left;
width: 100%;
height: 40px;
text-decoration: underline;
text-decoration-color: #e4e4e4;
text-underline-offset: 1em;
}
.woocommerce-shipping-totals td {
width: 100%;
}
/* Nastaví zarovnanie dopravy v dvoch stĺpcoch */
#shipping_method label {
display: flex;
justify-content: space-between;
}
but thanks for your time…November 4, 2024 at 11:21 am #609652
Aizaz Imtiaz AwanKeymasterHello,
You’re welcome! Glad you were able to sort it out and get the desired layout. If you need any further assistance or adjustments, feel free to reach out.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register