Hello. How can I make wider description section in my store?
I mean wider description like this:
ttachment
Hello. How can I make wider description section in my store?
I mean wider description like this:
ttachment
In Expanse theme there is a fix max-width of 750px for the product description section.
You an increase this value by modify the file theme.css
Just add this code to the end of the file and tune your preference. I setup 1080px in this example
@media only screen and (min-width: 769px) {
.collapsibles-wrapper--product {
max-width: 1080px;
}
}
Please add the following code at the bottom of your assets/theme.css file.
@media only screen and (min-width: 769px){
.collapsibles-wrapper--product {
max-width: 90% !important;
}
}
Hope this works.
Thanks!
Thank You. Im sure that will help.
Can You tell me If I can do that with HTML code?
I can make custom HTML section on my product page. I need make img with link to another page. Can I make code that another img will appear on desktop and another will appear on mobile?
and one picture is loading on desktop and mobile. I need another (with another ratio of course) on mobile than desktop.
Is there any solution?
Doing HTML not the good idea, I think. Using css is shortest and safest way.
If the above given css works then it will be the best for you.
Yes I know about css code to liquide its another topic about wider description.
HTML code is another topic and question If I can do it?
This is that topic - https://community.shopify.com/c/Shopify-Design/Custom-HTML-section-Can-I-create-IMG-html-code-to-desktop-and/m-p/1278617
Like this. Its banner with Custom HTML section. Can I paste code to make another picture show up on mobile?
Please add the following code at the bottom of your assets/theme.css file.
#shopify-section-product-sections-template .hero--padded {
display: none;
}
Hope this works.
Thanks!
Hero section there is for testing. I can delete it via custom page.
I mean if there is option to create HTML code for two IMG showing up:
one for desktop
another for mobile
Here is example for one IMG: can I add some code to make different img showing up?
<img src=“https://cdn.shopify.com/s/files/1/0559/7881/9741/files/baner_product_page.jpg?v=1628866622” alt=“Policzona Szama Naczynie ceramiczne do zapiekania Pulled Pork” style=“padding-top: 10px;”>
I need another IMG SRC for mobile. Is it possible?
OK,
I have code for one banner like this:
example:
and of course this IMG show up the same on desktop and mobile.
Now is the question it is possible to create code that will show up this IMG on desktop:
<img src=“https://cdn.shopify.com/s/files/1/0559/7881/9741/files/baner_product_page.jpg?v=1628866622” …
and another pic (with another ratio for better read) on mobile like this example IMG:
Please follow the steps: