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
// Mobile First | |
@media screen and (min-width: 321px) { // iPhone landscape | |
} | |
@media screen and (min-width: 481px) { // iPad portrait | |
} |
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
/* Generates current template file name - For debugging only! */ | |
add_filter( 'template_include', 'var_template_include', 1000 ); | |
function var_template_include( $t ){ | |
$GLOBALS['current_theme_template'] = basename($t); | |
return $t; | |
} | |
function get_current_template( $echo = false ) { | |
if( !isset( $GLOBALS['current_theme_template'] ) ) | |
return false; |
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
© <?php echo date("Y") ?> |
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
/** REMOVE PERSONAL OPTIONS FROM PROFILE PAGE **/ | |
<? | |
// removes the `profile.php` admin color scheme options | |
remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' ); | |
if ( ! function_exists( 'rdm_remove_personal_options' ) ) { | |
// removes the leftover 'Visual Editor', 'Keyboard Shortcuts' and 'Toolbar' options. | |
function rdm_remove_personal_options( $subject ) { | |
$subject = preg_replace( '#<h2>Personal Options</h2>.+?/table>#s', '', $subject, 1 ); |
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
<p>Copyright © <script language="JavaScript" type="text/javascript">document.write((new Date()).getFullYear());</script> My Company Name</p> |
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
<?php | |
/* Remove specific plugin from the Plugin List | |
* update plugin-directory/plugin-file.php whatever plugin | |
*/ | |
add_action('pre_current_active_plugins', 'rdm_hide_plugin'); | |
function rdm_hide_plugin() { | |
global $wp_list_table; | |
$hidearr = array('plugin-directory/plugin-file.php'); | |
$myplugins = $wp_list_table->items; |
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
<?php | |
add_action('after_setup_theme', 'rdm_remove_admin_bar'); | |
function rdm_remove_admin_bar() { | |
if (!current_user_can('administrator') && !is_admin()) { | |
show_admin_bar(false); | |
} | |
} |
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 TO FUNCTIONS.PHP OR require get_template_directory() . '/inc/custom_fuctions.php'; | |
<?php | |
add_action('wpcf7_mail_sent', 'rdm_wpcf7_mail_sent'); | |
function rdm_wpcf7_mail_sent($wpcf7) | |
{ | |
$on_sent_ok = $wpcf7->additional_setting('rdm_on_sent_ok', false); | |
if (is_array($on_sent_ok) && count($on_sent_ok) > 0) | |
{ |
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 id="signature"> | |
<div id="content"> | |
<img src="http://cl.ly/YQhT/flat_drop200x200.png"/></p> | |
<p id="title">Edward D Heltzel</p> | |
<p id="subtitle">Founder & Technical Strategist</p> | |
<p id="web"><a href="http://rainydaymedia.net">rainydaymedia.net</a> <span>•</span> <a href="tel:19372388756">937-238-8756</a> | |
</div> | |
</div> | |
<div id="signature"> |