Skip Navigation

[Resolved] Breaklines using access | #266

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
- 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 1 reply, has 2 voices.

Last updated by Waqar 2 years, 10 months ago.

Assisted by: Waqar.

Author
Posts
#2069109

Hi,
I have a view with this code

[wpv-layout-start]
	[wpv-items-found][toolset_access role="Administrator,Editor" operator="allow"]<h1>Demandes d'analyse récentes</h1>[/toolset_access][toolset_access role="Subscriber" operator="allow"]<h1>Vos demandes d'analyses</h1>[/toolset_access]<table width="100%">

But it renders

<h1>Demandes d'analyse récentes</h1>
<br><br><br><table width="100%">

How may I avoid the abusive br tags?
Thanks

#2069841

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

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

Although I couldn't reproduce this behavior on my test website, some filters from third-party themes and plugins can cause this.

To overcome this, you can wrap your "toolset_access" shortcodes inside a special div container with a class 'no-br-container':


<div class="no-br-container">
[toolset_access role="Administrator,Editor" operator="allow"]
<h1>Demandes d'analyse récentes</h1>
[/toolset_access]
[toolset_access role="Subscriber" operator="allow"]
<h1>Vos demandes d'analyses</h1>
[/toolset_access]
</div>

And in the view's CSS editor, include this custom CSS code:


.no-br-container br {
display:none;
}

This CSS code will hide any 'br' tags within this div with class 'no-br-container'.

I hope this helps and please let me how it goes.

regards,
Waqar

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.