How To Show Different Banner Images On Mobile & Desktop In Shopify

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 509

  • @VABianne_2023
    @VABianne_2023 Рік тому +15

    I just discovered your channel today and I am already loving it. Thanks for sharing your knowledge. I am a shopify designer (not a code expert) and your simple instructions are so easy to follow and really a life saver. Please dont get tired of making videos like these. Thank you very much and God bless.

    • @OnHOWGuy
      @OnHOWGuy  Рік тому +1

      You're very welcome and thank you for the nice words, All my video require heavy testing to make everything works perfect (unlike other tuts) but few people notice and leave comments like yours so i appreciate your comment and its my pleasure that i was able to help you.
      Cheers

    • @mohammedkhaled5791
      @mohammedkhaled5791 10 місяців тому

      I think that's happen because you assign animation behaviour to the image

  • @rayasreviews
    @rayasreviews Місяць тому

    i just found your channel a couple days ago and it's honestly one of the best! your tutorials are easy to follow and applicable. i hope you get more subs!!!

  • @zakriarajput4617
    @zakriarajput4617 Рік тому +8

    Brother I'm from Pakistan 🇵🇰 and I'm watching your video for 2nd time butt from now you will be my idol❤😍

    • @OnHOWGuy
      @OnHOWGuy  Рік тому +2

      Hey brother, much respect to Pakistani people.
      Thank you and i appreciate that, your words mean a lot actually.
      cheers

    • @rubabnasir5984
      @rubabnasir5984 5 місяців тому

      @@OnHOWGuy Thanks a lot Brother but I still have an issue as I'm working on the Refresh theme can you tell me where I should put images to view for mobile display.

  • @lostboycassius
    @lostboycassius 3 місяці тому

    bro you are the goat, because of you i didnt have to pay for any of the things i wanted to do on my shopify store! instructions are easy and precise!!

  • @upsaraandco
    @upsaraandco Рік тому +2

    this is the bext code i have ever edited, super simple and effective, i feel greate after editing code for my shopify store all day long. thank you - Anas

  • @kamranmaqbool3690
    @kamranmaqbool3690 Рік тому +13

    please share insights about banner size in pixels for both desktop & mobile.
    Should we design 2 banners with different sizes or 1 will do the job for mobile and desktop?

    • @awsmcf2835
      @awsmcf2835 8 місяців тому +1

      no you need two different sizes

  • @ines3251
    @ines3251 Рік тому +1

    I was looking for a solution to this in a while and I'm so thankful that I finally found your video! Thank you so much :)

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      You're very welcome and really glad i could help.
      Cheers

  • @huss4659
    @huss4659 7 місяців тому +1

    you are a gift from god, thank you for making these videos, you're doing everyone a massive favour

  • @mustafatombulca7236
    @mustafatombulca7236 Рік тому +7

    I do it as described in the video. But when I refresh my page afterwards, my banner is not fully displayed. If I change the banner height in the settings from adjust to first image to the middle, it doesn't work. Can you please help me. The same applies to the mobile version

    • @nakittugaga2790
      @nakittugaga2790 11 місяців тому +2

      this happened to me too,. Did you find a way to fix it?

    • @CozytownRenders
      @CozytownRenders 9 місяців тому +3

      Select banner height - adapt to first image, then scroll down to mobile layout and untick both ‘stack images on mobile’ and ‘show container on mobile’, that should fix it

    • @footgearbyk
      @footgearbyk 7 місяців тому +2

      @@CozytownRenders bro youre a genius ! thank you. Any chance on how to fix the quality issue on the first image?

    • @jayhindsinghbundela3703
      @jayhindsinghbundela3703 5 місяців тому

      Thnks buddy .it surely works !​@@CozytownRenders

  • @JordynRutledge
    @JordynRutledge 3 місяці тому

    I have been trying to figure out how to do this for months. Thank you so much for sharing! Life saver!!!

  • @magdalenostrowska
    @magdalenostrowska 9 місяців тому

    Brilliant! Thank you! Your content really makes a difference and helps people improve their businesses.

  • @AbedNaseri
    @AbedNaseri 11 місяців тому +1

    Thanks for the video. This method though loads both images with is not so SEO friendly. I wish you would teach how to load image with only one img tag.

  • @funmundi
    @funmundi 2 дні тому

    You're an amazing teacher! Thank you so much!

  • @walkmultipledogs
    @walkmultipledogs Рік тому +1

    When the page is in desktop view I’m getting the two image view, though the mobile image is not displaying, it’s just a grey space. Is there something more I need to do?

    • @angelagsanchez
      @angelagsanchez Рік тому +1

      I'm getting two images on mobile with the second one being a grey space. 🤔

  • @brandonclark5271
    @brandonclark5271 9 місяців тому +7

    Thank you for sharing! I did have one issue with running this code. The desktop banner image is loading blurry since implementing the code. I thought it was a shopify issue but they raised the issue with the code. Is there a way to fix the quality of the image loading with the code supplied? Appreciate any support

  • @armansaifi_
    @armansaifi_ Рік тому

    Extraordinary!
    I can't believe that something is not fake to me finally😅
    Thank you for the help❤

  • @AbelAbraham-k3g
    @AbelAbraham-k3g Рік тому +6

    Hello!
    I have used this code and works amazingly. However it also hides the 'slideshow' and there isn't an option for a second image. Would you mind helping with this.
    Thank you kindly.

  • @aaliyaf.e6870
    @aaliyaf.e6870 4 місяці тому +3

    Didnt work for me, splits my banner into two but doesnt show the second image only grey area, same on the mobile view. Any ideas why?

  • @ash6582
    @ash6582 2 місяці тому

    I just noticed this now, a year later... Shopify has added the option to incorporate two images. When I uploaded the second image, it displayed in a left-right layout (just like the one shown in your vid 7:42). How can we set the second image as the mobile version? Thanks in advance!

  • @ИгорьИгорь-к5з
    @ИгорьИгорь-к5з Рік тому +1

    SUPER AS ALWAYS!!!! IT'S GREAT TO DO BUSINESS WITH A TALENTED PERSON!!!! YOU ARE THE BEST!!!!

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      Thank you so much and glad you think so.
      Cheers

  • @floko3255
    @floko3255 5 місяців тому +1

    I Love You Bro this Video helped so much im making a Website with my friend rn for our new product and this is Just what we needed❤❤❤

    • @OnHOWGuy
      @OnHOWGuy  5 місяців тому

      I love you too, You're very welcome brother and glad i could help, Good luck with your product and no worries a lot of videos on the way and they should help too.
      Cheers

  • @mondejarabe
    @mondejarabe Рік тому

    I have been going crazy trying to do this an no one had an answer. Simple and efficient, thank you so much!

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      Really glad you finally found my working video and you're very welcome.
      Cheers

  • @josephhodgkinson5215
    @josephhodgkinson5215 10 місяців тому

    Thanks you so much!.. That was so simple to do. This had been bugging me for ages!! Great Stuff!

  • @Gatzio
    @Gatzio Рік тому +3

    Hello, when I have added this code, when I add an image for the phone, the desktop image loses quality.

    • @sk.vlogs.usa1
      @sk.vlogs.usa1 Рік тому

      Yes.. i had the same problem

    • @sk.vlogs.usa1
      @sk.vlogs.usa1 Рік тому

      I think the banner resolution is low in the code.. try to change it from 749 px to 1080px

    • @RebecaAguayo-n8n
      @RebecaAguayo-n8n 9 місяців тому

      Have you been able to solve this issue?

    • @gbctottenham
      @gbctottenham 14 годин тому

      Hi everyone - Here's a fix for this. First, the problem is when you have two images of different aspect ratios, they are displayed differently which causes errors. One solution I used was this:
      1. Delete the CSS from this video to avoid conflicts.
      2. Have the banner image only display the desktop image by deleting the second image and making sure there is only one image remaining.
      3. Copy this code into the Custom CSS section of your banner image:
      @media only screen and (max-width: 768px) {
      .banner {
      display: none;
      }
      }
      4. Duplicate the banner image and replace the image of the second banner image section to your mobile image.
      5. In the CSS section, replace ‘max-width: 768px’ with ‘min-width: 769px’.
      6. Make sure your other settings are set correctly to suit your banner images (especially banner height settings) and you’re done!
      I hope this helps!

  • @tempzTV
    @tempzTV Рік тому +1

    It is really helpful out of many videos, get the right one
    Problem solved
    Thank you & bright future ahead

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      Thank you and really glad it was helpful.
      Cheers

  • @JaimeSolisC
    @JaimeSolisC Рік тому

    I am very happy youtube recommended your channel. I am deeply grateful. Thank you very much for all you do.

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      Thank you so much for the nice words and its my pleasure.
      Cheers

  • @luislopez8349
    @luislopez8349 11 місяців тому

    u're my freaking hero, hope u keep making vids !"

  • @howtomarinar
    @howtomarinar Рік тому +1

    LIFE SAVER!!! Thank you so much, already subscribed and liked :)

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      Thank you and glad i could help.
      Cheers

  • @1001mono1001
    @1001mono1001 Рік тому +2

    is it possible to show an video header on desktop but an image on phone?!

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      Im working on that actually.

  • @Raintreegarden
    @Raintreegarden Рік тому +2

    Hi, different banner images, but the PC banner image is not clear, how to solve it?

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      You tried with different pics ?

  • @simreecosmetics
    @simreecosmetics Рік тому +3

    Hey, can we also do different slideshows or adjust the slideshow height according to different screens ?

    • @OnHOWGuy
      @OnHOWGuy  Рік тому +1

      I got that on the way

    • @simreecosmetics
      @simreecosmetics Рік тому

      @@OnHOWGuy omg when can we expect it? Excited for it xx

  • @danielabetancurrestrepo6215
    @danielabetancurrestrepo6215 Рік тому +2

    Hello, thank you very much for the video. I must say that I thought this would solve my problem, but once I applied what you say, the images began to look very distorted, I contacted Shopify support and they tell me that this code generates some conflict that makes them look like this. So, although I can configure an image for the mobile and another image for the computer, since they looked so distorted I had to leave a single image for both again. 😢

  • @stevethegoatdiecast1728
    @stevethegoatdiecast1728 Рік тому +5

    hey man! thank you for the method as it ends up working! my only issue is, after around 15 minutes, my desktop banner becomes so blurry that it looks horrible. desktop is 2300x800, mobile is 700x700. I have to used medium size banner because if I have "adapt to first image" it makes the banner on mobile look horrible. do you have any recommendations for what I can do to prevent my banner from being blurry. I cannot have a blurry banner as it makes my website look highly unprofessional

    • @OnHOWGuy
      @OnHOWGuy  Рік тому +3

      Hey, you're welcome.
      I got that fix requested here before but without implementing this trick so you might have to wait i'll make a video for fix for it.
      Is the blurrry image occurs on both mobile and desktop ?
      also what theme are you using ?
      Cheers

    • @enzovillalon4133
      @enzovillalon4133 Рік тому +1

      @@OnHOWGuy hey! Many of your videos are helping me a lot to create a good website. The only one that did not work is this one, same issue with the blurry banner from the desktop

    • @AdamRezali
      @AdamRezali Рік тому +2

      @@OnHOWGuy same problem here... only occurs on desktop

    • @OnHOWGuy
      @OnHOWGuy  Рік тому +1

      @@enzovillalon4133 Yeah i just saw this now and i will work on it.
      Its hard to find a solution or a trick that would work for every theme/version and each person uses different themes and versions so put yourself in my shoes.
      Cheers

    • @zevyzerip
      @zevyzerip Рік тому

      @@OnHOWGuy I have the same issue! I wish desktop adapted to its own image (first one), and mobile adapted to its own image as well (second one)

  • @atdb209Ye
    @atdb209Ye Рік тому +6

    Nice, simple, and clean. Another life-saver from you. Thank you!

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      You're very welcome and thank you so much for the nice comment.
      Cheers

  • @TheMiig1513
    @TheMiig1513 Рік тому +1

    Thank you, finally some code that just works

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      You're very welcome and glad I could help.
      Cheers

  • @gee-tm2fq
    @gee-tm2fq Рік тому +2

    hi! this worked perfectly for banner images but I'm not having a second image option for slide show and so slideshow images are not showing in mobile, any suggestions?

  • @PawsomeEarthCreations
    @PawsomeEarthCreations День тому

    Great video brother, Thanks for your help!

  • @TheMarketofAlexandria
    @TheMarketofAlexandria Рік тому

    This man just elevated my store 100%!
    I tried doing this a month ago with another channel and it took so much code, an in the end the resolution for the mobile was blurry(other people had the same result) so wasted my time.

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      All my videos are genuine and with heavy testing and very few people leave comments like yours appreciating the work so i appreciate you and thank you.
      Cheers

  • @SharynDale-v2z
    @SharynDale-v2z Рік тому +9

    Great videos, thank you.
    Is there a way to do this for slideshows?

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      You're very welcome.
      I have a video coming soon about that.
      Cheers

    • @nethra2
      @nethra2 11 місяців тому

      ​@@OnHOWGuyI am waiting for it!

  • @catherinesaunders5587
    @catherinesaunders5587 2 місяці тому

    this WORKED! THANK YOU!

  • @ReemaQadeer
    @ReemaQadeer 2 місяці тому

    Love from Pakistan for solving this issue
    Thanks dude

  • @DJRonChannel
    @DJRonChannel 10 місяців тому

    Thx for the video. it help a lot, you got a New Follower!

  • @DeliciOats
    @DeliciOats 11 місяців тому +3

    Hi Anas, thank you for this video. I applied this fix and it did work to get the separate images to display for desktop vs. mobile. Awesome!
    However, now that I've applied this code, the first image (the desktop one) is a little blurry. It is no longer as sharp as it was before adding the code and the second image for the mobile version.
    Have you come across this before and do you happen to have a fix for this? I found a different solution from another UA-camr, but his fix is more complicated than yours, so I'm hoping to get yours to work. Thanks again.

    • @joshtaco96
      @joshtaco96 8 місяців тому

      Can you please let me know the video you found and if you have now fixed this issue.

  • @mohibtariq7963
    @mohibtariq7963 15 годин тому

    How do I put a different video for the mobile app and Desktop app. The Video I put for Desktop app doesnt look the same on mobile and Viceversa. How Do I fix this?

  • @blackanton2554
    @blackanton2554 2 місяці тому

    Thank you from the bottom of my heart. Be blessed my brother.

  • @JohannesBitcube
    @JohannesBitcube Рік тому +3

    Hey, I discovered that since I have a slideshow section on my store, adding this code couses the background images not to render on my slider due to the media display none, is there maybe a possible fix for this?

    • @CTGEYILSA
      @CTGEYILSA 9 місяців тому

      I also have an slide show man I this you should edit the slideshow css file instead of image banner

  • @explrwear
    @explrwear Рік тому

    AMAZING. worked perfect. keep up the good work :) great videos

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      You are amazing too, glad i could help.
      Cheers

  • @unapologetically_montee
    @unapologetically_montee Рік тому +5

    Such a well informed video! Thank you so much for making that so simple!

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      You're very welcome and glad i could help.
      Cheers

  • @alkahfapparel
    @alkahfapparel 11 місяців тому +1

    I was able to copy and paste the code and it did add the Mobile layout option to my theme editor. However, I still only see one option for images. There is no container for "second image"

    • @gabrielmercadillo9485
      @gabrielmercadillo9485 10 місяців тому

      same problem :( Shopify change constantly his coding programation

  • @thebestmusiccc2072
    @thebestmusiccc2072 8 місяців тому

    Great video. You have a new subscriber from Mexico 👍

  • @MrJeffje1982
    @MrJeffje1982 8 місяців тому

    This guy deserves a reward thank you ver much for all information!

  • @rudimentalll
    @rudimentalll Рік тому

    PLEASE HELP!!! My website is almost ready, but every time i use a different image on desktop, the mobile version gets reduced to a small header!! please help!

  • @charlesanastase
    @charlesanastase Рік тому +2

    It does work but unfortunately when I download the second image ( the one for mobile) the definition of the first picture (the one for desktop) changes and become pixellated. Does anyone has this issue?

    • @bosguitarguy
      @bosguitarguy Рік тому

      Yeah I have this issue. Took me awhile to figure out why the image was pixelated. Have you found a solution?

    • @NavigoCross
      @NavigoCross Рік тому

      @@bosguitarguy Sme thing to me, can you help me?

    • @bosguitarguy
      @bosguitarguy Рік тому +1

      @@NavigoCross Hey. I did find a solution that I use (this is Dawn theme). It is not perfect for it affects the size of the image, although it fixes the blurry-ness of the image and I made it work for me.
      Go to image-banner.liquid. Scroll down to the around the 45th line. You should see these 4 lines:
      1 else
      2 assign half_width = '50vw'
      3 assign stacked_sizes = '(min-width: 750px) 50vw, 100vw'
      4 endif
      Now change both of the "50vw" values to "100vw" instead. That worked for me. Hopefully it helps you.

  • @devanshverma6608
    @devanshverma6608 8 місяців тому +1

    great work! but i am facing a problem. when i am adding first image it is looking good in the desktop view but as soon as i am adding the second image the desktop and the mobile are getting divided meaning that both in the mobile view and desktop view it is showing me both pictures half half.

  • @YaddahPlacides
    @YaddahPlacides Місяць тому

    I have a question. Does Aurora Theme support if I want to change the Image banner in my collection page? like i want to have different image banner per collection. is that possible?

  • @alexandreoliveira7449
    @alexandreoliveira7449 Рік тому +3

    Works perfectly bro! There's one thing I need to know and I couldn't find anywhere. How to set a vertical image for mobile? Like... different image format/size for desktop and mobile (horizontal for desktop and vertical for mobile). I understood what you said on the comments about see the next content below the banner, but I really need a full screen image on mobile. Could you help me please?!

    • @alexandreoliveira7449
      @alexandreoliveira7449 Рік тому +3

      Hi bro! Is it possible to make some adjustments in the code so that the banner on mobile adjusts to the original size of the image? I really need a vertical image on mobile and I haven't been able to do that yet. :(

    • @noelnielsen9434
      @noelnielsen9434 Рік тому

      Would also need help with this. @@alexandreoliveira7449

    • @gbctottenham
      @gbctottenham 14 годин тому

      @@alexandreoliveira7449 Hi - Here's a fix for this. First, the problem is when you have two images of different aspect ratios, they are displayed differently which causes errors. One solution I used was this:
      1. Delete the CSS from this video to avoid conflicts.
      2. Have the banner image only display the desktop image by deleting the second image and making sure there is only one image remaining.
      3. Copy this code into the Custom CSS section of your banner image:
      @media only screen and (max-width: 768px) {
      .banner {
      display: none;
      }
      }
      4. Duplicate the banner image and replace the image of the second banner image section to your mobile image.
      5. In the CSS section, replace ‘max-width: 768px’ with ‘min-width: 769px’.
      6. Make sure your other settings are set correctly to suit your banner images (especially banner height settings) and you’re done!
      I hope this helps!

  • @testingimages8014
    @testingimages8014 2 місяці тому

    hi, what if I want my image banner on mobile to be a different height to what it is on desktop? I can show different images thanks to your code but I want the different images to be different heights. Shopify has 'adapt to first image' in customise settings but no option to adapt both images to their image height. Can you help?

  • @LordZuip
    @LordZuip 2 місяці тому

    hey! ive watched your youtube video. now i have the problem in my theme there isnt a section-image-banner.css ... what can i do to still use a different picture for my store? thanks in advance ❤

  • @plantwitch7115
    @plantwitch7115 17 днів тому

    Thank you so much for your support! That’s really amazing how easy you present the things! I only have one issue: after implementing this code the picture on the desktop is blurry. How could I fixe it?🙏🏻

    • @gbctottenham
      @gbctottenham 14 годин тому

      Hi - Here's a fix for this. First, the problem is when you have two images of different aspect ratios, they are displayed differently which causes errors. One solution I used was this:
      1. Delete the CSS from this video to avoid conflicts.
      2. Have the banner image only display the desktop image by deleting the second image and making sure there is only one image remaining.
      3. Copy this code into the Custom CSS section of your banner image:
      @media only screen and (max-width: 768px) {
      .banner {
      display: none;
      }
      }
      4. Duplicate the banner image and replace the image of the second banner image section to your mobile image.
      5. In the CSS section, replace ‘max-width: 768px’ with ‘min-width: 769px’.
      6. Make sure your other settings are set correctly to suit your banner images (especially banner height settings) and you’re done!
      I hope this helps!

  • @aersonal276
    @aersonal276 4 місяці тому

    I followed everything in the video, but when I go to the mobile version, yes, a new image is there... BUUUT my text and buttons are above the image, not on the image like they should be. Any way to fix this? Thank you!

  • @danakretzmann7044
    @danakretzmann7044 3 місяці тому

    I'm using Debut theme and when I search for section-image it is not there? Any thoughts?

  • @Youtopia-bj
    @Youtopia-bj 9 місяців тому

    thanks so much!!!!
    I tried to solve this issue among so many ways.
    This way works so simple.

  • @NienkevanBeurden
    @NienkevanBeurden 7 місяців тому

    Can you please explain how you do this with the original theme you had in place? My video does not suit on mobile and would love to have a different size video on mobile!

    • @OnHOWGuy
      @OnHOWGuy  7 місяців тому +1

      I have that video on the works actually, im working on a script that would optimize the video banner on mobile.
      Cheers

    • @NienkevanBeurden
      @NienkevanBeurden 6 місяців тому

      @@OnHOWGuy Amazing! Looking forward to it 😃

    • @NienkevanBeurden
      @NienkevanBeurden 3 місяці тому

      Hey! I keep checking the videos you update, but not sure if I missed it. Did you already post it? 😀

  • @CozytownRenders
    @CozytownRenders 9 місяців тому

    That is such a simple solution! It worked perfectly for me on Sense theme. I’m wondering if there’s any way for this to work when using a slideshow rather than an image banner section? But if not that’s fine, it’s well worth having a static header to have it look good on mobile and desktop. Thank you for making this video!

    • @rubabnasir5984
      @rubabnasir5984 5 місяців тому

      Oh I'm using this on refresh theme, and I couldn't be able to figure out where I should put the image for mobile view , as refresh theme also have slide banners

  • @idane1234
    @idane1234 2 місяці тому

    in the mobile the photo is cropped becasue of the ratio of the first image, what i need to do?

  • @joellebenvenuto
    @joellebenvenuto 8 місяців тому

    This is not working for me.. my first image is set on Adapt to fit image and the mobile one then is huge... both are super blurry but are high quality... any advice??

  • @chaimaechaima7608
    @chaimaechaima7608 Рік тому +1

    Thank you 🙏 This worked perfectly for me

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      You're very welcome and glad i could help.
      Cheers

  • @Sam-ql4ze
    @Sam-ql4ze 11 місяців тому

    You are my hero. This just fixed it for me. Ty!

  • @azura1774
    @azura1774 Рік тому +2

    Hey can you do one for slideshows. They have recently changed things so the old code I used to use. Doesn't work

  • @FluffyMeatball-g9i
    @FluffyMeatball-g9i 2 місяці тому

    i have uploaded two images but when in desktop view the two imges show side by side

  • @T-L0206
    @T-L0206 4 місяці тому

    When i do this - It makes my desktop banner blurry - Why would this be happening? - The banner is HIGH res and looks perfect until i edit the code, please advise - Thank you.

  • @elenamoments
    @elenamoments 6 місяців тому

    I’m using the dawn theme. For my banner images, I replaced it with the slideshow option because I have multiple pictures I wanted to use interchangeably. But the size isn’t right. It just zooms in on the image when I put it in mobile version. Thanks 🙏🏼

    • @OnHOWGuy
      @OnHOWGuy  6 місяців тому +1

      Hello Elena, im afraid you might have to wait as i just made a code to adjust the placement of banner image but i didn't record the video yet.
      I will work on it now.
      Cheers

    • @elenamoments
      @elenamoments 6 місяців тому

      @@OnHOWGuy thank you 🙏🏼

    • @gbctottenham
      @gbctottenham 14 годин тому

      Hi everyone - Here's a fix for this. First, the problem is when you have two images of different aspect ratios, they are displayed differently which causes errors. One solution I used was this:
      1. Delete the CSS from this video to avoid conflicts.
      2. Have the banner image only display the desktop image by deleting the second image and making sure there is only one image remaining.
      3. Copy this code into the Custom CSS section of your banner image:
      @media only screen and (max-width: 768px) {
      .banner {
      display: none;
      }
      }
      4. Duplicate the banner image and replace the image of the second banner image section to your mobile image.
      5. In the CSS section, replace ‘max-width: 768px’ with ‘min-width: 769px’.
      6. Make sure your other settings are set correctly to suit your banner images (especially banner height settings) and you’re done!
      I hope this helps!

  • @AnneJonsson-d2y
    @AnneJonsson-d2y Рік тому

    @OnHOW When I go to edit code and search section-image there is no assets. it just says "add asset". What am I to do?

  • @MahnoorAlam-ml7xh
    @MahnoorAlam-ml7xh 10 місяців тому

    @OnHOW it didn't work for me, it worked on the phone section but on the pc it still divided in two, when I uploaded the image and slider images disappear on mobile view

  • @benhocopan4249
    @benhocopan4249 Рік тому +2

    How can you do this with video banners?

    • @OnHOWGuy
      @OnHOWGuy  Рік тому +3

      Im still working on that trick actually.
      Cheers

  • @usacustomscreenprintsembro4293

    My image is below the Heading, Text and buttons. Can you tell me how to fix it please?

    • @usacustomscreenprintsembro4293
      @usacustomscreenprintsembro4293 Рік тому

      I figured it out. Thanks for the video!

    • @momesz27
      @momesz27 Рік тому

      i have the same problem. How did u do that < i have problem only on mobile @@usacustomscreenprintsembro4293

  • @EmeraldHayley
    @EmeraldHayley Рік тому +4

    I tried this and it worked which is amazing, however it causes my desktop banner to become blurry and really low-res looking. Has anyone else encountered this issue & have any suggestions?

  • @stickyickystationary4982
    @stickyickystationary4982 6 місяців тому

    Hi 👋 Do you already have a video on how to add an “image banner” to a theme - any theme? I’m using the old Debute theme on Shopify. And it has no option for an image banner like the theme “Dawn” has. Their customer service could not tell me how to add the banner or code it. My question sounds too simple for them not to have a solution, maybe you do? TY!

    • @OnHOWGuy
      @OnHOWGuy  6 місяців тому

      I do have a solution for everything haha, thats unfortunate.
      You can try downloading the current dawn theme as a zip file then add the section image-banner.liquid and the asset section-image-banner.css manually in file editor and see if that would show up in the theme editor.
      Its difficult for me to say if its 100% going to work because i cant the current theme code but its worth trying.
      Cheers

  • @SageSamuels
    @SageSamuels 3 місяці тому

    Hello! This was super helpful, I used the new code you gave however it made it so that my text was also transparent! So now there is no header at all showing, wondering what I am doing wrong. Thank you!

  • @juanvillaloboshopify
    @juanvillaloboshopify 5 місяців тому

    Hi @onHOW when I upload an image to the desktop banner, the quality looks great. However, after I upload an image for the mobile section, the desktop image loses quality. I’m not sure why this is happening, could you help me with this?

    • @OnHOWGuy
      @OnHOWGuy  5 місяців тому

      Thats strange, did you check with different browser, what theme/version are you using ?
      Please let me know in new comment as its difficult or me to see replies now.
      Cheers

  • @olys.apparel
    @olys.apparel Рік тому +4

    Hi this is so helpful thank you for making the video. I have question, how about my banner is a slideshow ? would the size be changed with the code that your provided ? thank you so much

  • @mruhaanvlog
    @mruhaanvlog Рік тому +1

    Hi, My banner image is blurry in dawn theme, I have tried different sizes but same result,any suggestions plz

    • @RebecaAguayo-n8n
      @RebecaAguayo-n8n 9 місяців тому

      Have you been able to solve this issue?

    • @gbctottenham
      @gbctottenham 14 годин тому

      @@RebecaAguayo-n8n Hi - Here's a fix for this. First, the problem is when you have two images of different aspect ratios, they are displayed differently which causes errors. One solution I used was this:
      1. Delete the CSS from this video to avoid conflicts.
      2. Have the banner image only display the desktop image by deleting the second image and making sure there is only one image remaining.
      3. Copy this code into the Custom CSS section of your banner image:
      @media only screen and (max-width: 768px) {
      .banner {
      display: none;
      }
      }
      4. Duplicate the banner image and replace the image of the second banner image section to your mobile image.
      5. In the CSS section, replace ‘max-width: 768px’ with ‘min-width: 769px’.
      6. Make sure your other settings are set correctly to suit your banner images (especially banner height settings) and you’re done!
      I hope this helps!

  • @Monkeyseeshinebrighter
    @Monkeyseeshinebrighter 4 місяці тому

    Once I do this, the buttons appear above the image on mobile rather than below.... how do I change this?

  • @niviarul957
    @niviarul957 7 місяців тому

    You are a lifesaver !!!❤

  • @omaralbalushi5559
    @omaralbalushi5559 4 місяці тому

    It doesnt seem to work if the image is fixed in the background position, id love to know how to fix that

  • @hestiaandhelios5906
    @hestiaandhelios5906 Рік тому

    Hi, when I searched by the file name nothing come up and it’s empty under the Asset section, I tried to create a new css file and paste on a blank page it doesn’t work, please advise what to do.

  • @thomasgauthier8139
    @thomasgauthier8139 10 місяців тому

    As soon as i add my second image banner, the first one becomes very blurry. What can I do to help with that?

  • @karanpsrathore379
    @karanpsrathore379 11 місяців тому

    After entering this code, the slideshows are not visible on the mobile view!

  • @VladislavBoridianu
    @VladislavBoridianu 8 місяців тому

    Thanks for such an easy and straightforward tutorial!

  • @mia-genesis
    @mia-genesis Рік тому

    It works! Thank you! Super easy, subscribed and liked ❤️

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      You're welcome and glad i could help.
      Cheers

  • @anophenis2787
    @anophenis2787 Рік тому +1

    Hello!
    It causes the desktop image to be blurry whenever mobile image is uploaded.

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      I will look into it now.
      Are you using Dawn as well ?

    • @anophenis2787
      @anophenis2787 Рік тому

      @@OnHOWGuy Yes. I figured it out. It was something with changing the 50vx or something to 100vx in one of the files

    • @NavigoCross
      @NavigoCross Рік тому

      @@anophenis2787 can you help me?

    • @Frazee_yt
      @Frazee_yt Рік тому

      @@anophenis2787 I am having the same issue do you know how to fix this please?

  • @aaronbilecki407
    @aaronbilecki407 7 місяців тому

    Love this! Thank you bro 🙌🏼

  • @elenamoments
    @elenamoments 6 місяців тому

    This worked really well! Except, does it not work for the slideshow images? Is there another way to have the slideshow images to adapt to the mobile version?

    • @OnHOWGuy
      @OnHOWGuy  6 місяців тому +1

      I have a video on the way for adjusting banner image but not sure about the slideshow.
      What theme/version are you using ?
      Please let me know in a new comment as its difficult for me now to see replies.
      Cheers

  • @AS-rk5vb
    @AS-rk5vb 7 місяців тому

    Does this work on the Shopify ‘Spotlight’ theme too?

  • @Unculturedindie
    @Unculturedindie Рік тому +1

    This was really helpful. God bless u

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      Glad it was helpful, Amen.
      Cheers

  • @baseballlavalnordmf6866
    @baseballlavalnordmf6866 Рік тому

    Thank you Anas! Super explanations, I really appreciate how helpful you are.

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      You're very welcome my friend and glad i could be helpful.
      Cheers

  • @muskanmandhyan8
    @muskanmandhyan8 Рік тому

    Bro what's the update on drop servicing series?

    • @OnHOWGuy
      @OnHOWGuy  Рік тому

      Got you, i just have to finish this Shopify series first.
      Cheers

  • @oddmanner
    @oddmanner 9 місяців тому

    Hey man! The code worked perfectly but I am seeing an issue with fitting my image in both mobile and desktop version using a canva design. I have tried to set the recommended image sizes and it is not working. Any insight?

  • @egleruzgaite3692
    @egleruzgaite3692 9 місяців тому

    i have added code and in my site appeared two images and cant delete. this doesnt work

  • @BenSchardt
    @BenSchardt 28 днів тому

    Your videos are amazing. Thank you! But something went wrong for me here. I copied the code correctly and went through each step several times. In the end, only half of the image is displayed on the desktop and cell phone. Can anyone help me?