Solved

How can i remove the highlighted area from my image to text block in showcase theme?

printedbyus
Tourist
15 0 3

Hi there,

Im wanting to remove the highlighted pink area from the text section in my image to text block. I have tried different code and nothing seems to be working. I cropped my image to be the correct size but it just keeps adding more padding so the entire block stays the same size. is there anything i can do to reduce the size of this block and the empty space? 

Screenshot 2024-04-16 at 19.31.45.png

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
5930 1426 1756

This is an accepted solution.

oh, okay I understand now. Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media (min-width: 1441px){
.padded-block {
    padding: 0px;
}
}
@media (min-width: 992px){
.padded-block {
    padding: 0px;
}
}
@media (min-width: 768px){
.padded-block {
    padding: 0px;
}
}

 

And Save. 

Every screen size have different padding I take all of that and remain this one. 

Made4uoRibe_0-1713373178022.png

If the code above wont work add !important.

 

@media (min-width: 1441px){
.padded-block {
    padding: 0px !important;
}
}
@media (min-width: 992px){
.padded-block {
    padding: 0px !important;
}
}
@media (min-width: 768px){
.padded-block {
    padding: 0px !important;
}
}

 

And Save. 

Result:

Made4uoRibe_1-1713373330970.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


View solution in original post

Replies 7 (7)
printedbyus
Tourist
15 0 3

hey, sorry, this hasnt worked. 

i dont have a theme.css section, but i have tried this code in style.css.liquid, theme.liquid & slick-theme.css

Made4uo-Ribe
Shopify Partner
5930 1426 1756

Hi @printedbyus 

Just a clarification, do you like to remove the padding I try to remove the padding on every screen size. And this is the result. 

Made4uoRibe_0-1713294710488.png

Let me know what you like to get in here.

 

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


printedbyus
Tourist
15 0 3

HI, yes I would like this kind of thing with just a little bit of padding! 

Made4uo-Ribe
Shopify Partner
5930 1426 1756

This is an accepted solution.

oh, okay I understand now. Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media (min-width: 1441px){
.padded-block {
    padding: 0px;
}
}
@media (min-width: 992px){
.padded-block {
    padding: 0px;
}
}
@media (min-width: 768px){
.padded-block {
    padding: 0px;
}
}

 

And Save. 

Every screen size have different padding I take all of that and remain this one. 

Made4uoRibe_0-1713373178022.png

If the code above wont work add !important.

 

@media (min-width: 1441px){
.padded-block {
    padding: 0px !important;
}
}
@media (min-width: 992px){
.padded-block {
    padding: 0px !important;
}
}
@media (min-width: 768px){
.padded-block {
    padding: 0px !important;
}
}

 

And Save. 

Result:

Made4uoRibe_1-1713373330970.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


printedbyus
Tourist
15 0 3

Hi there! 

Thanks so much for your help, this code does work and has applied across the store, however only on some image and text blocks. Heres a list of ones it hasn't applied to. Do you have any idea why it wouldn't apply to these ones? thanks again.

Gravel pit section - https://www.printedbyus.org/pages/stockists

Printed By Us Leeds - https://www.printedbyus.org/pages/printed-by-us-leeds 

Printed By Us Sheffield - https://www.printedbyus.org/pages/printed-by-us-sheffield 

Clothing-stanley-stella product pages - https://www.printedbyus.org/collections/kids-babywear/products/happy-shapes-kids-tshirt

Prints product pages - last section has code applied others don't - https://www.printedbyus.org/collections/art-prints/products/hawley-portrait-screen-print-bubba2000

default product pages - https://www.printedbyus.org/products/archer-project-mug

Clothing-salvage product pages - https://www.printedbyus.org/products/bee-reyt-sweater-luke-horton

Clothing product pages - https://www.printedbyus.org/products/cest-la-vie-tshirt-tom-newell

printedbyus
Tourist
15 0 3

i also should add this code didnt work in the slick-theme.css, but it did work once i added it to styles.css.liquid

Made4uo-Ribe
Shopify Partner
5930 1426 1756

Seems like in the home page, it follow the height by the text. On other pages it follow the height of the images. Try to resize your images and check if the text area also lesser. 

 

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com