felixarntz / bootstrap-for-contact-form-7

This plugin modifies the output of the popular Contact Form 7 plugin to be styled in compliance with themes using the Bootstrap CSS framework.
https://wordpress.org/plugins/bootstrap-for-contact-form-7/
GNU General Public License v2.0
24 stars 18 forks source link

Allow html tags between the opening and closing shortcode tags #43

Open javornikolov opened 7 years ago

javornikolov commented 7 years ago

I want to display a label with an embedded hyperlink in the following way:

[acceptance your-terms-acceptance default:on]I agree to follow <a href="http://here-are-the-rules" target="_blank">the rules</a> and to behave well[/acceptance]

However the hyperlink is not rendered but it's definition (with the tags) is displayed as plain text.

It would be good if it's possible to render embedded html tags within thee shortcode blocks.

schneidr commented 7 years ago

I can't confirm this. Links between the [acceptence] tags are rendered properly (using smart-magazine theme). Maybe a problem in your theme?

javornikolov commented 7 years ago

We're using Attractor Theme: http://www.highgradelab.com/

Or it might be something related to the other fields in our form... I'll try again something simpler. Or if you may share your test-case (if it's simple enough) - I can try it on our site too.

javornikolov commented 7 years ago

I just installed wordpress from scratch (latest version) with smart-magazine theme. The problem is reproduced:

contact-form-acceptance-with-link

Here is the contact form code:

[text* your-name]Your Name[/text*]
[email* your-email]Your Email[/email*]
[text your-subject]Subject[/text]
[acceptance your-terms-acceptance default:on]I agree to follow <a href="https://github.com/agis-/git-style-guide" target="_blank">the rules</a> and to behave well[/acceptance]
[textarea your-message]Your Message[/textarea]
[submit "Send"]

The page itself is as simple as:

[contact-form-7 id="9" title="Contact form 1"]