Skip Navigation

[Resolved] Breaklines using access | #266

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.

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 4 months, 3 weeks ago.

Assigned support staff: Waqar.


I have a view with this code

	[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?



Languages: English (English )

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


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 role="Subscriber" operator="allow"]
<h1>Vos demandes d'analyses</h1>

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

.no-br-container br {

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.