/*
Theme Name:     Theratio Child
Theme URI:      http://wpdemo.archiwp.com/theratio/
Description:    Make your modifications to [Parent Theme] in this child theme.
Author:         Oceanthemes
Author URI:     http://oceanthemes.net/
Version:        1.0
Template:       theratio
*/

@import url("../theratio/style.css");
 
/* =Theme customization starts here
------------------------------------------------------- */

function custom_login_logo() {
    echo '<style type="text/css">'.
             'h1 a { background-image:url('.get_bloginfo( 'template_directory' ).'/images/login-logo.png) !important; background-size: 320px !important; width:320px !important;
 }'.
         '</style>';
}
add_action( 'login_head', 'custom_login_logo' );

/**
 * Custom admin login header link
 */
function custom_login_url() {
    return home_url( '/' );
}
add_filter( 'login_headerurl', 'custom_login_url' );

/**
 * Custom admin login header link alt text
 */
function custom_login_title() {
    return get_option( 'blogname' );
}
add_filter( 'login_headertitle', 'custom_login_title' );



/* Here you can define your own functions
if ( ! function_exists( 'soho_child_my_function' ) ) {
    function soho_child_my_function() {
        //  Do something important here.
    }
}*/

/* or if you want to be organized include your files
require_once( get_stylesheet_directory() . '/my_included_file.php' );

Always use get_stylesheet_directory() to indicate the path to your child theme
*/ 


function dashboard_logo() {
    echo '
        <style type="text/css">
#wpadminbar #wp-admin-bar-wp-logo>.ab-item {
    padding: 0 7px;
    background-image: url("https://koncretiza.pt/wp-content/uploads/2021/07/favicon-32x32-white.png") !important;
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
}
#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon:before {
    content: " ";
    top: 2px;
}
#wpadminbar .ab-sub-wrapper{/*
visibility: hidden;
display: none;
*/
}
        </style>
    ';
}
add_action('wp_before_admin_bar_render', 'dashboard_logo');