Tagged: SSL
-
AuthorPosts
-
February 24, 2015 at 7:14 am #401191
How to get around SSL error of insecure png logo img as attached below.
It is the only item keeping a successful green lock from appearing:
https://www.whynopadlock.com/February 24, 2015 at 5:34 pm #401544Hi aribann!
Please add following code to Functions.php file in Appearance > Editor
add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if(is_page(3498) ) { $logo = "https://yourdomain.com/your-logo.png"; } return $logo; }Best regards,
Yigit-
This reply was modified 10 years, 8 months ago by
Yigit.
February 24, 2015 at 9:38 pm #401715Yigit
Thank You for that
Would you kindly edit your response to something like:
$logo = “https://xyz.com/wp-content/uploads/2014/12/xyz.png”;
:)
February 25, 2015 at 3:32 pm #402089Hey!
You are welcome. I removed your link from the code i posted :) Let us know if you have any other questions or issues
Cheers!
YigitAugust 15, 2015 at 5:35 pm #488253Very useful, can it be used on more than one page?
What would the code be to call the secure version of the transparent version of the logo as well?Cheers,
A
August 17, 2015 at 4:19 am #488508Hey!
Yes, it’s possible to use it on more than one page. Follow the pattern of the is_page function here: https://codex.wordpress.org/Function_Reference/is_page
Cheers!
IsmaelAugust 17, 2015 at 3:41 pm #488961Thanks Ismael, that worked a treat. Because I am also using the transparent version of the logo in the header, I need to be able to call that on an ssl connection for the page to fully validate.
How would I add the transparent version of the logo?
Cheers!
A
August 18, 2015 at 5:20 am #489257Hi!
Use this in the functions.php file:
add_filter('avf_logo_subtext', 'kriesi_logo_addition'); function kriesi_logo_addition($sub) { $sub = '<img src="https://yoursite.com/wp-content/uploads/2015/03/sublogo.jpg" class="alternate" alt="" style="max-height: 88px;">'; return $sub; }Adjust the image url.
Regards,
Ismael -
This reply was modified 10 years, 8 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
