How to Style Individual Elements in a Query Loop With Dynamic Data (Bricks Builder Tutorial)

Поділитися
Вставка
  • Опубліковано 19 тра 2024
  • Using Custom Post Types, Dynamic Data, and Query Loops is a critical aspect of modern web design. However, you'll often run into scenarios where items in the query loop have unique design elements and this proposes a challenge to less experienced designers.
    Does this unique styling requirement mean we need to abandon query loops and dynamic data altogether?
    Nope! You just need a consistent approach to adding unique styling instructions. One of the best and most straightforward ways to do this is with inline styles and variables.
    In this tutorial, I'll show you step by step how to:
    1. Create a CPT
    2. Create & assign custom fields to the CPT
    3. Create a grid of cards that loops through the CPT
    4. Populate the cards with dynamic data
    5. Control the position and size of unique accent elements using variables and inline styles.
    ** PRE-REQUISITE & FOLLOW-UP TRAINING **
    Creating Grid Layouts: • PB101: L09 - Creating ...
    Dynamic Content Management in WordPress: • PB101: L14 - Proper Dy...
    Static, Relative, Absolute Positioning: • Relative, Absolute, Fi...
    ** MY TOOLS **
    🔥 AutomaticCSS (ACSS) - automaticcss.com
    🔥 Frames - getframes.io
    See all my recommended tools here: geary.co/tools/
    ** INNER CIRCLE **
    Step your design/dev game up, make more money, and get the full scoop on scaling your digital agency! When it comes to the Inner Circle, I don't hold back.
    ⭕ In-depth design & dev trainings
    ⭕ Business, sales, & marketing trainings
    ⭕ Agency resources & downloadables
    ⭕ Vibrant, quality community with zero toxicity
    ⭕ ...and much more!
    Learn more and join here: geary.co/inner-circle/
    ** SOCIAL **
    👉 FB - / marketingkev
    👉 LinkedIn - / kevingeary
    ** CHAPTERS **

КОМЕНТАРІ • 61

  • @TheClaumigue
    @TheClaumigue Місяць тому +8

    ahahaha this morning I saw him do this live on Matty Eastwood's channel, how cool he turned it into a tutorial

  • @ManosGerakakis
    @ManosGerakakis Місяць тому +6

    And yes ladies and gentlemen! He does it again! Kevin you are a legend. Thank you for following up on the previous live session where you tried to build this and showing us how to build this step by step. You are constantly making us better designers and developers. Can't thank you enough for what you do. May all the Gods, old and new, bless you!

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

      To become a legend, you have to die first. I agree on that he creates legendary tutorials with valuable information or is a living legend 🙂

    • @vaughanprint
      @vaughanprint Місяць тому +1

      @@PicSta Being Irish, Kevin will always dwell in Tír na N'óg but I suspect there might be a bit of Viking in there too, so off to Valhala with him… if he wants.

    • @ManosGerakakis
      @ManosGerakakis Місяць тому +1

      ​@@PicSta Yeap, I agree on what you pointed out. So, let's just say that Kevin's tutorials are legendary.

  • @RonnieMbugua
    @RonnieMbugua 27 днів тому

    I still have a lot to learn, but man, this really inspires me! I will keep pushing. Thank you!

  • @rafikiAli
    @rafikiAli Місяць тому +3

    Great spin-off from the whole bridge thingy! Great and educational. Thanx!

    • @groundpets5101
      @groundpets5101 Місяць тому +1

      I was blown away group in a group 🥳

  • @ST-rq8jw
    @ST-rq8jw Місяць тому

    I can't explain how thankful I am, really appreciate your work.

  • @andrewschaeffer4438
    @andrewschaeffer4438 14 днів тому

    Really cool thanks!

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

    I watched the live and that was inspirational, this video puts the cherries on top. Thanks Kevin. I find myself watching all your videos and stealing all I can.

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

    Fantastic. Please give us more of this kind of stuff! It is so much needed. Good tutorials to unlock the power of bricks are still rare and it is easy to get stuck just after mastering the basics if you are not a developer...

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

    Yet another outstanding tutorial Kevin! I can't say how appreciative I am for these. I watched you do this live using Data Attributes and it's so cool we have different ways of doing these things. Thank you for constantly showing us the way 😄

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

    Kevin, those data attributes are killer. I really need to wrap my head around how you put those to good use so that I can implement in the future when needed. Great video tutorial.

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

    Your channel is absolutely amazing, great stuff 🎉 thanks

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

      Glad you enjoy it!

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

    So many golden nuggets, thank you Kevin 😀

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

    This tutorial is bonkers.
    Are we living in a world where there is no Photoshop?
    In Photoshop, it would be a breeze, and changes could also be done in a jiffy.
    This was such a convoluted way of handling things and it shows the folly of using one tool for all needs.

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

      The methodology in this tutorial can be applied to other instances, where photoshop may not have a solution, or the positioned elements aren't even images but html content.

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

      Anyone who uses photoshop for this should be fired immediately.

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

      @@Gearyco Small Images on top of larger images in a card design!
      Is there an invention within the software world where such things can be handled with ease?
      Image editing software aka graphic design software comes to mind, for graphic design tasks, which this example is, a graphic design task, and Photoshop is the quintessential tool for the task.
      You fire the designer who uses Photoshop for this task and sensible professionals might fire the developer who has lost his marbles editing images using your convoluted methodology and idiotic ideas thereby wasting time and money.

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

      @@ocratest The focus of this video was images on top of images and thus my comment reflects the absurdity of this approach for placing smaller images on top of larger images, in a card design, using coordinates in ACF fields.
      It's truly bonkers.
      No need to justify this idiocy by going on an unrelated tangent, and if you read Kevin’s response, he thinks that his idiotic idea is somehow marvelous and people who don't use his idea need to be fired.
      Talk about thinking inside the box.

  • @AdoDzeko10
    @AdoDzeko10 Місяць тому +1

    I was going to rebuild those card from the stream and you came out with a video lol ! Thanks Kevin. Btw, your 4k camera rocks.

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

    What I love these types of video, going save this one!!

  • @Justin-Bamforth
    @Justin-Bamforth Місяць тому

    Loved this!!!

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

    Always great stuff from Kevin - thanks mate

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

    One of the most valuable videos to me as I do love dynamic data content. Thanks @Kevin.

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

    Thank you! Great take on the power we have with a good toolset. WP, Bricks, Automatic CSS

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

    Super useful tutorial Kevin 👍🏻

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

    Brilliant and a very clever extra twist to the build off the other day with Mark and Matty. There were a few gotchas in my head that you have addresed here. I'll definitely step through all this again and put together a copy on my local bag of tricks for future reference.
    I'm currently templating for an artist's catalougue and we have a white hero background for one category of work. There are two or three works though that need a dark background and to avoid making a whole new page template, specifically for these, I am currently applying #postid-xxx %root% {dark style}. Just looking at what you are doing with the custom fields, tokens and attributes, on a much larger scale it is probably the way to go.
    I will add that the level of detail here is into the relm experts for data entry on each post. So not for the faint hearted and casual clients users.

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

    great tutorial. I hope bricks will add dynamic data to the other fields or at least for the css-editor, to config the tokens there instead of using inline-style in this tiny field

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

      It’s html not css so that wouldn’t help. But they could create a better ui for attributes

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

      @@Gearyco well also a good idea. Maybe multiple fields for multiple values for the same Attribute. Like a repeater or something

  • @user-eo1vz9lt8g
    @user-eo1vz9lt8g Місяць тому

    Really great tutorial, the best I've seen on this subject. The tutorial the other day with the 4 of you was educational but there was so much going on that it was a bit hard to follow...Question: With your Inner Circle training is it all using ACSS or is it with native Bricks only? Thanks

    • @Gearyco
      @Gearyco  Місяць тому +1

      Every video I do uses ACSS. It’s mission critical. but they are easy to follow along, even if you don’t use it.

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

    Hey Kevin.... off topic, why the choice of Arc? Maybe another video of Arc workflow for you?

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

    Good tutorial, one thing, in bricks if an image does not have a source, then it won't render any img code so for that specifically you don't technically need to use a Condition.

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

      Good to know, but good fallback just in case and people need to know for other types of fields

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

    I am a WinOS peasant. The most intriguing part for me was pasting the screenshot in WP Media. How did you do that??

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

    Thanks Kevin - you're da man - so how would you go ahead and position this for mobiles? Would you add another ACF field?

    • @Gearyco
      @Gearyco  Місяць тому +1

      It’s already mobile responsive.

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

    Fantastic! How would you handle mobile optimization though?

    • @Gearyco
      @Gearyco  Місяць тому +1

      If you use percentage for placement should be just fine. You a can also use min/max functions.

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

    It's really amazing.
    Could you please explain why the default value of ACF field is not working on 45:10

    • @daveden2
      @daveden2 Місяць тому +1

      I believe it is because he added the ACF field after he created the post, so the ACF default value did not apply to it.

    • @abdulwaheedorg
      @abdulwaheedorg Місяць тому +1

      @@daveden2 oh I see. I get it now.
      Thank you so much

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

    As always, I get why you did this. I do second guess myself that I'm doing 'too much' with ACF sometimes with things like that - haha. What about if one card needed 3, maybe even 4 accents suddenly if they were small. Then I make it into a repeater, etc. and start asking if I'm overcomplicating it simple thing. You can be sure if I build it for 2, the client will ask for 3.
    I agree with you in the efficiency thing for sure, but you then need to work out the values each time to input yourself for each icon. I question why not just use class values as a dropdown in the backend with readable labels (top, left, right bottom) but the value of classes being accent-img__top, ...left, ...right, ...top, etc. Less fluid positioning than yours sure, but it could result in non-designers making a huge mess of where the accent images all sit.
    Wouldn't that be simpler for anybody to just update and then chose a value? You can then loop the repeater of those accent images within Bricks and assign the class value chosen.

    • @Gearyco
      @Gearyco  Місяць тому +1

      You’re free to do whatever you want. The video is just an example

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

      @@Gearyco yeah I wasn’t having a dig sorry, more just saying my experience in that sometimes I find I can be ‘too’ clever with looping and ACF :)

  • @1anchit
    @1anchit 28 днів тому

    This is gem honestly. How does get to have the level of this knowledge? Where did you learn this?

    • @Gearyco
      @Gearyco  28 днів тому +1

      Practice :)

    • @1anchit
      @1anchit 28 днів тому

      @@Gearyco I would be happy to have remote work with you as an intern. No payment needed, just projects :D

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

    How does different breakpoints affect your workflow for something like this? How much does the different sizes change how you set this up?

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

      My example is responsive

  • @kelvinong8183
    @kelvinong8183 24 дні тому

    How about the responsive? will it be a problem, the image size got static data in it

    • @Gearyco
      @Gearyco  23 дні тому +1

      Nah, because they’re already small enough. But you can also make them responsive using min or max functions

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

    Will components help in these type of scenarios?

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

      Not really. They’ll just add a layer of additional complexity actually.

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

    name and model of your mic pls @kevin geary