Skip to content

Instantly share code, notes, and snippets.

View tommaitland's full-sized avatar

Tom Maitland tommaitland

  • Raisely
  • Melbourne, Australia
View GitHub Profile
@tommaitland
tommaitland / functions.php
Created July 15, 2013 05:34
Remove post columns from WordPress SEO by Yoast
<?php
// functions.php
add_filter( 'wpseo_use_page_analysis', '__return_false' );
@tommaitland
tommaitland / wp-custom-image-sizes.php
Last active June 23, 2017 14:26
Add custom images sizes to WordPress media uploader.
<?php
// Add to functions.php
function custom_image_sizes() {
add_theme_support('post-thumbnails');
add_image_size('banner', 960, 355, true);
add_image_size('thumb', 120, 120, true);
add_image_size('widget', 170, 400, false);
}
@tommaitland
tommaitland / rotate.js
Created June 26, 2013 07:02
Really basic jQuery rotator
// Settings
var wrapper = '.testimonials'; // the element wrapping the rotator
var child = 'blockquote'; // the element to be rotated
// Rotate Script
$(wrapper).each( function() {
$(this).append('<a href="#" class="next button inner">Next Testimonial</a>');
$(this).find(child).each( function() {
@tommaitland
tommaitland / form.html
Last active January 1, 2024 09:55
A form with every HTML form element (up to HTML5) for styling.
<form action="/">
<legend>A Sample Form Legend</legend>
<label for="name">Name: </label>
<input type="text" value="Name" name="Name" />
<label for="email">Email: </label>
<input type="email" value="Email" name="Email" />