Custom Product Badges - Shopify Coding Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ก.ย. 2024

ความคิดเห็น • 61

  • @seanmythen
    @seanmythen  2 ปีที่แล้ว +3

    At 07:38 also add the CSS property
    { pointer-events: none; }
    so that our badge doesn't interfere with the clickable area of our product card!
    Learn more here: www.w3schools.com/cssref/css3_pr_pointer-events.asp

  • @clementeen
    @clementeen 5 หลายเดือนก่อน +1

    New subscriber here! Great tutorial

  • @jimcunliffe6549
    @jimcunliffe6549 ปีที่แล้ว +1

    Love this tutorial Sean

  • @CARLOSRUIZ-vm1kb
    @CARLOSRUIZ-vm1kb ปีที่แล้ว +1

    Awesome. Thank you very much for the tutorial it has helped me wonderfully.

  • @tweedale.design
    @tweedale.design 2 ปีที่แล้ว +1

    Great video - exactly what I needed to know, explained clearly. Many thanks!

  • @sommsays
    @sommsays 8 หลายเดือนก่อน

    This was a huge help. Thank you!

  • @juliemillerwealthartificer4764
    @juliemillerwealthartificer4764 2 ปีที่แล้ว +1

    I LOVE your videos, thank you!!!

  • @joeyoungblood8575
    @joeyoungblood8575 2 ปีที่แล้ว +1

    Liked and subscribed. Keep up the great work!

    • @seanmythen
      @seanmythen  2 ปีที่แล้ว +1

      Thanks for the sub!

  • @MelWB
    @MelWB ปีที่แล้ว +1

    Liked and subscribed. Great content. Many thanks for sharing!

  • @cyberspider78910
    @cyberspider78910 ปีที่แล้ว +1

    920 subscribers....slow and steady...keep it up...

  • @laustgaming
    @laustgaming 2 ปีที่แล้ว +1

    Thank you very much!🤗

  • @VeronicaJeans
    @VeronicaJeans 9 หลายเดือนก่อน

    That was awesome

  • @FritzBensan
    @FritzBensan ปีที่แล้ว +2

    I can't click or go inside a snippet, please help 3:45

  • @rozefrost1772
    @rozefrost1772 2 ปีที่แล้ว +1

    Thank you!

  • @user-de4id4dw4u
    @user-de4id4dw4u 11 หลายเดือนก่อน +1

    HI! Thank you so much for the tutorial. It is working great on mobile, but for the life of me I cannot get it to appear on desktop. There is a hidden inherited value I cannot find anywhere, @ media screen and (max-width: 991px).
    Any help would be greatly appreciated.
    Thank you,
    Heather

    • @seanmythen
      @seanmythen  11 หลายเดือนก่อน

      Great to hear! Open up your console while viewing your site with Ctrl shift c, and find the element in your html, click on it, and see what CSS rule is taking priority by checking and unchecking styles. Then have your style take priority by being more specific with your css or by adding !Important. Good luck! www.w3schools.com/css/css_important.asp

  • @devdesigns
    @devdesigns 2 ปีที่แล้ว +2

    Hey Sean. Really nice tutorial and was really looking forward to do this but kinda lost you at 3:30. Iam using Debut and have no idea where to put your code??

    • @seanmythen
      @seanmythen  2 ปีที่แล้ว

      Sorry I missed this comment! Yes, that is one of the more confusing parts because some themes may or may not render another snippet file within the section file we are in currently. what you'll have to do is keep placing 'test' text in different areas until you find the right spot, as I'm not sure off the top of my head how debut structures their files.

  • @infolottta
    @infolottta 10 หลายเดือนก่อน +1

    Great. A great step by step tutorial. I like it a lot.
    I only have to find out why positioning the badge is not working 100%. Even with top: 0px the image is on 2/3 of the image.

    • @seanmythen
      @seanmythen  10 หลายเดือนก่อน +1

      try setting the height and width of your image to a set pixel amount!

    • @infolottta
      @infolottta 10 หลายเดือนก่อน +1

      @@seanmythen yesss, with a bit of trail and error to find the right mode between desktop and mobile

  • @JahinShahriar
    @JahinShahriar ปีที่แล้ว +1

    Missing your new tutorials 😢

    • @seanmythen
      @seanmythen  ปีที่แล้ว +1

      I'll be back soon! I have a few more videos planned, I just haven't had the free time to record the last few months!

  • @EmmaJones-u3m
    @EmmaJones-u3m 26 วันที่ผ่านมา

    Great video! I've used this and been able to add a badge to my website. However, I'm wondering what coding would I need to tweak to add more than one badge to an image please? I'm wanting a 'recently added' badge and a 'new with tags' badge, but with the coding, they are both working but only showing one badge instead of both. Both badges are on different positions within the image too so they aren't overlapping. Appreciate any advice. Thanks, Emma

  • @Sam-hg3gu
    @Sam-hg3gu 10 หลายเดือนก่อน +1

    Hey @seanmythen great video - was wondering whether you had an updated rundown for Dawn 2.0? Unfortunately it's all on its head now.

    • @seanmythen
      @seanmythen  10 หลายเดือนก่อน

      Hello! This video tutorial was made using Dawn as an example, so there shouldn't be any issue following the tutorial with Dawn's current version either! Is that what you are referring to?

    • @Sam-hg3gu
      @Sam-hg3gu 10 หลายเดือนก่อน

      Hey Sean, 2.0 code base is quite different nowadays!

    • @seanmythen
      @seanmythen  10 หลายเดือนก่อน

      @@Sam-hg3gu what issue are you running into specifically? I can try and provide some direction here!

  • @lmHangry
    @lmHangry 2 ปีที่แล้ว +1

    Like and subscribed, I really don't understand why TH-cam didn't give you more traffic, really want to see your new video soon!! maybe you should dome seo for you video to get more traffic?

    • @seanmythen
      @seanmythen  2 ปีที่แล้ว

      Thank you! I'm working on a new video that should be coming out next week!

  • @AS-rk5vb
    @AS-rk5vb หลายเดือนก่อน

    Dang...this didn't work for me. I got the text to show up but my custom badge would not.

  • @alerudu7131
    @alerudu7131 ปีที่แล้ว

    Do you know how i can add a custom sold out badge? i dont like the dawn theme default one. Already designed my own badge just don't know how to replace the defult.

  • @maanxmarwat
    @maanxmarwat ปีที่แล้ว +1

    Hey Sean, I just want to be thankful for making my day easy.
    I have one query, how to float the badge to the right side or center it?

    • @seanmythen
      @seanmythen  ปีที่แล้ว

      Happy to help!
      Instead of using the 'left' property in your css, you can use the 'right' property!
      To center, you may have to try something like this: stackoverflow.com/questions/25982135/why-does-left-50-transform-translatex-50-horizontally-center-an-element

  • @ishranbakirian2585
    @ishranbakirian2585 ปีที่แล้ว +1

    Hey Seán ! Just discovered your channel and your video helped me a lot !
    I am stuck at the "final touches" part at 10:46. I really don't understand how to find the right snippet access in order to make the tags functional. Could you please help me figure out? Thanks!!!! 😊

    • @seanmythen
      @seanmythen  ปีที่แล้ว

      Glad I've been able to help! Depending on your theme, The area that loops through products could be a separate snippet file or within the same file, try searching your file for the word 'for' or 'render' and see if you can find it!

  • @desertsaintsco.8388
    @desertsaintsco.8388 2 ปีที่แล้ว +1

    Hey Seán! thank you for this tutorial! i however ran into a problem, everything is set up nicely but the positioning of the badge is only visible on my desktop? when i access it on my phone it doesn't show. is there a different position value that makes it stick in the same position within the product image on desktop and phone view? Thank you again for the video, it was really helpful!

    • @seanmythen
      @seanmythen  2 ปีที่แล้ว

      Thanks! Depending on how your theme is handling the mobile view it could be rendering a completely separate section when the screen size is below a certain threshold. Double check that you don't need to include the classes in another section of that file.

  • @marianneante-op3ot
    @marianneante-op3ot ปีที่แล้ว

    Can you please post a tutorial on how to add free shipping badges or money back guaranteed badges on store front? Thank you

  • @armin_zi
    @armin_zi 2 ปีที่แล้ว +1

    Thank you for a great tutorial. How can I add a badge on product page as well? Should I use different product tag to make it successful?

    • @seanmythen
      @seanmythen  2 ปีที่แล้ว +1

      No problem! It is pretty much the same set up, you will just have to find the file pertaining to the image that is rendered on the product page, and set up some {% if %} statements that conditionally add the classes you set up for each badge.

  • @abdulkadirhussain7471
    @abdulkadirhussain7471 ปีที่แล้ว

    Very helpful video.. Any workaround if I want to add multiple badges to same products or different badges to different products?

  • @dawnschmeiss8922
    @dawnschmeiss8922 2 ปีที่แล้ว +1

    Another great tutorial! Thank you, I love my new item badges!! :) The location of the badge changes when viewed on mobile though. How can badges be formatted to appear in correct location on mobile also?

    • @seanmythen
      @seanmythen  2 ปีที่แล้ว +2

      Glad I could help! Depending on your theme, it is possible the "position" or "top" "left" "right" "bottom" properties of the element you chose to add your badge to changes when the screen size goes below a certain width. Open your browser inspector ctrl+shift+c (in chrome) and view your window at a smaller size (ctrl+shift+m) to simulate a mobile device.
      As you are adjusting your screen size pay attention to any media queries that may trigger and may be adding now positioning properties to your element.
      Other than that, be sure you have set the width and height of the badge to a percentage so that it scales appropriately!

    • @dawnschmeiss8922
      @dawnschmeiss8922 2 ปีที่แล้ว +1

      @@seanmythen Got it! 🙌 Thanks again!!

  • @playzone3988
    @playzone3988 2 ปีที่แล้ว +1

    after the shopify 2.0 update the development work reduce or not.

    • @seanmythen
      @seanmythen  2 ปีที่แล้ว +2

      This tutorial was made using the Dawn Theme which is a Shopify 2.0 theme! But this tutorial will work with any theme!

  • @storetasker
    @storetasker 2 ปีที่แล้ว +1

    Hey Sean! Would love to partner with you - what's the best way to reach you?

  • @melissaknoesen8938
    @melissaknoesen8938 ปีที่แล้ว

    Hi Sean! Thank you so much for this tutorial! I've been successful in creating the badge and having it show up in the the corner of each product but have ran into a problem. I've added the badge tag to each product where I would like the badge to show up but what happens now is the graphic of the badge shows on all products and only the badge name show above the products that have the badge tag.
    Is there any way to solve this?
    Your assistance will be much appreciated!

    • @seanmythen
      @seanmythen  ปีที่แล้ว

      Hello! Based on what you are describing there is either an issue with your logic with the if statements you set up, or within the CSS.
      Make sure you don't have any typos anywhere as that will cause your CSS to not work!

  • @petepan3991
    @petepan3991 ปีที่แล้ว +1

    does this work with the new refresh theme?

  • @mak_flurry7219
    @mak_flurry7219 2 ปีที่แล้ว +1

    Hey Sean, would you be able to do a video on adding an option in the slide draw cart for Shipping Insurance? I would think it would be simple as tying it to a hidden product called 'Shipping Insurance' but I am completely lost. haha Would you be able to direct me to info on this perhaps?

    • @seanmythen
      @seanmythen  2 ปีที่แล้ว +2

      Hello! Try following this tutorial here if you are on an older theme: help.shopify.com/en/manual/online-store/themes/os/customize/add-gift-wrap-option
      Or, you could even try a library like this if you are using a new theme that the tutorial above won't work for: cartjs.org/
      I'll be making a tutorial on Cart.js soon!

    • @mak_flurry7219
      @mak_flurry7219 2 ปีที่แล้ว +1

      @@seanmythen I’ll check this out! I’m on a 2.0 theme rn, but any insight helps. I’m looking forward to the video!

    • @seanmythen
      @seanmythen  2 ปีที่แล้ว +2

      Good luck! Let me know if you have any questions!