How to Create Review Cards With Dynamic Star Ratings in Oxygen (Follow Along Full Tutorial)

Sdílet
Vložit
  • čas přidán 29. 07. 2024
  • This is the type of Oxygen tutorial I'd normally publish in my Inner Circle. For info on the inner circle, go here: digitalambition.co/inner-circle/
    THIS TUTORIAL REQUIRES NO PAID ADD-ONS ;)
    Why is this called a follow along tutorial? Because I want to challenge you to follow along and build exactly what I'm building on a blank website so you can truly absorb each and every aspect of the training (what you'll learn is detailed below).
    Are you going to participate? Drop the hashtag #intraining below in the comments to let me know you're taking action!
    Here's what you'll learn:
    • How to create & configure a custom post type
    • How to attach custom fields to a custom post type
    • How to work with various types of custom fields including images, numbers, dropdowns, and more
    • How to create review cards with proper semantic HTML structure
    • BEM naming structure for custom classes
    • Basic flex layout techniques
    • Auto margin techniques
    • nth-of-type margin techniques
    • How to use the Oxygen Grid Builder
    • How to use the Oxygen Repeater
    • How to use the Oxygen Repeater Advanced Query Builder
    • How to insert dynamic data from custom fields
    • How to use object-fit for constraining and positioning images
    • How to use data attributes
    • How to manipulate elements with CSS by targeting their data attribute value
    • nth-of-type pseudo classes for targeting specific items
    0:00 - Intro & Context
    02:05 - Design Inspiration
    02:52 - Getting Started
    03:26 - Creating Reviews Custom Post Type
    06:30 - Creating Custom Fields
    09:55 - Adding Reviews
    16:40 - Creating a Page & Repeater Grid
    23:30 - Creating the Review Card
    48:28 - Adding the Data Attribute
    50:05 - Changing Stars With Data Attribute Values
    59:40 - Checking Work & Wrap Up

Komentáře • 79

  • @simonepagnini6735
    @simonepagnini6735 Před rokem +1

    You're incredible! Great Kevin! I follow this tutorial applying to a live site that I'm going to restyle, using both Automatic CSS and custom css classes. I am proud to be inside the inner circle as the value you provide is so big! Thanx again and greeting to your dog 😄

    • @Gearyco
      @Gearyco  Před rokem +2

      You're very welcome!

  • @philipsteiner7748
    @philipsteiner7748 Před 2 lety +3

    Awesome. My Oxygen skills have improved from the ground up since I started watching your tutorials. Thanks a lot!

    • @Xboxers
      @Xboxers Před rokem

      I even go as far as writing it all out. For Quick access

  • @DidYouKnowMortgage
    @DidYouKnowMortgage Před 2 lety +1

    Ok, I'm on my 4th watch and completed a nice reviews page with dynamic stars. Combined this training with the text column training to come up with a nicely formatted masonry-style review page that is mobile responsive from 3 columns to 1 column.
    Kevin is an amazing educator. I've learned so much so quickly. Inner Circle is highly worth it too.

    • @Gearyco
      @Gearyco  Před 2 lety +1

      💪🏻💪🏻💪🏻

  • @danielsan6119
    @danielsan6119 Před 7 měsíci

    Great tutorial. I followed along using bricks. Used the conditional logic instead of CSS to hide/show the stars as i found it more fun to do so. would like a follow up on both implementing this in Bricks, and also on how to make the stars show up on Google search.

  • @chrispoole4084
    @chrispoole4084 Před rokem

    Thanks. Great training though I'd like to see the structure panel open as you go through the construction.

  • @martynpage4823
    @martynpage4823 Před 2 lety

    Great video....but because you mentioned the Top ten uses for Custom Post Types...I went and had a look at that first....😁

  • @Gearyco
    @Gearyco  Před 2 lety +1

    Side quiz: Have you spotted the critical issue yet? Reply to this comment if you've spotted it. I'll give you a hint --- it's a logic issue. It's definitely fixable, but important to know it exists first. Final part of the "follow along" tutorial is to fix the logic issue yourself :)

    • @andreslotta3637
      @andreslotta3637 Před 2 lety +3

      You mean the rating being something like 3.0 or 4.0 which would incorrectly show the half star?

    • @noipowszystkim
      @noipowszystkim Před 2 lety

      1.5 stars?

    • @geckografix8045
      @geckografix8045 Před 2 lety

      I "Think " I have fixed this issue but CSS seems convoluted which is juxtaposition to what I am thinking it should be

  • @VinceBalk
    @VinceBalk Před 2 lety

    Wow... you are a genius Kevin!
    just did this on a testsite with ACSS. Works well, got to implement this for a client...!

  • @SaschaKon
    @SaschaKon Před 2 lety +2

    Very helpfull. Learned something new with the attributes.

  • @eightysevenweb
    @eightysevenweb Před 2 lety +1

    I always follow along with every tutorial and do it myself. Takes a bit longer to watch, but that's the best way to learn and remember! #intraining

  • @fabiamc
    @fabiamc Před rokem

    This is pure gold 🙌

  • @bikimel-directes
    @bikimel-directes Před 2 lety +2

    Would love to know more about atributes. Thanks a lot Kevin.

  • @robertturner1550
    @robertturner1550 Před 2 lety

    Superb tutorial.

  • @kotkotan
    @kotkotan Před 4 měsíci

    Awesome! Thank you

    • @kotkotan
      @kotkotan Před 4 měsíci

      Maybe this will be useful for someone. I need to show not halves of the stars, but all at once, only if, for example, rating = 1, I need 1 star to be yellow, and 4 of a different color (gray), if rating = 2, then 2 stars are yellow, 3 are gray, etc. here is the code:
      [data-customer-rating="1"].review_star-wrapper .review_star--solid:nth-child(1),
      [data-customer-rating="2"].review_star-wrapper .review_star--solid:nth-child(-n+2),
      [data-customer-rating="3"].review_star-wrapper .review_star--solid:nth-child(-n+3),
      [data-customer-rating="4"].review_star-wrapper .review_star--solid:nth-child(-n+4),
      [data-customer-rating="5"].review_star-wrapper .review_star--solid:nth-child(-n+5) {
      color: #FABD05;
      }

  • @rubengarciajr
    @rubengarciajr Před rokem

    this is so good!

  • @Leavventuredifrucci
    @Leavventuredifrucci Před 2 lety

    Great video, as always!! 🤩

  • @smithbenites5409
    @smithbenites5409 Před 2 lety

    #intraining from Peru! Awesome video, I love it! I hope you can make more!
    Greetings from Peru 🔥

  • @krzysztofs31
    @krzysztofs31 Před 2 lety

    Awesome! thank you so much 👌

  • @shibupandit24
    @shibupandit24 Před 2 lety

    dynamic star what is i always looking for sir... thank you so much for this wonderful tutorial.. love u

  • @huybui6578
    @huybui6578 Před 2 lety

    #intraining
    I am always waiting for your videos, they help me grow a lot more. Thanks!

  • @udithawishvajith9334
    @udithawishvajith9334 Před 2 lety

    Anyway this is a great tutorial. Watched from beginning to end

  • @eucalyptech
    @eucalyptech Před 2 lety

    Always #intraining along (and thanks to) you !

  • @mauricioreales57
    @mauricioreales57 Před 2 lety

    #intraining right now....Amazing content sr. I have unlocked many learning levels thanks to your content.

  • @KeshavDaBhutra
    @KeshavDaBhutra Před 2 lety +1

    I was waiting for your new video thanks i will see this.....

  • @Xboxers
    @Xboxers Před rokem

    I guess this would also be usefull to create reviews by logged -in users right? Adding an view extra fields for user data and reviewing multiple elements/post types on a website. Like for example a store?

  • @Xenio2007
    @Xenio2007 Před 2 lety

    I hope to see you on Pods Framework, who knows what you can come up with.

  • @dankuta
    @dankuta Před 2 lety

    #intraining I'm sure you know this by now, I'm your biggest fan. So much value in your videos.

  • @AmandaLucaseu
    @AmandaLucaseu Před 2 lety

    #intraining super video as always Kevin

  • @jonathankraal1741
    @jonathankraal1741 Před 2 lety

    #intraining Another great video! I have never seen a video of yours where I didn't put anything I learned into pratice.

    • @Gearyco
      @Gearyco  Před 2 lety +1

      I try to keep it super practical :)

  • @dcubin
    @dcubin Před 2 lety

    #intraining Awesome video - thx. Do it step by step.

  • @MegaFusk
    @MegaFusk Před 2 lety

    Takk!

  • @dahunsi
    @dahunsi Před 2 lety

    Joined late. Will watch later.

    • @dahunsi
      @dahunsi Před 2 lety

      Loved it. Touched a few thing that I wanted to figure out.

  • @jenniferward6821
    @jenniferward6821 Před 10 měsíci

    In training

  • @maythe4thBwithU
    @maythe4thBwithU Před 2 lety

    Kevin would you be able to do something else on the application of DATA ATTRIBUTES in CSS either here or inner-circle

    • @Gearyco
      @Gearyco  Před 2 lety

      I’ve done other tutorials using them. There’s another here on CZcams dealing with hero background images

  • @ToniVespertine
    @ToniVespertine Před 2 lety

    Where did you name it [data-customer-rating]?
    Thanks a lot for this class.

    • @Gearyco
      @Gearyco  Před 2 lety

      Under the advanced panel > attributes

  • @davidjohnmorse
    @davidjohnmorse Před 2 lety

    Hmm? New to Meta Box here... I installed the free version of Meta Box and don't see the option for custom fields? I only have "Post Types" and "Taxonomies". The description says no paid add-ons used. What am I missing here?

    • @Gearyco
      @Gearyco  Před 2 lety

      Maybe I was mistaken. I haven’t used the free version of metabox in a long time. I’m any case, you can use CPT UI and ACF and do the same thing for free with those.

  • @mikesam7258
    @mikesam7258 Před 2 lety

    Why not to use Oxygens conditions insted of css?

    • @Gearyco
      @Gearyco  Před 2 lety

      If you can make it work with conditions then go for it. CSS route was easy.

  • @Peter-Asztalos
    @Peter-Asztalos Před 2 lety

    #intraining

  • @udithawishvajith9334
    @udithawishvajith9334 Před 2 lety

    Can we do same with show all time 5 stars with correct filling. Like 3.5 rating have 3 and half filled stars with one unfilled star?

    • @Gearyco
      @Gearyco  Před 2 lety

      What's the unfilled star for?

    • @udithawishvajith9334
      @udithawishvajith9334 Před 2 lety

      Like it always shows 5 stars and fill only the correct rating.

    • @Gearyco
      @Gearyco  Před 2 lety

      @@udithawishvajith9334 You mean fill a star proportionally according to its rating instead of using a half-star for all decimals?

    • @udithawishvajith9334
      @udithawishvajith9334 Před 2 lety

      It's no matter the decimal value. Any decimal value can have a half star.

    • @Gearyco
      @Gearyco  Před 2 lety

      @@udithawishvajith9334 That's exactly what I showed in the tutorial.

  • @sergioval2217
    @sergioval2217 Před 2 lety

    B U T Ful

  • @TheDocPixel
    @TheDocPixel Před 2 lety

    LMAO! Dawg! This is a "f*****" family channel... obviously! Dog (lab? retriever?) barking; wife calling (what ya want for dinner? FOOD!); bambinos at school?... but ya still "EFed up" if your wife watches this 🤪
    Great tutorial BTW!

    • @Gearyco
      @Gearyco  Před 2 lety +1

      The kids have heard it all. 😅 The dog is a pit.

    • @TheDocPixel
      @TheDocPixel Před 2 lety

      @@Gearyco Haha! Pit = I should've recognised that. I was gonna say bulldog, but too typical. I adore pits and Steffs! Had a few and saved countless of them through an org here.

  • @bikimel-directes
    @bikimel-directes Před 2 lety

    lol

  • @odinaka_joshua
    @odinaka_joshua Před rokem

    Hi Kevin , Thanks for this video, i'm working on a site where i needed to acheive this dynamic star ratings, this was super helpful, thank you.
    I wonder if you'd still recommend this method for bricks, does anything change? - Also, is this css snippet available in the innercircle?

    • @Gearyco
      @Gearyco  Před rokem

      We are releasing a frames component for it

  • @SeeingThroughGodsEyes

    In training

  • @SimonAngel
    @SimonAngel Před 2 lety

    #intraining

  • @luisfsantos87
    @luisfsantos87 Před rokem

    #intraining

  • @yvesmattle
    @yvesmattle Před rokem

    #intraining

  • @Erik-lm4hk
    @Erik-lm4hk Před 2 lety

    #intraining

  • @morozara4962
    @morozara4962 Před 2 lety

    #intraining