Home Forums Basel support forum HTTPS Logo Support

HTTPS Logo Support

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #4531

    tobidude
    Participant

    Please make the Logo available over https!

    Also a retina logo support would be nice.

    #4538

    Artem Temos
    Keymaster

    Hello,

    Are you able to provide us your admin access so we could take a look why you can’t upload logo via SSL? It works for us correctly.

    Regards

    #4555

    tobidude
    Participant

    We uploaded a logo no problem.

    But it is always inserted via “http://”, also on “https://” pages. This causes errors. Simply use “//www.xxx.com” and all problems are solved.

    #4568

    Artem Temos
    Keymaster

    Hi,

    Yes, the best solution is always to use // instead of http://.

    #4583

    tobidude
    Participant

    So I believe this will be fixed in the next update?

    Please release soon.

    #4584

    Artem Temos
    Keymaster

    At the moment you can fix it by adding the following code to the functions.php file in the child theme

    function basel_header_block_logo() {
    
    	$header_color_scheme = basel_get_opt( 'header_color_scheme' );
    
    	// Get the logo
    	$logo 		= BASEL_IMAGES . '/logo.png';
    	$logo_white = BASEL_IMAGES . '/logo-white.png';
    
    	$logo_uploaded = basel_get_opt('logo');
    	$logo_white_uploaded = basel_get_opt('logo-white');
    
    	if(isset($logo_white_uploaded['url']) && $logo_white_uploaded['url'] != '') {
    		$logo_white = $logo_white_uploaded['url'];
    	}
    	if(isset($logo_uploaded['url']) && $logo_uploaded['url'] != '') {
    		$logo = $logo_uploaded['url'];
    	}
    
    	if( $header_color_scheme == 'light' ) {
    		$logo = $logo_white;
    	}
    
    	$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
    	$logo = $protocol. str_replace(array('http://', 'https://'), '', $logo);
    
    	$logo_img = '<img src="' . $logo . '" alt="' . get_bloginfo( 'name' ) . '" />'
    
    	?>
    		<div class="site-logo">
    			<a href="<?php echo esc_url( home_url('/') ); ?>" rel="home">
    				<?php echo ( $logo_img ); ?>
    			</a>
    		</div>
    	<?php
    }

    If you are not using child theme just find the file inc/functions.php and replace this function with a new one. We will fix this in the next update for sure.

    #4641

    tobidude
    Participant

    Alright, as it’s included in the next update all is fine. Thanks

    #4646

    Artem Temos
    Keymaster

    Yes, you will get the fix in the next theme update.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘HTTPS Logo Support’ is closed to new replies.