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