New Landing How can we help? Themeforest Theme Support Dante load logo over HTTPS

Viewing 15 posts - 1 through 15 (of 16 total)
  • Posted in: Dante
  • #81513
    bengiordano
    Member
    Post count: 12

    I have SSL installed for woocommerce and the only thing i cant get to load over HTTPS is the logo: http://grab.by/xCYu.

    Tried looking it up in db and replacing string, but no luck. Any ideas?

    #81532
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please put this code at functions.php end of file just before ?> of child theme or parent theme:

    function sf_logo($logo_class) {
    			
    			//VARIABLES
    			global $woocommerce;
    			$options = get_option('sf_dante_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 ($retina_logo == "") {
    			$retina_logo = $logo;
    			}
    			$logo_output = "";		
    			$logo_alt = get_bloginfo( 'name' );
    			$logo_link_url = home_url();
    			
    			$logo = str_replace('http','https',$logo);
                            $retina_logo = str_replace('http','https',$retina_logo);
    
    			// LOGO OUTPUT
    			$logo_output .= '<div id="logo" class="'.$logo_class.' clearfix">'. "\n";
    			$logo_output .= '<a href="'.$logo_link_url.'">'. "\n";
    			if ($logo != "") { 
    			$logo_output .= '<img class="standard" src="'.$logo.'" alt="'.$logo_alt.'" />'. "\n";
    			} else {
    			$logo_output .= '<h1 class="standard">'.$logo_alt.'</h1>'. "\n";
    			}
    			if ($retina_logo != "") {
    			$logo_output .= '<img class="retina" src="'.$retina_logo.'" alt="'.$logo_alt.'" />'. "\n";
    			} else {
    			$logo_output .= '<h1 class="retina">'.$logo_alt.'</h1>'. "\n";
    			}
    			$logo_output .= '</a>'. "\n";
    			$logo_output .= '<a href="#" class="visible-sm visible-xs mobile-menu-show"><i class="ss-rows"></i></a>'. "\n";
    			if ($show_cart && $woocommerce != "") {
    			$logo_output .= '<a href="'.$woocommerce->cart->get_cart_url().'" class="visible-sm visible-xs mobile-cart-link"><i class="ss-cart"></i></a>'. "\n";
    			}
    			$logo_output .= '</div>'. "\n";
    			
    			
    			// LOGO RETURN		
    			return $logo_output;
    		}

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #81553
    bengiordano
    Member
    Post count: 12

    Hey Mohammad,

    Thanks so much — added, but still getting this error in consol: http://grab.by/xDd8

    Thanks!

    #81566
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me specific page URL always.
    Thanks

    #81567
    bengiordano
    Member
    Post count: 12
    #81588
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Its loading perfect here. Please check with another device. Can you please attach screenshot of account page.

    Thanks

    #85332
    jbcobbs
    Member
    Post count: 2

    I am having the same issue. I tried adding your code as well and it still shows as https – https://torchx.com/checkout/

    #85335
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @jbcobbs,

    Please install this plugin, http://wordpress.org/plugins/wordpress-https/ and then re-upload and select the logo in the theme options panel – that will sort it.

    – Ed

    #86900
    midnite
    Member
    Post count: 52

    I have the same problem, the logo doesn’t show up with https. That plugin you’re suggesting ends up removing just about every image on the https pages, makes it worse! If you’re going to suggest that plugin can you at least tell us what settings to use? Or how to fix the logo issue without that plugin? I tried re-upping the logo like you suggested and it didn’t work. Thanks.

    #86996
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please just tell me theme version so i can suggest quick solution.
    Thanks

    #86999
    bengiordano
    Member
    Post count: 12

    I installed the plugin and it loaded the logo over HTTPS — the problem was that it then broke the shopping cart and login abilities for our customers. This is not a good solution.

    #87002
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me website url and wordpress admin login detail so i can check and resolve the issue easily.

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #87003
    bengiordano
    Member
    Post count: 12

    Mohammad,

    Cannot supply that as it is an active client site. If you can walk me through the steps I can update on my end.

    Thanks,

    Ben

    #87005
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @bengiordano,

    What broke withe cart/login? This is the standard WordPress plugin that is used when you want to enable HTTPS in WordPress.

    You may also want to check this – http://docs.woothemes.com/document/ssl-and-https/

    Nothing in the theme would cause the cart/login to break with HTTPS.

    – Ed

    #87007
    bengiordano
    Member
    Post count: 12

    Ed,

    I’m not sure — could have been a conflicting plugin or something I suppose. All I know is that the cart was working, then I installed the plugin and it stopped working. We’re using Stripe Gateway plugin and we’re on WP Engine. As soon as I did a site revert to before plugin was installed, cart worked fine again.

Viewing 15 posts - 1 through 15 (of 16 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