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
function cc_mime_types( $mimes ){ | |
$mimes['svg'] = 'image/svg+xml'; | |
return $mimes; | |
} | |
add_filter( 'upload_mimes', '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
.container { | |
height: auto; | |
overflow: hidden; | |
} | |
.right { | |
width: 180px; | |
float: right; | |
background: #aafed6; | |
} |
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
.container { | |
height: auto; | |
overflow: hidden; | |
} | |
.left { | |
float: left; | |
width: 300px; | |
} | |
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_action( 'wp_print_styles', 'my_deregister_styles', 100 ); | |
function my_deregister_styles() { | |
wp_deregister_style( '*STYLESHEET HANDLE*' ); | |
} | |
//Stylesheet handle can be found by going to the plugin index php file and searching for wp_enqueue_style. | |
//Source: http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles |
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 | |
/* Remove All Page Titles */ | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
/* Selectively Remove Page Titles */ | |
add_action( 'get_header', 'child_remove_page_titles' ); | |
function child_remove_page_titles() { | |
$pages = array( 259 ); | |
if ( is_page( $pages ) ) { |
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_filter('widget_text', 'do_shortcode'); | |
//Source: http://www.carriedils.com/extend-wordpress-widgets-without-plugin/ |
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
//Execute PHP in WordPress Text Widget | |
add_filter('widget_text','execute_php',100); | |
function execute_php($html){ | |
if(strpos($html,"<"."?php")!==false){ | |
ob_start(); | |
eval("?".">".$html); | |
$html=ob_get_contents(); | |
ob_end_clean(); | |
} | |
return $html; |
OlderNewer