This file contains hidden or 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
body { | |
‑webkit‑text‑size‑adjust: 100% | |
} |
This file contains hidden or 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 shortcodes to widgets*/ | |
add_filter('widget_text', 'do_shortcode'); |
This file contains hidden or 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
/******Step 1, Add to Functions.php ************** | |
**************************************************/ | |
add_action( 'admin_init', 'custom_add_taxonomy_archive_options' ); | |
/** | |
* Loop through the custom taxonomies and add the archive options to each | |
* custom taxonomy edit screen. | |
* | |
* @category Genesis | |
* @package Admin |
This file contains hidden or 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
<div class="printer" title=""> | |
<script language="JavaScript"> | |
if (window.print) { | |
document.write('<form> ' + '<input type=button name=print value="" ' + 'onClick="javascript:window.print()"></form>'); | |
} | |
</script> | |
</div> |
This file contains hidden or 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 Viewport meta tag for mobile browsers */ | |
add_action( 'genesis_meta', 'add_viewport_meta_tag' ); | |
function add_viewport_meta_tag() { | |
echo '<meta name="viewport" content="width=1480">'; | |
} |
This file contains hidden or 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
/** Conditional html element classes for HTML 5 */ | |
remove_action( 'genesis_doctype', 'genesis_do_doctype' ); | |
add_action( 'genesis_doctype', 'child_do_doctype' ); | |
function child_do_doctype() { | |
?> | |
<!DOCTYPE html> | |
<!--[if lt IE 7 ]> <html class="ie6" <?php language_attributes( 'html' ); ?>> <![endif]--> | |
<!--[if IE 7 ]> <html class="ie7" <?php language_attributes( 'html' ); ?>> <![endif]--> | |
<!--[if IE 8 ]> <html class="ie8" <?php language_attributes( 'html' ); ?>> <![endif]--> | |
<!--[if IE 9 ]> <html class="ie9" <?php language_attributes( 'html' ); ?>> <![endif]--> |
This file contains hidden or 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
function new_excerpt_more( $more ) { | |
return '[...]'; | |
} | |
add_filter('excerpt_more', 'new_excerpt_more'); |
This file contains hidden or 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 ( wp_is_mobile() ) { | |
wp_redirect( 'http://example.com/m/' ); | |
exit; | |
} |
This file contains hidden or 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
/**Allow line breaks and spans in widget title*/ | |
add_filter('widget_title','my_widget_title',10,3); | |
function my_widget_title($title) | |
{ | |
$title = str_replace("[br]", "<br/>", $title); | |
$title = str_replace("[sp]", "<span>", $title); | |
$title = str_replace("[/sp]", "</span>", $title); | |
return $title; | |
} |
OlderNewer