How To Have Header Not Transparent On Scroll In Shopify

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

Комментарии • 66

  • @LeviFurey
    @LeviFurey Месяц назад +1

    Hey Anas I tried the code you gave me but it’s hasn’t worked, fully.
    So it did change the background colour of the menu on mobile except it hasn’t changed the colour of the header while the menu is open . Any more ideas to fix it???
    Thanks for your help, really really appreciate it, you’re a legend, keep it up!

    • @OnHOWGuy
      @OnHOWGuy  Месяц назад

      Hey, You're welcome, happy to help.
      I see, But isn't the menu drawer on mobile covers the whole page ? because it should cover the full page including the header.
      If not i think that might be the only solution i currently have for you, Make the menu drawer full page and that will cover the header, if you interested in that here is the code for it : pastebin.com/nv1wTjB3
      Add it at the bottom of base.css
      IF you have any further questions please let me know in new comment as its difficult or me to see replies now.
      Cheers

  • @LeviFurey
    @LeviFurey Месяц назад +1

    Hey man your videos are amazing iv been implementing so many new things onto my store.
    I have a question/request though, so from one of your previous videos “making the header transparent” iv done this but the sidebar menu on mobile after clicking it, it will remain transparent just for the header section instead of going black which is the Background colour of my store.
    Do you have a fix for this?
    Cheers

    • @OnHOWGuy
      @OnHOWGuy  Месяц назад +1

      Hey, Glad to hear and im really happy to help.
      I hope i understand the issue correctly and you can fix by applying a different background color for the sidebar menu on mobile by using this code at the end of base.css :
      #menu-drawer {
      background-color: #58bef5 !important;
      }
      Let me know if that didnt help, Also please let me know in new comment as its difficult or me to see replies now.
      Cheers

  • @eriksiekmann4857
    @eriksiekmann4857 Месяц назад +1

    Just for the algorithm ❤️

    • @OnHOWGuy
      @OnHOWGuy  Месяц назад

      We need more people like you tbh, you are a gem.
      Thanks

  • @TIM-IM-GYM
    @TIM-IM-GYM Месяц назад +2

    Thanks man, great video! Maybe a tutorial when we scroll the logo and the text changes colors please? Is that possible? :)

    • @OnHOWGuy
      @OnHOWGuy  Месяц назад +1

      You're very welcome and thats a good one actually, i noted your request and i will work on it.
      Just keep in mind that videos you'll see in the upcoming days are already made and scheduled so it might take some time.
      Cheers

    • @TIM-IM-GYM
      @TIM-IM-GYM Месяц назад

      @@OnHOWGuy Thank you already, means a lot !

  • @yancolt4763
    @yancolt4763 15 дней назад

    For me, it's doesn't work. And I don't know why...

  • @Snoweee1
    @Snoweee1 2 месяца назад +4

    Thank you so much brother you really saved my lot of money to waste for a paid theme not only me I'm pretty sure there are lot of people like me who wants every professional features but don't want to pay 😂 bro your videos are really too helpful genuinely saying you should charge for all these codes 😅 thanks man ❤

    • @OnHOWGuy
      @OnHOWGuy  2 месяца назад +1

      Heyyyy its youuu haha, Glad I could help and as i said in one of my videos : im here for free for all the people that cant afford 350$ for premium themes hahah.
      I appreciate the words brother but i will never charge for the codes, my drive in this channel is pure interest in making videos if i turn that into money making then i might lose that drive.
      Have a good day.

    • @Snoweee1
      @Snoweee1 2 месяца назад

      @@OnHOWGuy appreciate your hard work man have a good day too ❤️

  • @thibaulthvt1834
    @thibaulthvt1834 21 день назад

    very helpful, thank you for your video! any tips to change the color of the logo when you scroll down as well? Thanks!

  • @amitxyz16
    @amitxyz16 28 дней назад

    Love From India!!

  • @Air_Wave_Official
    @Air_Wave_Official 29 дней назад

    Thank you

  • @WizardCGI
    @WizardCGI Месяц назад

    hello thank you for your videos, I have a question have you already made a tutorial on how you put the header menu with the video? if so can you leave me the link to your video? or tell me how you did it?

    • @OnHOWGuy
      @OnHOWGuy  Месяц назад

      I replied to your previous comment

  • @ranger9980
    @ranger9980 2 месяца назад

    Whenever i edit a product page adding sections and blocks etc...shopify edits every product page for all the products that i have, how do you edit ONLY one? Thank you for your videos man

    • @OnHOWGuy
      @OnHOWGuy  2 месяца назад

      Because thats how Shopify structure works, its templates based but you create new template(page) based on product page and redesigned it as you like then you asign only the products you want to that redesigned page and the other products will have the default one.
      You're very welcome.
      Cheers

  • @misiadam4983
    @misiadam4983 Месяц назад

    hello it was a helpful video. I have a question. How can I create a transition effect so that when I scroll, the element gradually changes from transparent to non-transparent?

    • @OnHOWGuy
      @OnHOWGuy  Месяц назад

      Hey, thank you, i did that but for my other video on having it not transparent on hover because it looks good with user interaction but to add this feature just add this line to the code in a separate line.
      transition: background-color 0.5s ease !important;

  • @MTelevision04
    @MTelevision04 2 месяца назад

    hello i have a Question about how i can add a ADD TO CART button to a Collection. so like a button that if clicked it would add all the products in the collection to the users cart, If you could help me out with that it would be vey much appreciated. cool video by the way

    • @OnHOWGuy
      @OnHOWGuy  2 месяца назад

      That would require a custom code to do that and currently i dont have it in hand but i noted your request and i will work on it.
      Cheers

  • @surajpoojari5578
    @surajpoojari5578 13 дней назад

    can i change the logo while scrolling down ?

    • @surajpoojari5578
      @surajpoojari5578 13 дней назад

      window.onscroll = function() {
      var header = document.querySelector('.sticky-header');
      document.querySelectorAll('.sticky-header img');
      var logo = document.querySelector('.header__heading-logo');
      if (window.scrollY

  • @itsdoever
    @itsdoever 2 месяца назад +1

    Ah, thanks so much Anas you're a legend. Didn't expect this to come out so quickly! Very impressive, appreciate the lengths you go to.

    • @OnHOWGuy
      @OnHOWGuy  2 месяца назад +2

      You're very welcome and thanks for the words.
      This video is literally recorded and edited and posted in the same day, and i did that because i promised this video way before and i forgot.
      A man is his words right ?
      Cheers

  • @shouravabir3513
    @shouravabir3513 Месяц назад

    oye bruh
    u deserve more likeeez

    • @OnHOWGuy
      @OnHOWGuy  Месяц назад

      Thank you and i really appreciate that

  • @javieratzoci6455
    @javieratzoci6455 Месяц назад

    Legend! You’re the best! I have a question, How can I remove the line from the bottom of the transparent bar?

  • @MaryamParkar-x6s
    @MaryamParkar-x6s 2 месяца назад

    Hi. I have a request for a video. I want my Shopify store to be prevented from dark mode on mobile. If a customer's mobile is set to dark mode my store theme color should not be affected.

    • @OnHOWGuy
      @OnHOWGuy  2 месяца назад

      Hey, thats a good request but im not sure yet if its possible using custom code.
      i noted your request and i will research more about this.
      Cheers

    • @MaryamParkar-x6s
      @MaryamParkar-x6s 2 месяца назад

      @@OnHOWGuy Thank You.

  • @VibeWhisper
    @VibeWhisper Месяц назад

    Amazing! Thanks!

    • @OnHOWGuy
      @OnHOWGuy  24 дня назад +1

      You're very welcome, Glad you like it!
      Cheers

  • @Mir-y7x
    @Mir-y7x 2 месяца назад

    great but I no longer have my announcement bar

    • @OnHOWGuy
      @OnHOWGuy  2 месяца назад

      Thats strange, what theme/version are you using ?
      also try removing the announcement and re adding it again.
      Please let me know in a new comment as its difficult for me to see replies now.
      Cheers

    • @Mir-y7x
      @Mir-y7x 2 месяца назад

      @@OnHOWGuy I did the manipulation again, it works but now my ad bar is not fixed, I will look for the solution
      possibility of having the logo in the center and part of the menu on the left and the other on the right?

  • @Sadierosedesigns
    @Sadierosedesigns 2 месяца назад

    Hi! Your videos have been helping me so much! I’m new to Shopify and haven’t published my store yet because I’m trying to get my store completely ready before launching. I love the transparent header on my home page; however, it’s only on my home page. Is there a way to have the transparent background on every page? Once I choose a specific page (for example “t-shirts”) it reverts back to my original homepage layout. Thank you for all you do! You’re amazing and helping me so much create the store I really want!

    • @OnHOWGuy
      @OnHOWGuy  2 месяца назад +1

      Hey, Really happy to hear that and glad i could help.
      Transparent header will need something behind it to show it in order to be transparent, if its a white background then it will show a white background which will look not transparent even tho its transparent, i hope this makes sense, but for the homepage it has a banner with a image or video and it shows the image or video behind the header then you can see its actually transparent, and for other pages they dont have banner or anything to show below the header.
      You're very welcome and glad i could help, let me know if you need anything.
      Please let me know in a new comment as its difficult for me to see replies now.
      Cheeers

  • @yakhlefilias3922
    @yakhlefilias3922 2 месяца назад

    Amazing !!✨ Could you do a tutorial now when we scroll the logo and the text changes colors please ? (And I encountered a small problem when scrolling, the cart-count-bubble also changes color.)

    • @OnHOWGuy
      @OnHOWGuy  2 месяца назад +1

      Thank you and thats a good request actually, i noted it and i will work on it but for logo it might be complicated if you are using a svg or png logo as that cannot be changed with code but i guess maybe another video for having different logo on scroll, i noted it too because its a good one.
      for that issue i just saw someone reported it and i will try to fix it and update the code.
      Cheers

  • @keving1347
    @keving1347 2 месяца назад

    Thank you so much for your videos bro. I just got started on Shopify recently and your entire channel has been the perfect resource for customizing very specific features. Literally allowed me to make my site look like it was professionally built. Hope your channel blows up 🙏🏼🙏🏼🙏🏼

    • @OnHOWGuy
      @OnHOWGuy  2 месяца назад

      You're very welcome and really glad to hear that, No worries many videos on the way and they help you even more.
      Thanks

  • @FletchAvox
    @FletchAvox 2 месяца назад

    Can you do a full video doing packing slips? How to edit code to add logo, price, text, Tax Invoice header, etc. thank you so much!

    • @OnHOWGuy
      @OnHOWGuy  2 месяца назад +1

      Yeah sure, i noted your request and i will work on it.
      Cheers

    • @FletchAvox
      @FletchAvox 2 месяца назад

      @@OnHOWGuy that is amazing thank you!!
      Love all your videos, truly helping me out with everything!

  • @brobiv2452
    @brobiv2452 2 месяца назад

    how to make it transition to the color smoothly, when you scroll it abruptly changes color. need to have smooth transition

    • @brobiv2452
      @brobiv2452 2 месяца назад

      also when you add something to cart and scroll down, the notification color is glitched

    • @OnHOWGuy
      @OnHOWGuy  2 месяца назад

      Hey, Try adding this line below the background value and make sure its above the closing bracket : transition: background-color 0.5s ease !important;
      0.5s is for seconds, increasing it will make it slower and viceversa.
      Cheers

    • @OnHOWGuy
      @OnHOWGuy  2 месяца назад

      I will check and try to update the code to fix that.
      Cheers

    • @brobiv2452
      @brobiv2452 2 месяца назад

      @@OnHOWGuy it works but I have weird glitch with how the boxes around the text behave. For instance, the search bar box doesn't change smoothly when it's supposed to.

    • @brobiv2452
      @brobiv2452 2 месяца назад

      @@OnHOWGuy also when you scroll back up after scrolling down the transition is not smooth anymore

  • @trashplex
    @trashplex 2 месяца назад

    Legend, chukran BZF

    • @OnHOWGuy
      @OnHOWGuy  2 месяца назад

      Thanks and merhba khoya.

  • @Imjourney
    @Imjourney 2 месяца назад

    Hi! The search bar on your store is so pretty, it would be awesome if there was a video showing how to add it!

    • @OnHOWGuy
      @OnHOWGuy  2 месяца назад

      Thank you, everything you see on that shopify store i did on videos, so once you saw something on the store in some tutorial that means i already posted the video for it.
      But for this case its different because i had to reschedule this video to be posted sooner and i had to do that because many people are asking for it.
      That video for the search bar is already made and scheduled for 28 July but for your request i rescheduled it again for 26, so on 26 July the search bar video will be posted.
      Cheers

    • @Imjourney
      @Imjourney 2 месяца назад

      @@OnHOWGuy Thank you super much! I'm expecting it so bad hehe You are best! :)
      Cheers!

  • @MoneyMeeuws
    @MoneyMeeuws 2 месяца назад

    Awesome video! Can you maybe make a tutorial on how to display the sale badge on the product page in the product photo? So you can see the sale badge in the corner of the product photo. Thanks man!

    • @Snoweee1
      @Snoweee1 2 месяца назад +1

      Bro scroll through this channel he already has made a video on this topic ❤

    • @MoneyMeeuws
      @MoneyMeeuws 2 месяца назад

      @@Snoweee1 not to show it in the product photo on the product page i believe.

    • @OnHOWGuy
      @OnHOWGuy  2 месяца назад

      Great suggestion, i just noted it and it night take some time to be posted.
      Cheers

  • @lumnerx
    @lumnerx 2 месяца назад

    Ur the best!