Hi
I have the right size on desktop but mobile isnt wide like the other components, could we make this section wider on mobile?
See attached image:
A user encountered an issue where a trust badges container displayed at the correct width on desktop but appeared narrower than other components on mobile.
Solutions Provided:
Multiple community members offered CSS fixes targeting mobile viewports:
theme.liquid before the </head> tag using a media query for screens under 750px widthsection-main-product file in the assets folder, adding CSS targeting the specific Shopify trust badges block ID with max-width: 100% !importantbox-sizing: border-boxOutcome:
The original poster confirmed the first solution worked successfully and marked it as accepted. The issue was resolved by applying mobile-specific CSS to force the trust badges container to match the full width of other page elements.
Hi
I have the right size on desktop but mobile isnt wide like the other components, could we make this section wider on mobile?
See attached image:
Hi @Dekanten ,
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Hi and thank you so much really glad that the results works like a charm here. ![]()
Big huge thanks ![]()
@Dekanten , glad it worked. Your most welcome!
Hello @Dekanten
Go to online store ----> themes ----> actions ----> edit code ----> assets ----> section-main-product
add this code at the end of the file.
@media only screen and (max-width: 749px) {
#shopify-block-essential_trust_badges_app_block_dw87kL {
max-width: 100% !important;
}
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
To make the section wider on mobile, you’ll need to adjust the CSS for that specific section. You can do this by targeting the mobile screen sizes using media queries. Here’s an example:
@media only screen and (max-width: 768px) {
.your-section-class {
width: 100%; /* Adjust this percentage based on your layout needs /
padding: 0 15px; / Add padding to prevent it from touching the edges /
box-sizing: border-box; / Ensures padding doesn’t affect the width */
}
}