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
/* | |
Disable Default Dashboard Widgets | |
@ http://digwp.com/2014/02/disable-default-dashboard-widgets/ | |
*/ | |
function disable_default_dashboard_widgets() { | |
global $wp_meta_boxes; | |
// wp.. | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); |
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
property defaultFileName : "newFile.txt" | |
tell me to activate | |
set theFileName to text returned of (display dialog "Enter a file name:" default answer defaultFileName) | |
tell application "Finder" | |
activate | |
if the (count of windows) is not 0 then | |
set theFolder to (folder of the front window) as text | |
set theFolder to POSIX path of theFolder | |
else | |
set theFolder to POSIX path of (get path to desktop) |
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
#calendars_my div[class='calListRow']:last-child {display:none !important;} | |
div[id='currentDate:0'] {font-weight: bold;font-size:1.26em;} |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Remove the silly WordPress Emoji stuff... | |
function mnmlst_disable_emojis() { | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
remove_action( 'wp_print_styles', 'print_emoji_styles' ); | |
remove_action( 'admin_print_styles', 'print_emoji_styles' ); | |
remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); |
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
<!-- update "Object_Name__c" with your Object, and "Field_Name__c" with your Field --> | |
<apex:pageblocksectionitem helpText="{!$ObjectType.Object_Name__c.Fields.Field_Name__c.inlineHelpText}"> | |
<apex:outputlabel value="{!$ObjectType.Object_Name__c.fields.Field_Name__c.label}" /> | |
<apex:outputpanel layout="block" styleClass="requiredInput"> | |
<apex:outputpanel layout="block" styleClass="requiredBlock"/> | |
<apex:inputfield value="{!Object_Name__c.Field_Name__c}" /> | |
</apex:outputpanel> | |
</apex:pageblocksectionitem> |
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 | |
// Change the page title separator. | |
// change "slug" to your theme's domain | |
function slug_document_title_separator( $sep ) { | |
$sep = ":"; | |
return $sep; | |
} | |
add_filter( 'document_title_separator', 'slug_document_title_separator' ); |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
// Exclude pingbacks from comment count | |
// change "slug" to your theme's domain | |
function slug_comment_count( $count ) { | |
global $id; | |
$comment_count = 0; | |
$comments = get_approved_comments( $id ); | |
foreach ( $comments as $comment ) { |
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
/* Hide switcher */ | |
div.aki.pp { | |
visibility: hidden; | |
} | |
/* Hide compose button */ | |
/* | |
div.aic { | |
display: none; | |
} |
OlderNewer