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
<ol start="5"> | |
<li>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</li> | |
<li>Nullam id dolor id nibh ultricies vehicula ut id elit.</li> | |
<li>Vestibulum id ligula porta felis euismod semper.</li> | |
</ol> |
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) { |