Created
March 14, 2018 18:02
-
-
Save vitorspencer/0349f4182a7179f0a8dcb7008438cf78 to your computer and use it in GitHub Desktop.
Wordpress Functions
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 your own functions here. You can also copy some of the theme functions into this file. | |
* Wordpress will use those functions instead of the original functions then. | |
*/ | |
function mytheme_enqueue_styles() { | |
wp_register_style('googleFonts', '//fonts.googleapis.com/css?family=Roboto+Condensed:400,700'); | |
wp_enqueue_style( 'googleFonts'); | |
} | |
// CUSTOM LOGIN PAGE LOGO | |
function wow_custom_login_logo() { | |
echo '<style type="text/css"> h1 a { background-image:url(' . get_bloginfo('stylesheet_directory') . '/images/logo.png) !important; width: 100% !important; height: 100px !important; background-size: 100% !important;} </style>'; | |
} | |
add_action('login_head', 'wow_custom_login_logo'); | |
// CUSTOM ADMIN DASHBOARD HEADER LOGO | |
// function wow_custom_admin_logo() { | |
// echo '<style type="text/css">#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon:before { background-image: url(' . get_bloginfo('stylesheet_directory') . '/images/favicon.png) !important; content: "" !important; width: 100%; }</style>'; | |
// } | |
// add_action('admin_head', 'wow_custom_admin_logo'); | |
// Admin footer modification | |
function remove_footer_admin () | |
{ | |
echo '<span id="footer-thankyou">Developed and maintained with ❤ by <a href="https://webodew.com" target="_blank">Webodew</a></span>'; | |
} | |
add_filter('admin_footer_text', 'remove_footer_admin'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment