Show & Hide Buttons in Loop Grid with ACF Trick - Advanced Custom Field - Elementor Pro Wordpress

Поделиться
HTML-код
  • Опубликовано: 9 окт 2023
  • Get our Awesome 'How to Build an Elementor Website Course' - Lifetime Updates and access to New Modules at no extra cost: learn.websquadron.co.uk/
    Join our 'How to Start a Web Design Business' Course - and use strategies to grow, get clients, and generate recurring income: websquadron.co.uk/how-to-star...
    Book your 1-2-1 Consultation: websquadron.co.uk/socials
    This is how to Show & Hide Buttons in Loop Grid with ACF Trick - Advanced Custom Field - Elementor Pro Wordpress
    CSS Code:
    .No {display: none;}
    We love to create - share - respond - and deliver.
    🧐 Learn with our Mastery Modules: websquadron.co.uk/web-design-...
    🔗 All of our Important Links: websquadron.co.uk/socials/
    😃 Join our Facebook Group: / 3309523509284305
    😃 Get Code Snippets Pro: r.freemius.com/10565/3304295/
    😃 Get Elementor Pro: be.elementor.com/visit/?bta=2...
    😃 Boost your RUclips Analysis: www.tubebuddy.com/websquadron
    👕 Get our Merchandise: websquadron.co.uk/merchandise
    🥹 Support us: paypal.me/Websquadron
    Hire us to work on your Website!
    💌 info@websquadron.co.uk
    👩‍💻 Visit websquadron.co.uk
  • ХоббиХобби

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

  • @QuaverloveStudio
    @QuaverloveStudio 8 месяцев назад +1

    The power of dynamic content... AND ACF... AND Elementor!
    I can honestly say I've never noticed a dynamic icon next to the CSS fields in Elementor and I definitely didn't know selector options created in ACF could be used as CSS classes in that way.
    Another game changing moment, Imran. Thank you!

  • @GnuLegax
    @GnuLegax Месяц назад +1

    Very nice and clever way to do that 👏

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

    that's freaking genius. I used js but this is better. Thanks!

  • @HasanRinshaf-zh2yc
    @HasanRinshaf-zh2yc Месяц назад +1

    Thank you.

  • @Whiz_The_Mindbender
    @Whiz_The_Mindbender 6 месяцев назад +2

    Clever idea mate! Thanks

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

    Genius

  • @JorgePelaezdeIta
    @JorgePelaezdeIta 8 месяцев назад +1

    Got it. I will work with it 😁

  • @ScadooshGoat
    @ScadooshGoat 8 месяцев назад

    Smart

  • @programmesana
    @programmesana 8 месяцев назад

    Smart :)

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

    How can you do a LOOP with 13 columns? I'm trying to do a calendar which shows up an icon for each month if it has been clicked on the backend single post. Thank you.

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

      That would need some planning.
      I can only discuss more as part of a 1-2-1 - scroll down to see: learn.websquadron.co.uk/

  • @ndelcastillo1995
    @ndelcastillo1995 8 месяцев назад

    Hi! I have some download buttons while using ACF for each Artist. Each button allows the user to download different things. The thing is that there some Artists that don't have material to download on one of the buttons so I would like to display:none those buttons that have nothing to download. I follow your steps but when I reach to Classes CSS and try to choose the ACF i need it doesn't appears. Iam using an ACF URL Field. It may be a problem because I am using ACF free version?

    • @websquadron
      @websquadron  8 месяцев назад

      Should still work with ACF.
      What was the field type for the field that you try to pull into Class? It needs to be a text field.

  • @user-es8dt9ez2l
    @user-es8dt9ez2l 8 месяцев назад

    This is very nice. Alternatively, you could accomplish this by adding CSS to the button that says "If the the Href is empty, display none". That would allow for one less thing the client needs to click on.

    • @websquadron
      @websquadron  8 месяцев назад

      Have you got that code because I found that you need JS as well

    • @user-es8dt9ez2l
      @user-es8dt9ez2l 8 месяцев назад +3

      @@websquadron I did it with ACF and social icons widget (not buttons), but I assume you could do it with this (might need to modify the selector) `selector:not([href]) {
      display:none;}`

    • @MikeLikesThat
      @MikeLikesThat 8 месяцев назад

      I just did this recently and yes that code works:
      .elementor-button:not([href]) {
      display: none;
      }

  • @Jon-jx2xw
    @Jon-jx2xw 8 месяцев назад +1

    Interesting take. Think I would rather use the dynamic conditions plugin and set the condition to if the URL field is empty don't show the button. That way the empty button code wouldn't be outputted to the template, rather than it just being hidden with CSS

    • @Kobayashi360
      @Kobayashi360 8 месяцев назад

      This is what I do. Cool to see an approach that doesn’t use an additional plugin though

    • @PaulHanley71
      @PaulHanley71 5 месяцев назад

      Is it possible to hide an empty field with CSS in a similar way to in the video? I agree though, using some functionality from a plugin to hide a field that is empty before redering is definitely better. Which plugin is best for doing this?

  • @savazero
    @savazero 7 месяцев назад

    Can this be done in Bricks page builder?

    • @websquadron
      @websquadron  7 месяцев назад +1

      Yes as it's just using ACF.

    • @savazero
      @savazero 7 месяцев назад

      @@websquadron Can it be done with JetEngine?

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

    and let's say we have a text field? Do you have solution?