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 | |
//* Add the ability to use shortcodes in widgets | |
add_filter( 'widget_text', 'do_shortcode' ); |
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 | |
//* Prevent WordPress from compressing images | |
add_filter( 'jpeg_quality', create_function( '', 'return 100;' ) ); |
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 'Editor' from 'Appearance' Menu. | |
//* This stops users and hackers from being able to edit files from within WordPress. | |
define( 'DISALLOW_FILE_EDIT', true ); |
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 | |
//* Add theme info box into WordPress Dashboard | |
add_action('wp_dashboard_setup', 'website_name_add_dashboard_widgets' ); | |
function website_name_add_dashboard_widgets() { | |
wp_add_dashboard_widget('wp_dashboard_widget', 'Theme Details', 'website_name_theme_info'); | |
} |
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 | |
//* Modify the admin footer text | |
add_filter( 'admin_footer_text', 'website_name_modify_footer_admin' ); | |
function website_name_modify_footer_admin () { | |
echo '<span id="footer-thankyou">Theme Development by <a href="http://braundesign.co" target="_blank">Braun Design Co</a></span>'; | |
} |
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 | |
//* Login Screen: Change login logo | |
add_action( 'login_head', 'website-name_custom_login_logo' ); | |
function website-name_custom_login_logo() { | |
echo '<style type="text/css"> | |
h1 a { background-image:url('.get_stylesheet_directory_uri().'/images/login.png) !important; background-size: 150px 137px !important; height: 137px !important; width: 150px !important; margin-bottom: 30px !important; padding-bottom: 0 !important; } | |
.login form { margin-top: 10px !important; } | |
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), |
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 items from the <head> section | |
remove_action( 'wp_head', 'wp_generator' ); //* Remove WP Version number | |
remove_action( 'wp_head', 'wlwmanifest_link' ); //* Remove wlwmanifest_link | |
remove_action( 'wp_head', 'rsd_link' ); //* Remove rsd_link | |
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); //* Remove shortlink | |
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); //* Remove previous/next post links |
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
{ | |
"color_scheme": "Packages/Theme - Cobalt2/cobalt2.tmTheme", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"font_face": "Source Code Pro for Powerline", | |
"font_size": 13, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], |