This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* yoast breadcrumbs */ | |
#breadcrumbs {font-size: 75%; color: #8e908f;margin:1em 0 2em 0;} | |
#breadcrumbs a {display: inline; border: none; padding: 0; text-transform: none;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- BEFORE --> | |
<?php if ( function_exists( 'yoast_breadcrumb' ) ) { yoast_breadcrumb(); } ?> | |
<!-- AFTER --> | |
<div id="breadcrumbs"><?php if ( function_exists( 'yoast_breadcrumb' ) ) { yoast_breadcrumb(); } ?></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.reset-this { | |
animation : none; | |
animation-delay : 0; | |
animation-direction : normal; | |
animation-duration : 0; | |
animation-fill-mode : none; | |
animation-iteration-count : 1; | |
animation-name : none; | |
animation-play-state : running; | |
animation-timing-function : ease; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A $( document ).ready() block. | |
$( document ).ready(function() { | |
console.log( "ready!" ); | |
// Tracks btn clicks - link needs title tag and class="btn" to work | |
$('.btn').click(function(){ | |
_gaq.push(['_trackEvent', 'btn clicks', 'Click', $(this).attr('title')]); | |
}); | |
// Tracks PDF downloads - link needs title tag and class="pdf" to work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -------------------------- | |
Utility classes | |
-------------------------- */ | |
.clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;} | |
.flush-c {text-align:center;} | |
.flush-l {text-align:left;} | |
.flush-r {text-align:right;} | |
.inlineList li {display:inline;list-style-type:none;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>jQuery Tabs Demo</title> | |
<style> | |
* {padding:0; margin:0;} | |
html { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function richwp_scripts_styles() { | |
wp_enqueue_style( 'richwp-style', get_stylesheet_uri(), '', '1.0', false ); | |
wp_enqueue_script( 'modernizr', get_template_directory_uri() . '/js/modernizr-2.6.1.min.js', '', '1.0', false); | |
wp_enqueue_script( 'jquery' ); | |
wp_enqueue_script( 'plugins', get_template_directory_uri() . '/js/plugins.js', array('jquery'), '1.0', true); | |
} | |
add_action( 'wp_enqueue_scripts', 'richwp_scripts_styles' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getUrlParameter = function getUrlParameter(sParam) { | |
var sPageURL = decodeURIComponent(window.location.search.substring(1)), | |
sURLVariables = sPageURL.split('&'), | |
sParameterName, | |
i; | |
for (i = 0; i < sURLVariables.length; i++) { | |
sParameterName = sURLVariables[i].split('='); | |
if (sParameterName[0] === sParam) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#ValidationSummary p').text(function (i, old) { | |
return old | |
.replace('your title', 'a title') | |
.replace('first name', 'christian name') | |
.replace('your surname', 'your last name'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Checks to see if the competitions box is empty | |
if ( jQuery("#sidebar #primary .textwidget a").css("display") == "none" ) { | |
jQuery('#sidebar #primary').remove(); | |
} |