Skip Navigation

[Resolved] Output Access wraps in tags

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user's access shortcode is displaying P tag around their text inside the access the shortcode.

Solution:

You can remove the p tags by adding raw="true" attribute to the shortcode.

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

Last updated by Dido 3 years, 1 month ago.

Assigned support staff: Shane.

Author
Posts
#1104614

I have this code in my editor:

For example, do you know what [toolset_access role="Administrator,HE Owner" operator="allow"]<a href="hidden link & Tools -Tips (F) and advice House exchange - definitief.doc" rel="noopener">the ideal pH of the water in a swimming pool</a>[/toolset_access][toolset_access role="Administrator,HE Owner" operator="deny"][simple_tooltip content='please <a href="hidden link">register</a> first']the ideal pH of the water in a swimming pool[/simple_tooltip][/toolset_access] is?

This is the front end:
For example, do you know what <p><a href="hidden link & Tools -Tips (F) and advice House exchange - definitief.doc" rel="noopener">the ideal pH of the water in a swimming pool</a></p>
is?

Why is the access text wraps in <p> tags?

is it because of using a Tooltip shortcode?

#1104671

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Dido,

Thank you for contacting our support forum.

You can remove the p tags by adding raw="true" attribute to the shortcode.

Thanks,
Shane

#1104718

This works perfectly, thank you Shane!