-
daveporter
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/fJaK8mt7XRBeIDo you know where the empty text comes from?
Let me know 🙂
-
daveporter
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 🙂
- You must be logged in to reply to this topic.