Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
There is an issue where my slideshow banner image showing an error only on mobile and here is the coding that i have done.
If any of you guys out there knows how to fix this issue do let me know.
Solved! Go to the solution
This is an accepted solution.
Man this took more time than expecting. Actually the issue was also something out of the box. I thought there was something in the code in between but the code was ok i didn't have anything in between don't know from where that content was getting added.
I am able to remove that with javascript though but it first shows and when the page loads it is removed
This test is probably showing if you haven't wrapped the styles within the style tag
Hi thx for the reply, do u know how to solve this
Yeah, I kind of love to find bugs and would definitely love to give a try
Hi thx for the help, If u want to access my store here is the link www.thriftlepak.com
This is what's causing the issue
Inside every slider there is this css styling code for mobile which id displayed as normal text. If you can just wrap this between style tags this would go.
<style>
your css code
</style>
Ok so how do i wrap the text since i am a beginner at this.
In that case I will need collaborator access to your store to edit code for you.
Hi this is the code for the colloborator access 7204.
Thank you.
need the store url as well
request sent
I have accepted your request
will update you when done
Sure thx so much !
This is an accepted solution.
Man this took more time than expecting. Actually the issue was also something out of the box. I thought there was something in the code in between but the code was ok i didn't have anything in between don't know from where that content was getting added.
I am able to remove that with javascript though but it first shows and when the page loads it is removed
Hi i just checked the page it seems like it has been removed
Thank you so much.
Hi btw is there a way where i can upload a new image to fit inside the slideshow since when i changed the image it reflects the same error as well
Can you share screenshots or something for better' understanding. I don't get the issue here.
Hi this is the screenshot for the image where the image has been resized and it shows the same error so i am not quite sure is it becuz of the sizing image or other factors.
Is it showing on the preview as well?? So when you as a user view the site
HI it seems like is ok where i checked in preview mode there is no error for the image just wandering like why the size got cut off so much for the image
Your images were like that before I added any code. I mean you can see the first screenshot you sent me.
I see is there a way where i can fix the image sizing
Like how do you want it. Do you need it to be more in length or height.
Hi this is the screenshot for the mobile where i think is the height of the image since there are still gaps in the image for both banner and slideshow.
I am so sorry about this my friend, but i am honestly not getting the point here. please mind my understanding. What gaps are we talking about? if you are talking about dark brown gaps above and below they are from padding and margins on sections
So i just need to adjust those margins and paddings so it would fixed the image issue
if i got it right, then that is not an image issue its just spacing in the sections be it the featured collection one or sections above or below it. You could play around with those and remove the paddings and margins.
Alrite let me try it out thx
Hi, i have tried removing the margins and paddings it seems that there are still some parts that has the gaps
I get that man, sometimes these spacings are added by default as well for a better look. No worries i will see to it and remove them altogether
Alrite thx and do update me once done.
I have removed the spacings for mobile devices
Alrite i will check it out thx.
Hi i just checked it looks great without the margin and paddings !
Great that you like it🙂
Btw is there a way for this where the image display for mobile got cut off despite selecting adapting the first image section. I asked the shopify CS and they told me need coding for this.
Please share the screenshot of how it is on mobile now
This is how it looks like now on mobile and those linings do they restrict my image size where it couldn’t show properly?
It could be because the background-size property of image could be set to contain, so that entire image is visible but it reduces other aspects of the image.
I see, is there a way to make it fit the image or just adjusting the height to fit the whole image into the slideshow.
Yeah, most probably it will just need css
Can u help me to do it since i am not expert in it.
Will see to it.
Thank you!
Hi, if there is any update do let me know thx!
Are you doing any changes on the site now??
Nope not doing any changes on the site
Man i am done. I have done the best i can, looks good.
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024