Skip to content

Instantly share code, notes, and snippets.

@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-->
@omurphy27
omurphy27 / css, transform, keyframe and vendor prefixes.css
Created March 19, 2013 04:22
CSS Transform, Keyframe and Vendor Prefixes
/* animate, transform, keyframe use and the associated vendor prefixes */
.letter-container h2 a span:nth-child(even) {
-webkit-transform: rotate(3deg) translateZ(0); /* apparently that Z stuff is needed for webkit browsers like chrome */
-moz-transform: rotate(3deg);
-o-transform: rotate(3deg);
-ms-transform: rotate(3deg);
transform: rotate(3deg);
@omurphy27
omurphy27 / transparent background image pattern overlay.css
Created March 26, 2013 04:59
CSS Transparent Background Image Pattern Overlay
/*Transparent pattern placed over an image, like we see on the bootstrap homepage: http://twitter.github.com/bootstrap/index.html*/
div {
width: 200px;
height: 200px;
display: block;
position: relative;
background: url(images/background-image.png);
}
@omurphy27
omurphy27 / CSS Clear and Clearfix Classes.css
Created June 2, 2013 01:13
CSS Clear and Clearfix Classes
/* Clear and Clearfix CSS classes */
.clear {
clear: both;
}
.clearfix:after {
display: block;
clear: both;
content: "";
@omurphy27
omurphy27 / mediaqueries.css
Last active August 15, 2018 16:19
CSS Responsive Base Bootstrap Max Width Media Queries.css
@media (max-width: 1199px) {
}
@media (max-width: 991px) {
}
@media (max-width: 767px) {
@omurphy27
omurphy27 / CSS Fade in Text Keyframe Animation Transition.css
Created September 19, 2013 06:09
CSS Fade in Text Keyframe Animation Transition.css
/* Fade in Text Keyframe Animation CSS */
.fade-in-left {
-webkit-animation: fadeinleft 600ms ease-in-out;
-moz-animation: fadeinleft 600ms ease-in-out;
-o-animation: fadeinleft 600ms ease-in-out;
-ms-animation: fadeinleft 600ms ease-in-out;
animation: fadeinleft 600ms ease-in-out;
}
@omurphy27
omurphy27 / jquery creating html markup with custom values.js
Created September 29, 2013 23:02
jquery creating html markup with custom values.js
$("<h1>", {
text: 'This is just practice yo, ignore it son',
class: 'what up yo',
id: 'in the house',
name: 'what what',
type: 'submit'
}).appendTo(".container");
@omurphy27
omurphy27 / Clear SetTimeout Scroll Jquery Javascript.js
Created December 5, 2013 08:10
Clear SetTimeout Scroll Jquery Javascript
// view source here: http://stackoverflow.com/questions/5632380/settimeout-solution-on-twitter
// basically, clearing a settimeout everytime the user scrolls, so the action isn't actually executed
//until the user stops scrolling
var $clear = null;
$(window).on('scroll',function() {
var $h2Span = $('.portfolio-page .top-content h2 span');
$h2Span.addClass('dotted-line');
@omurphy27
omurphy27 / HTAccess redirectmatch 301 - redirecting entire directories.htaccess
Created January 25, 2014 00:02
HTAccess redirectmatch 301 - redirecting entire directories.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
RedirectMatch 301 ^/nba/.*$ http://oddsfather.com/
@omurphy27
omurphy27 / Gravity Forms Column UL breakpoint - break the ul in two.html
Last active August 29, 2015 14:01
Gravity Forms Column UL breakpoint - break the ul in two.html
<!-- Gravity Forms Column Breakpoint, for breaking the ul and creating a second one in the middle of the form -->
</li>
</ul>
<ul class="gform_fields top_label description_below">