Spice Up Your Designs with This Featured Post Technique! 🌶 1 loop, many designs for faster speeds ⚡

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • In this tutorial, I demonstrate a streamlined way to style specific posts in your GenerateBlocks query loop to make them stand out. This technique is perfect for anyone running a WordPress blog or site and aims to avoid multiple, clunky query loops.
    I discovered this method during a recent project and realized it could benefit many of you managing dynamic content. Instead of relying on less efficient methods, I've developed a solution that's both sleek and straightforward.
    👉 Watch and learn how to enhance your blog's appearance with minimal queries. This could be a game-changer for your site's performance and design!
    I hope you enjoy 🙌 Thank you for all the support!
    💻 Visit Our Website: theadmin.bar/y...
    🗨 Join Our Free Community: theadmin.bar/y...
    📨 Get the Best of The Admin Bar Delivered: theadmin.bar/y...
    🔁 Sell More Care Plans: theadmin.bar/y...
    🧮 Use My Website Price Calculator: theadmin.bar/y...
    📜 Get My Proposal Template: theadmin.bar/y...
    ☑️ Get More Done with My Checklists: theadmin.bar/y...
    🔴 Live Event Schedule: theadmin.bar/y...
    🔧 The Tools I Use: theadmin.bar/y...
    ⚡ My Agency, OGAL Web Design: theadmin.bar/y...

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

  • @adamwrightdesign
    @adamwrightdesign 17 дней назад

    Fantastic tutorial, one of my faves to follow along with on a site I'm building! Thanks Kyle!

  • @charleswillcock3235
    @charleswillcock3235 4 месяца назад

    Hi Kyle, a thumbs up is too smaller a thank you for a truly great video. You have a great presentational style, which for me is important when someone is trying to communicate some pretty sophisticated and complex ideas.

    • @TheAdminBar
      @TheAdminBar  4 месяца назад

      Thanks so much, Charles! I'm really glad you enjoyed it!

  • @user-wp5oo1tx1q
    @user-wp5oo1tx1q 4 месяца назад

    Thumbs up for this great video. Keep up the good work. ThanX 4 sharing,

  • @VladiDusil
    @VladiDusil 4 месяца назад

    Great video, Kyle. What I'd love to learn is how to effectively select a featured post manually (or several) and create a featured post header that also then doesn't repeat the featured posts within the rest of the query loop in the blog post column. I have it done on our blog, but it's pretty convoluted and I am sure there's an easier way to accomplish it.

    • @TheAdminBar
      @TheAdminBar  4 месяца назад

      Hummm so you'd want to change their order, huh? That's a tough one using just one loop - I'd have to think on that!

  • @buildwithtravis6125
    @buildwithtravis6125 4 месяца назад

    Love it! I've been using the 2 query loops, and you're right it doesn't really work for an archive page when you have pagination. But this shows how easy it is to just write a few lines of css to get that effect, despite the fact that you didnt write the CSS mobile first :)

    • @TheAdminBar
      @TheAdminBar  4 месяца назад

      Mobile-first is a fallacy - especially within WordPress (which is CERTAINLY not set up to be mobile first). I think an argument could be made for me to do this the opposite way - but I'm a "path of least resistance" guy 😅 ruclips.net/video/p3k_IrXLNRc/видео.htmlsi=QTW3blEzCY-Z8FMv

    • @buildwithtravis6125
      @buildwithtravis6125 4 месяца назад

      Agree to disagree. Mobile-first isn't a fallacy, it would have resulted in writing less CSS here and be easier to reason about when coming back to it.

  • @RJAdams
    @RJAdams 3 месяца назад

    I really like this, and it was a fantastic tutorial. Is there any way to get it to not show the ftd post on pages 2 and beyond when using pagination?

  • @Andriansahj
    @Andriansahj 4 месяца назад

    Nice video Kyle, I learn a lot. I want to ask is aspect ratio only available on GB premium? (5.10)

    • @TheAdminBar
      @TheAdminBar  4 месяца назад +1

      Yes, it's only available in the new Global Styles controls that are a part of GB Pro

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

    Hi Kyle, great video 👍! I was wondering if you could’ve used the clamp function to set the padding of the containers or grid instead of having to write CSS coding for the media query. With the clamp function set on the desktop, there will be no need for media queries as it will be responsive across all devices, right?

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

      Yeah,that should work fine!

  • @malayghosh4689
    @malayghosh4689 3 месяца назад

    Hi. Can you please create a video on how to display feature image of first articles on homepage as a feature image without any CSS code

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

    HI Kyle,
    I'm new to WP (not a developer) and just an end user. I am trying to build a site and now stuck. I want to only show the first 2 words of the post title when posts are displayed in a grid on the archive page or a custom page i build (will fetch the posts using the query loop). However, the full title should be present in the source. Using the Twenty Twenty Four blocks theme. Unable to find any information on how to achieve this as apparently the 2024 theme is block based and not a php one (absolutely no clue what any of that means). Could you guide me on how to go about achieving this?
    Thanks.

  • @TimTaricco
    @TimTaricco 4 месяца назад

    Wait ... what? No class system for the GenerateBlocks Grid Block in the new GenerateBlocks? I haven't converted over to the new class system in GenerateBlocks yet, but I've always setup GenerateBlocks Global Styles for my Grids and use them constantly in my development system.
    I run into the need for this type of Query Loop Block layout style often, but I need to be able to specify the featured post. I don't always want the featured post to be the newest. I usually specify the post using the "featured" tag. Now you have me thinking "how to have just the 'newest post' with the 'featured' tag show first?"

    • @TheAdminBar
      @TheAdminBar  4 месяца назад

      The grid block is a dead man walking... Now that we have flex and CSS Grid, it's pretty useless. If they can figure out how to get it out of the query loop block, I assume it will disappear.
      As for your scenario - I think that's totally possible! I considered showing something more advanced where you grab a specific category, but it was getting complex enough 😅