Creating a Notification bar in Webflow | Tutorial

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

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

  • @kieronbygravetv
    @kieronbygravetv 5 лет назад +5

    Nelson you rock!! Awesome. Thank you so much for helping all of us get a step further in our design work. You don’t have to share your knowledge but you choose to. Appreciate you bro ✌🏾

  • @Konstantinos-np9ip
    @Konstantinos-np9ip 4 года назад +1

    Bro, thank you soooo much! I couldn't find a solution to integrate a cookie bar on WF. Now i am able because of you.

  • @nikizechner1959
    @nikizechner1959 4 года назад

    Thank you for this tutorial, it really helped!
    Tbh honest I skipped it like 5 times because it didn't have "Cookie notice" in the title, but as it turned out it was the perfect video for my problem.
    Greetings from Austria

  • @nataliesharma6449
    @nataliesharma6449 4 года назад +2

    Hey thank-you so much for this tutorial! This is exactly what I needed for a client project and they're tickled to have a neat little banner up top.

    • @pixelgeek
      @pixelgeek  4 года назад

      You're very welcome!

  • @hosseinpouladrag7466
    @hosseinpouladrag7466 2 года назад

    Thank you a lot. God bless you.

  • @stephenhammond2937
    @stephenhammond2937 4 года назад +1

    Thanks so much for posting this! Super helpful and very clear!

    • @pixelgeek
      @pixelgeek  4 года назад

      You're very welcome!

  • @coreymoen
    @coreymoen 5 лет назад +1

    This is STELLAR Nelson, thank you for sharing! Love these examples that show how a little custom code can really go a long way to create powerful solutions that aren't technically native within Webflow, but still totally possible and take the platform so far beyond just creating layouts!

    • @pixelgeek
      @pixelgeek  5 лет назад +1

      Yup! If you know a little bit of jQuery, there are so many new doors opportunity for you when you combine it with Webflow 😁

    • @coreymoen
      @coreymoen 5 лет назад +1

      @@pixelgeek one other random thought on this? Is there a way to expand upon this concept to create a full list of past notifications? Obviously if each notification is already a collection item it would be simple to create a list to display them all somewhere, but is there a way to hook it up so once the user clicks the close (or any) button in the notification it makes it disappear and then it only appears in the full list of past notifications? It seems like the custom JS would have to be able to change a 'switch' in the collection item from live > past instead of manipulating the cookie or something along those lines?...not sure you can manipulate the CMS that way, but maybe you could with the API/Webhooks?

    • @qwss23
      @qwss23 5 лет назад +1

      @@coreymoen You actually can do it using the Webflow API, it will require some Ajax ( if you already use Jquery then you will be fine ), here is a link for the webflow API documentation where it shows you how to interact with the collection lists developers.webflow.com/?shell#cms-api-reference

  • @Fjgkxidbykcdkff
    @Fjgkxidbykcdkff 4 года назад +1

    This was very helpful. Thank you a lot!

    • @pixelgeek
      @pixelgeek  4 года назад

      My pleasure. Glad the video helped. 😁👍🙇🏽‍♂️

  • @eddytritten
    @eddytritten 4 года назад +1

    That was awesome !! Thank you so much

  • @nav-unger
    @nav-unger 5 лет назад +1

    Very useful tutorial. Thanks Nelson

  • @rjeffery8526
    @rjeffery8526 3 года назад +3

    Tried to find your project to clone and copy the script, but seems to be gone now. Thanks anyway.

  • @arey242
    @arey242 3 года назад

    I'm still fumbling around Webflow a bit, trying to get this to work. It all makes sense, but I'm trying to add it above my navbar symbol. I've set the notification bar in Fixed position, but it's sitting on top of the Navbar. What should the position be of the Navbar be? I tried Relative (but it's only Relative to itself). Thanks!

  • @ttk1opc
    @ttk1opc 4 года назад

    How does the enable/disable button work? Will the whole bar disappear when disabled?

  • @alyssa_bananas
    @alyssa_bananas 2 года назад

    Is there a clonable version of this somewhere? Please?!

  • @jarnovandersmitte8917
    @jarnovandersmitte8917 4 года назад

    How can you set it so that it shows on all pages? Or do you have to add to each separate page?

  • @paulgreen5381
    @paulgreen5381 4 года назад

    This is amazing, thank you for sharing! Just checking - does this work site-wide or does it need putting on every page?

    • @paulgreen5381
      @paulgreen5381 4 года назад +1

      Actually think I worked it out. I created a symbol for the notification bar (and pasted that on every page) and then just chucked the code in the project settings custom code. Seems to be working fine!

    • @pixelgeek
      @pixelgeek  4 года назад

      glad you found the solution :)

  • @caseydenbleyker7782
    @caseydenbleyker7782 4 года назад

    Nelson, this tutorial is exactly what I needed. Thanks for making it! I implemented this on a site for a client of mine, but can't get the cookie to work properly. I pulled the code you used in and updated the class names, but it's still not working. Would you mind taking a look at my read-only link to see if you can spot an error?

    • @caseydenbleyker7782
      @caseydenbleyker7782 4 года назад

      Also, pinged you here in the Webflow forum if you'd prefer to handle this there. : ) forum.webflow.com/t/cookies-notification-bar/102660/3

  • @pndjk
    @pndjk 3 года назад

    After dismissing the banner (and adding cookie to browser) the banner still shows up for a split second and then it's hidden. It's really distracting when going from page to page because it appears every time the page loads. Any way to prevent it from appearing altogether if the cookie is present?

  • @TheStembik
    @TheStembik Год назад

    Please is there a clonable version somewhere? Thanks!

    • @AriaHarmony
      @AriaHarmony Год назад

      You still can get the script from the live site, use the dev tools, you'll find the script at the end just before the tag.

  • @rafaelcconceicao
    @rafaelcconceicao 3 года назад

    Hey Nelson, can I turn the notification bar into a slider? Thanks a lot for the tutorial, really awesome!!

    • @pixelgeek
      @pixelgeek  3 года назад

      not sure what you mean. can you explain further?

    • @rafaelcconceicao
      @rafaelcconceicao 3 года назад

      @@pixelgeek hey, got it right, no worries! Basically I wanted something similar to this: tailoredpet.com/

  • @joeldb
    @joeldb 4 года назад

    Hey Nelson, thanks for this! Could this be created to move the Navbar items down when the bar is active?

    • @pixelgeek
      @pixelgeek  4 года назад +1

      Yes. Let me find a tutorial to help you
      Here you go. ruclips.net/video/mdlTtf1qixI/видео.html

    • @joeldb
      @joeldb 4 года назад

      @@pixelgeek Oh man, you're the best Nelson! Thanks and Happy New Year :)

  • @jonnybeck
    @jonnybeck 4 года назад

    Anyway to get the alert bar to push the content down when open? I have a fixed nav that I'd like push down when the alert bar is open and slide up when the alert bar is closed.

    • @pixelgeek
      @pixelgeek  4 года назад

      try:
      1) setting the bar to position:static
      2) set the overflow to hidden
      3) make a page load interaction that starts the bar as height:0px then let it animate to height:auto
      tope this helps :)

  • @ketankulkarni1227
    @ketankulkarni1227 4 года назад

    is it okay if I keep the code in Embed component so that it will be easy to copy in other project?

    • @ketankulkarni1227
      @ketankulkarni1227 4 года назад

      well I tried, but code did't work, it should be in before body tag

  • @thenamelessone123
    @thenamelessone123 3 года назад

    Thanks but how does the 'Button Link' actually link to anything if it's just called 'Button Link', not the actual URL?

    • @thenamelessone123
      @thenamelessone123 3 года назад +1

      It's okay, missed the detail between 'Collection' and each individual Thing

    • @pixelgeek
      @pixelgeek  3 года назад +1

      glad you figured it out :)

  • @Ashiitakai
    @Ashiitakai 4 года назад

    Hi Pixelgeek - when i export the code from webflow to upload to my own server via FTP this feature no longer works. I just get a message at the top of my website that says "no items found". any ideas whats gone wrong?

    • @pixelgeek
      @pixelgeek  4 года назад

      CMS and Ecommerce content (databases) aren't exported. Collection lists will show the empty state. Collection pages will also not show any content that's bound to Collection fields as well.
      If you want to use the webflow CMS, you need to host your website in webflow

    • @Ashiitakai
      @Ashiitakai 4 года назад +1

      @@pixelgeek ah i did wonder if that was the issue. Thanks for coming back so quickly. And keep up the good work

    • @pixelgeek
      @pixelgeek  4 года назад

      My pleasure 😁

  • @paulinaem6130
    @paulinaem6130 5 лет назад

    How can I copy code?

  • @ZorroBlancoMX
    @ZorroBlancoMX 5 лет назад

    Great!

  • @bartspek
    @bartspek 4 года назад

    Having a hard time finding the code... Tried your other video' s code... didn't work for me. Any change anybody could help?

    • @pixelgeek
      @pixelgeek  4 года назад

      you can clone the project here:
      webflow.com/website/overflow-notification-bar
      hope this helps :)