Skip Navigation

[Resolved] Extra Line breaks added in Content Template

This support ticket is created 2 years, 5 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.

Our next available supporter will start replying to tickets in about 1.72 hours from now. Thank you for your understanding.

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: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Waqar 2 years, 5 months ago.

Assisted by: Waqar.

Author
Posts
#2386569

I am trying to: create a Content Template using Beaver Builder and Toolset

Link to a page where the issue can be seen:hidden link

I expected to see:

Instead, I got: The "Request More Information" button is showing extra line breaks above and below (resulting in a weird blank "mini-button" also)

#2387033

Hi,

Thank you for contacting us and I'd be happy to assist.

For a quick fix, you can include the following custom CSS code, that will hide any line breaks added inside the button's code:


.pp-modal-button a > br {
display:none;   
}

To troubleshoot, why these line breaks are getting included in the first place, I'll need to see how this button is set up, in the admin area and you can share temporary admin login details, in reply to this message.

Note: Your next reply will be private and it is recommended to make a complete backup copy, before sharing the access details.

regards,
Waqar

#2388991

Thank you for sharing the access details.

I noticed that the output/markup of the button from the "PowerPack Module Box" widget, contains the extra space and allocates the span tag for the enclosed text on its own line.
screenshot: hidden link
( you can see this output on a test page named "Test page from TS support" which is not using a Toolset content template )

When the same content is processed by the Toolset's content template, it adds a br tag in place of those extra space/lines, which is the expected behavior, as per the WordPress' "the_content" filter.

We already have an internal ticket to improve the handling of these unexpected br and p tags, when a Toolset content template is designed through the Beaver Builder and I've added your voice to this ticket too.
( ref: https://toolset.com/errata/extraneous-p-and-br-tags-added-to-content-template-output-when-designed-with-beaver-builder/ )

We don't have a time estimate to share at the moment, so, in the meantime, the CSS workaround can be used to deal with those tags, on a case-to-case basis.