Skip to content

Instantly share code, notes, and snippets.

View modzerg's full-sized avatar
🎯
Focusing

Serhii Butkovskyi modzerg

🎯
Focusing
View GitHub Profile
@iMazed
iMazed / contactform7-form.php
Created February 27, 2015 09:11
Great for when you want to use FontAwesome in a submit button in Contact Form 7
//add instead of [submit] in Contact Form 7
<button type="submit" class="btn btn-large btn-primary"><i class="fa fa-bed"></i></button>
<img class="ajax-loader" src="http://www.yoursite.com/wp-content/plugins/contact-form-7/images/ajax-loader.gif" alt="Sending ..." style="visibility: hidden; opacity: 1;">
@omurphy27
omurphy27 / PHP Wordpress Removing Contact Form 7 Br tags when adding to template.html
Created March 15, 2013 00:27
PHP Wordpress Removing Contact Form 7 Br tags when adding to template
<!-- adding Contact Form 7 into Wordpress Template and removing <br> tags
add the following to the wordpress template -->
<?php echo do_shortcode('[contact-form-7 id="211" title="Spanish Contact Form"]') ; ?>
<!-- add the following into the wp-config.php -->
define ('WPCF7_AUTOP', false );
<!-- This will remove the <br> tags that get added automatically when you call Contact Form 7 from the template via shortcode-->