Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Layout issue with the repeater field in a query

  • Hi everyone,
    Having my first go at using the new repeater field via ACF.
    Using an element for a single entry.
    All good in regard to the content coming in, but I have a layout issue.
    If you look at the page supplied you can see that the two fields are vertical, but I have configured them to be one row each. it looks OK when editing, but not viewing one of the pages for that ACF entry.
    Loop item is set to:
    repeat(2, minmax(0, 1fr))

    I added a similar layout below it with static text and it looks fine!

    Browse down below the top sections with green background to see the start of the query look.

    TIA, Dave

  • Hi Dave,

    In each loop item, there’s a text with content and another text with no content:
    https://app.screencast.com/fJaK8mt7XRBeI

    Do you know where the empty text comes from?

    Let me know 🙂

  • Hi Ying,
    As soon as you identified that, I had a light bulk moment.
    I recall watching the video below from Adam Wright, where he was stumped with some extra space when placing a WYSIWYG ACF field on a page and noticed extra spacing, which was caused by a rogue <p> tag.
    So I changed my two p entries to div’s and the problem is sorted.
    A bit of a gotcha, but once you know, you know 🙂
    Thanks again, Dave

  • Great! Glad you figured it out 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.