New Landing How can we help? Themeforest Theme Support Neighborhood I got SSL issue with header logo

Viewing 8 posts - 1 through 8 (of 8 total)
  • #166242
    jyc109th
    Member
    Post count: 80

    Hello
    I’m David, and I got SSL issue with my header logo.

    I’m using a ‘wordpress https’ plugin and port number ‘40536’, and it’s fine.
    (I can’t use default port in wordpress because hosting company issue)

    However, on checkout page, when I click my header logo I can’t go back right url.
    Here is my summary.

    1. I have to go to ‘http://www.gagestore.co.kr/’, and image url: https://www.gagestore.co.kr:40536/..’ (on checkout page)

    2. I have to go to ‘http://www.gagestore.co.kr/’ and image url: http://www.gagestore.co.kr/..’

    So, I’d like to go back to ‘http://..’ with my header logo on all of pages..

    How could I fix this issue? I feel like I have to fix some php files..

    I attached my screenshot file, please see this one~

    thank you.

    Attachments:
    You must be logged in to view attached files.
    #166292
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please install wordpress HTTPS plugin. Hope that should help to you.
    Thanks
    Mohammad

    #166320
    jyc109th
    Member
    Post count: 80
    This reply has been marked as private.
    #166361
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    function sf_logo($logo_class) {
    		
    		//VARIABLES
    		global $woocommerce;
    		$options = get_option('sf_neighborhood_options');
    		$show_cart = $options['show_cart'];
    		$logo = $retina_logo = "";
    		if (isset($options['logo_upload'])) {
    		$logo = $options['logo_upload'];
    		}
    		if (isset($options['retina_logo_upload'])) {
    		$retina_logo = $options['retina_logo_upload'];
    		}
    		if ($logo == "") {
    		$logo = get_template_directory_uri() . '/images/logo.png';
    		}
    		
    		if ($retina_logo == "") {
    		$retina_logo = $logo;
    		}
    		$logo_output = "";		
    		$logo_alt = get_bloginfo( 'name' );
    		$logo_link_url = home_url();
                    $logo_link_url = str_replace('https:','http',$logo_link_url);
    		$disable_search = false;
    		if (isset($options['disable_search'])) {
    			$disable_search = $options['disable_search'];
    		}
    		
    		$logos = array('logo', 'retina_logo');
    		foreach ($logos as $this_logo) {
    			if (stripos(${$this_logo}, 'http://') === 0) {
    				${$this_logo} = substr(${$this_logo}, 5);
    			}
    		}
    		
    		// LOGO OUTPUT
    		$logo_output .= '<div id="logo" class="'.$logo_class.' clearfix">'. "\n";
    		$logo_output .= '<a href="'.$logo_link_url.'">'. "\n";
    		$logo_output .= '<img class="standard" src="'.$logo.'" alt="'.$logo_alt.'" />'. "\n";
    		$logo_output .= '<img class="retina" src="'.$retina_logo.'" alt="'.$logo_alt.'" />'. "\n";
    		$logo_output .= '</a>'. "\n";
    		$logo_output .= '<a href="#" class="hidden-desktop show-main-nav"><i class="fa-align-justify"></i></a>'. "\n";
    		if ($woocommerce && $show_cart) {
    		$logo_output .= '<a href="'.$woocommerce->cart->get_cart_url().'" class="hidden-desktop mobile-cart-link"><i class="sf-cart"></i></a>'. "\n";
    		}
    		if (!$disable_search) {
    		$logo_output .= '<a href="#" class="hidden-desktop mobile-search-link"><i class="fa-search"></i></a>'. "\n";
    		}
    		$logo_output .= '</div>'. "\n";
    		
    		
    		// LOGO RETURN		
    		return $logo_output;
    	}
    

    Thanks
    Mohammad

    #166674
    jyc109th
    Member
    Post count: 80
    This reply has been marked as private.
    #166676
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please find this line in my code:-

    $logo_link_url = str_replace('https:','http',$logo_link_url);
    
    Replace with:-
    $logo_link_url = str_replace('https:','http:',$logo_link_url);

    Thanks
    Mohammad

    #166680
    jyc109th
    Member
    Post count: 80
    This reply has been marked as private.
    #166689
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome.
    Thanks
    Mohammad

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register