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
/** | |
* Prevent Toolbar from being hidden | |
* | |
* Hide the "Show Toolbar when viewing site" option on the profile page editor. | |
* | |
* @author: Don Fischer | |
* @link http://goo.gl/P5FTK | |
*/ | |
function iweb_hide_admin_bar_profile_option() { | |
echo '<style type="text/css">.show-admin-bar { display: none !important; }</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
/** | |
* Get option shortcode | |
* | |
* Make it easy to add theme options within posts. Example usage: | |
* [get-theme-option key="contact_telephone"] | |
* | |
* @param array $theme_option Shortcode key/values | |
* @return string The value returned by get_option() | |
*/ | |
function iweb_get_option_shortcode( $theme_option ) { |
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
/** | |
* Change wp_mail's from name | |
*/ | |
function iweb_change_from_name( $name = '' ) { | |
return get_bloginfo( 'name' ); | |
} | |
add_filter( 'wp_mail_from_name', 'iweb_change_from_name' ); | |
/** | |
* Change wp_mail's from email |
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 src="<?php echo get_stylesheet_directory_uri(); ?>/js/plugins/jquery.fitvids.js"></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
jQuery(document).ready(function($) { | |
$('.post').fitVids(); | |
}); |
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
if ( ! isset( $content_width ) ) { | |
$content_width = 560; | |
} |
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
if ( function_exists( 'add_theme_support' ) ) { | |
add_theme_support( 'post-thumbnails' ); | |
set_post_thumbnail_size( $content_width, 1024, 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
/** | |
* Prevent images from being inserted with a link. | |
* User must specify if they really want to link to the attachment page | |
*/ | |
update_option( 'image_default_link_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
wp_enqueue_script( 'jquery-ui-datepicker' ); | |
wp_enqueue_style( 'jquery.ui.theme', get_stylesheet_directory_uri() . '/css/ui-lightness/jquery-ui-1.8.16.custom.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
$post_thumbnail_attributes = array( | |
'class' => 'our-image-class maybe-add-another-class', | |
'alt' => get_the_title(), | |
'title' => get_the_title() | |
); | |
the_post_thumbnail( 'post-thumbnail', $post_thumbnail_attributes ); |
OlderNewer