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
class dna_custom_class extends thesisdna { | |
public function __construct() { | |
add_filter ('dna_tinymce', array($this, 'add_my_tinycss')); | |
} | |
public function add_my_tinycss($dna_admin_css) { | |
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
class dna_custom_class extends thesisdna { | |
public function __construct() { | |
add_action( 'admin_enqueue_scripts', array( $this, 'styles')); | |
add_filter( 'upload_mimes', array($this, 'cc_mime_types')); | |
} | |
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
add_shortcode('shortcode', array($this, 'my_shortcode')); | |
public function my_shortcode($atts, $content = null) { | |
extract(shortcode_atts(array( | |
"tag" => 'div', | |
"class" => '', | |
"id" => '', | |
), $atts)); |
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
class dna_custom_class extends thesisdna { | |
public function __construct() { | |
add_image_size('Letterbox', 460, 258, true ); | |
add_filter('image_size_names_choose', array($this, 'my_custom_sizes')); | |
} | |
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
Append the following to the url: ?modestbranding=1;autohide=1&showinfo=0&controls=1&autoplay=0&rel=0 |
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
// Register Custom Taxonomy | |
function testimonials_taxonomy() { | |
$labels = array( | |
'name' => _x( 'Sectors', 'Taxonomy General Name', 'thesis_dna' ), | |
'singular_name' => _x( 'Sector', 'Taxonomy Singular Name', 'thesis_dna' ), | |
'menu_name' => __( 'Sector', 'thesis_dna' ), | |
'all_items' => __( 'All Sectors', 'thesis_dna' ), | |
'parent_item' => __( 'Parent Sector', 'thesis_dna' ), | |
'parent_item_colon' => __( 'Parent Sector:', 'thesis_dna' ), |
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
$(window).bind("load", function() { | |
//YOUR CODE | |
}); |
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
<script> | |
jQuery(function($){ | |
$.fn.firstWord = function() { | |
var text = this.text().trim().split(' '); | |
var first = text.shift(); | |
this.html((text.length > 0 ? '<span class="title-highlight">'+ first + '</span> ' : first) + text.join(' ')); | |
}; | |
$('h1').firstWord(); | |
}); | |
</script> |
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
class dna_custom_class extends thesisdna { | |
public function __construct() { | |
add_filter('thesis_fonts', array($this, 'add_my_font')); | |
} | |
public function add_my_font($fonts) { |
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 href="mailto:richard@richerimage.co.uk" class="email-link">email us</a> | |
<a href="skype:rich.barratt?call" class="skype-link">skype us</a> | |
<a href="callto:+441212861965" class="skype-call-link">call us with skype</a> | |
<a href="tel:+441212861965" class="call-us-link">call us</a> | |
<a href="http://twitter.com/?status=@richer_image">tweet us</a> | |
<a href="facetime:14085551234">faceTime-us</a> (or href="facetime:user@example.com) | |
metatags for diabling automatic telephone numbet links on apple and blackberry |