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 'help'-tab i Admin area | |
| add_filter('contextual_help_list','contextual_help_list_remove'); | |
| function contextual_help_list_remove(){ | |
| global $current_screen; | |
| $current_screen->remove_help_tabs(); | |
| } |
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 ADMIN DASHBOARD WIDGETS*/ | |
| function remove_dashboard_widgets() { | |
| global $wp_meta_boxes; | |
| unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); | |
| unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); | |
| unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); | |
| unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); | |
| unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']); | |
| unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); |
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
| // Post thumbnails are pretty useful and pretty easy to use in WordPress. Simply add: | |
| add_theme_support('post-thumbnails'); | |
| // To a theme's functions.php file and you'll get a Featured Image module on the admin screen for posts | |
| // which allows you to select one. | |
| // It is also very easy to output that image as an HTML <img>: | |
| the_post_thumbnail(); | |
| //Get the URL? |
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_action('admin_head', 'my_custom_fonts'); | |
| function my_custom_fonts() { | |
| echo '<style> | |
| body, td, textarea, input, select { | |
| font-family: "Lucida Grande"; | |
| font-size: 12px; | |
| } | |
| </style>'; | |
| } |
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 | |
| add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); | |
| function woo_remove_product_tabs( $tabs ) { | |
| unset( $tabs['description'] ); // Remove the description tab | |
| unset( $tabs['reviews'] ); // Remove the reviews tab | |
| unset( $tabs['additional_information'] ); // Remove the additional information tab | |
| return $tabs; | |
| } |
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
| /** | |
| * Code goes in your Child Theme functions.php. | |
| */ | |
| add_action( 'woocommerce_created_customer', 'woocommerce_created_customer_admin_notification' ); | |
| function woocommerce_created_customer_admin_notification( $customer_id ) { | |
| wp_send_new_user_notifications( $customer_id, '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
| /* Ex.: Iconlogo */ | |
| .site-title a::before { | |
| background-image: url(url-to-your-logo.png); | |
| background-size: 46px 26px; | |
| background-repeat: no-repeat; | |
| display: inline-block; | |
| width: 36px; | |
| height: 36px; | |
| content: ""; |
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
| // Rename "Tags" in Single Product Page - WooCommerce | |
| add_filter('gettext', 'woo_translate_tag_taxonomy'); | |
| add_filter( 'ngettext', 'woo_translate_tag_taxonomy' ); | |
| function woo_translate_tag_taxonomy($translated) { | |
| if ( is_product() ) { | |
| // This will only trigger on the single product page | |
| $translated = str_ireplace('tag', 'brand', $translated); | |
| } |
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
| //* Modify comments title text "Comments" in comments*/ | |
| add_filter( 'genesis_title_comments', 'sp_genesis_title_comments' ); | |
| function sp_genesis_title_comments() { | |
| $title = '<h3>Your custom title here</h3>'; | |
| return $title; | |
| } |
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
| // Customize the post meta | |
| // Remove "Filled in"-text and "Tagged"-text | |
| add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); | |
| function sp_post_meta_filter($post_meta) { | |
| if ( !is_page() ) { | |
| $post_meta = '[post_categories before=""] [post_tags before=""]'; | |
| return $post_meta; | |
| }} |