WordPress blog url without http

This function removes the http protocol from the get_bloginfo( ‘wpurl’ ). You can also do this with the site_url() function for example.

function simple_url() {
   $protocols = array( 'http://', 'http://www.', 'www.' );
   echo str_replace( $protocols, '', get_bloginfo( 'wpurl' ) );
}