Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › load logo over HTTPS
New Landing › How can we help? › Themeforest Theme Support › Dante › load logo over HTTPS
- This topic has 15 replies, 5 voices, and was last updated 10 years by Swift Ideas – Ed.
-
Posted in: Dante
-
June 10, 2014 at 1:42 pm #81513
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?
June 10, 2014 at 2:43 pm #81532Hi,
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 IdeasJune 10, 2014 at 3:13 pm #81553Hey Mohammad,
Thanks so much — added, but still getting this error in consol: http://grab.by/xDd8
Thanks!
June 10, 2014 at 3:42 pm #81566Hi,
Please provide me specific page URL always.
ThanksJune 10, 2014 at 3:44 pm #81567June 10, 2014 at 5:00 pm #81588Hi,
Its loading perfect here. Please check with another device. Can you please attach screenshot of account page.Thanks
June 24, 2014 at 5:23 pm #85332I am having the same issue. I tried adding your code as well and it still shows as https – https://torchx.com/checkout/
June 24, 2014 at 5:33 pm #85335Hi @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
June 30, 2014 at 6:45 am #86900I 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.
June 30, 2014 at 12:38 pm #86996Hi,
Please just tell me theme version so i can suggest quick solution.
ThanksJune 30, 2014 at 12:55 pm #86999I 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.
June 30, 2014 at 1:16 pm #87002Hi,
Please provide me website url and wordpress admin login detail so i can check and resolve the issue easily.Thanks ๐
With Best Regards
Swift IdeasJune 30, 2014 at 1:24 pm #87003Mohammad,
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
June 30, 2014 at 1:28 pm #87005Hi @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
June 30, 2014 at 1:30 pm #87007Ed,
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.
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.