Hide Bricks Elements using has_blocks()

Sdílet
Vložit
  • čas přidán 28. 03. 2023
  • ⛑️ Services I am now offering:
    Get a Website Quote: wagepirate.com/?ff_landing=12
    WP Consulting (I offer advice, you do the work): wagepirate.com/?fluent-bookin...
    WP Support (I do the work for you): wagepirate.com/?ff_landing=15
    📩 Get my free WordPress Newsletter (join 1600+ other people)
    Subscribe ➜ wagepirate.com/subscribe/?utm...
    (I share tips covering Bricks, FunnelKit, WooCommerce, business & marketing strategy + WordPress news)

Komentáře • 5

  • @pedrocosta3818
    @pedrocosta3818 Před rokem

    Hey man, this is gold! Thank you for the tutorial.

  • @DanielNeubauer
    @DanielNeubauer Před rokem

    Thanks for the video Grant.
    1. Would you mind sharing how you created the table of contents block?
    I would love to have the opportunity to add the TOC as a block instead of having it hardcoded through a single template - which would make it sit at the exact same position everytime.
    If you have done a video on this already - maybe you can point me in the right direction.
    2. I also saw in this video that you have two single templates which both are assigned to all posts, product reviews and so on.
    Why 2? and what is the difference between them?
    3. I also noticed that your archive template is set to be a Single template - should that not be set as Archive in the Bricks template dropdown?
    4. And last but not least how do you like the OxyProps framework? Have you tried ACSS and maybe even Frames as well in the past and if yes, what made you go with Oxyprops instead of ACSS?
    Looking forward to your answer.
    Keep up the great work.

    • @GrantAmbrose
      @GrantAmbrose  Před rokem +1

      Hey Daniel,
      1) Yep! I'm planning to create a video on this. I made it using ACF and registering my own custom Gutenberg block. It's actually really easy to create blocks with ACF so it isn't too complex to do the TOC.
      2) I'll also be making a video on why I have two templates applied but my Blog Post here explains it in great detail wagepirate.com/blog/bricks-builder-template-using-php/
      3) TBH I dont even think it matters whether or not the Archive template is set to Single or Archive, because I set where the template applies under the Conditions for the template and it just works. In this example, I am applying this Bricks Template to my Archives (archive) but also my Blog Post (single). I first created this template when making my Blog Page, and then decided to apply it to all templates - so I think thats why its single here but yeah, I dont think it matters.
      4) I like OxyProps and it does what I need really well (build global CSS classes using custom CSS properties). I haven't tried ACSS or Frames - I would probably choose this over OxyProps if I were doing client work so I could do the wireframing, but for now OxyProps works for what I need. I definitely want to try ACSS but there's only so much time in the day :P
      Hope that helps - let me know if you have any other questions.

    • @DanielNeubauer
      @DanielNeubauer Před rokem

      @@GrantAmbrose Thanks for the answers Grant. Keep up the good work. Always looking forward to your new video releases.