Skip Navigation

[Resolved] View output height problem

This support ticket is created 3 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 5 replies, has 3 voices.

Last updated by beingk 3 years, 2 months ago.

Assisted by: Jamal.

Author
Posts
#2183329
Screenshot 2021-09-29 181435.png

I'm using a View to display content from a repeatable field, which involves displaying 'Fields and Text' of variable height. Even if I set the margins/padding of the 'Fields and Text' content, the container it's in, and the View Loop, I still can't get the content to display properly. Is there a setting in Toolset or CSS I may be missing to respect the height of the content? This is only an issue for Views content.

I usually set the Container to a min-height to accommodate view output for content with predictable height (image + title + excerpt), but since this content is of variable length, that workaround isn't a solution.

Thanks!

#2183755

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Could you clarify what it is your are aiming to achieve, I'm not sure I understand the problem.

The View is iterating over groups of fields, and you are outputting those fields. What kinds of fields are they? You are outputting them using the Fields and Text block, and that is the most appropriate block to use? (Ordinarily you would use that block when you want to output a field value inline between some other content.)

And the problem, specifically, with the output is...?

#2185319
Screenshot 2021-10-01 231143.png
Screenshot 2021-10-01 225134.png

Sorry fort not being clearer about the issue... Here's the setup:

Everything is stored in a Container (screenshot) with margin and padding all set at 0px

Within the Container is a View, using Repeatable Field Groups from the current CPT

Loop style is Unformatted, as I need to display content in a single column. Style settings for the View Loop is margin 25px (top/bottom) and padding 0px (top and bottom)

Within the View Loop are 2 containers:

The 1st one displays a Title and a Heading. Under Inner Content, I've specified 500px for Min-Height and that seems to be recognized. Since the Title uses a shortcode to include an anchor, I've put the shortcode in its own container with the settings 0px for margin/padding (exception of padding-bottom:30px)

The 2nd container contains the Fields and Text content and I've specified 0px for margin/padding. Even though I've specified Min-Height of 1000px or whatever, it gets ignored. The result on the front end is a mess (screenshot) and this has been my experience with all Views referencing RFGs. This seems like a pretty basic issue to me and makes me think that it's something I'm doing wrong or simply something else is interfering here.

The only workaround I've found to work is specifying a really large margin (1700px) to cover all lengths of content, which obviously isn't ideal for content that may significantly vary.

#2185423

I wonder if your website is online and if we can get access to it to check this further? If yes, your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

I also wonder, if you were able to check this with a default theme(2021), this could help us isolate the issue and quickly fix it.

#2185705

Hi Jamal. You were right, it appears to be theme related and I'll need to contact GeneratePress support.

#2185709

My issue is resolved now. Thank you!