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
<?php | |
/* -------------------------------------------------------------------- | |
:: Auto-Includer | |
Loads PHP files from the /includes/ directory. For WordPress sites, | |
this code would go in your functions.php file. | |
-------------------------------------------------------------------- */ | |
foreach (glob(__DIR__ . '/includes/*.php') as $my_theme_filename) { |
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
#tinymce { | |
background: white; | |
} | |
#tinymce a { | |
color: #ff0000; | |
} |
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
<?php | |
// Add styles to the WYSIWYG editor. Function finds stylesheet from the root of the current theme's folder. | |
add_editor_style('style.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
jQuery(document).ready(function($) { | |
// Remove width & height attributes from images (added by default in WordPress) | |
$('img').removeAttr('width').removeAttr('height'); | |
// Remove style attribute on image captions, which sets a fixed width by default | |
$('.wp-caption').removeAttr('style'); | |
}); |
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
img, | |
.wp-caption { | |
max-width: 100%; | |
} |
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
<?php | |
// Create a function to enqueue our scripts | |
function add_my_scripts() { | |
// Enqueue the modernizr script file and specify that it should be placed in the <head> | |
wp_enqueue_script( 'modernizr', get_template_directory_uri() . '/js/libs/modernizr-2.5.3.min.js', array(), '2.5.2', false ); | |
} |
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
<?php | |
// Insert the following line into your functions.php file | |
update_option('image_default_link_type','none'); | |
?> |