Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › I got SSL issue with header logo
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › I got SSL issue with header logo
- This topic has 7 replies, 2 voices, and was last updated 9 years by Mohammad – SUPPORT.
-
Posted in: Neighborhood
-
April 19, 2015 at 2:20 am #166242
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.April 20, 2015 at 4:19 am #166292Hi,
Please install wordpress HTTPS plugin. Hope that should help to you.
Thanks
MohammadApril 20, 2015 at 6:36 am #166320This reply has been marked as private.April 20, 2015 at 8:55 am #166361Hi,
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
MohammadApril 21, 2015 at 6:00 am #166674This reply has been marked as private.April 21, 2015 at 6:08 am #166676Hi,
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
MohammadApril 21, 2015 at 6:15 am #166680This reply has been marked as private.April 21, 2015 at 6:32 am #166689Hi,
You most welcome.
Thanks
Mohammad -
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.