Skip Navigation

[Resolved] Cannot get 2 fields to appear next to each other using Fields and Views block

This support ticket is created 2 years, 10 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Zayne 2 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#2279173
Screenshot 2022-01-30 at 07.49.08.jpg
Screenshot 2022-01-30 at 07.49.15.jpg
Screenshot 2022-01-30 at 07.38.09.png
Screenshot 2022-01-30 at 07.34.00.jpg
Screenshot 2022-01-30 at 07.27.22.jpg

I'm trying to put 2 custom fields next to each other in the same sentence: a product name and then the product price. This is turning out to be very difficult. Toolset keeps wanting to put them on their own lines, no matter what I try to do.

I'm using the fields and views block. Toolset puts <p></p> around the first shortcode and then nothing around the other. Why the paragraph code? and if it's inserted it for the first code, why not the second?

I then go into the HTML view to remove the <p> and </p>, but on the frontend, the css class tb-fields-and-text doesn't take up the full width of the enclosing column, so the words get wrapped.

Is there some trick to the formatting with blocks? How do I get control over simple issues like this?

#2279215

On further investigation, it seems this behaviour is not present when using the default Paragraph block an inserting custom fields in there. It's an issue with the Fields and Text block. What I noticed is that the second field is a Toolset WooCommerce field, and when inserted in the Field and Views block, it puts a span around it and treats it differently to other fields.

I think this is still worth investigating as a bug .

#2279701

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As I understand, you want to display the title and price on the same line - is that correct? If yes, can you please share problem URL and admin access details. Let me review your structure and see what we can do to fix it.

Please share details about what you want to display at what place. Maybe you can share screenshot about your expected result.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2284005

As I mentioned in my previous reply, I was able to get around this bug by using the default paragraph block and inserting dynamic data. However, I strongly believe that this is a bug in the Fields and Text Block, and that you need to investigate it, as it does some strange things with the formatting.

Thanks.