Insecure Sidebar Search Widget Image


Moderator
Steve Stern

(@sterndata)

Support Team Volunteer

How is search put on the sidebar? If a widget, which one?

Hey Steve,

It is a default WordPress Search Widget.

I have clicked on “Search” under the Available Widgets, and after click on “Add Widget” to Main Sidebar.

Moderator
Steve Stern

(@sterndata)

Support Team Volunteer

Under settings->general, do you have https as the protocol for your site? If so, readding the widget should get the right URL for the image.

Hey Steve,

Yes, It has HTTPS:// only, I am unable to find the solution why it has been started suddenly. As I have said after I remove the Search Widget from sidebar and it resolve the issue.

Moderator
Steve Stern

(@sterndata)

Support Team Volunteer

And what happens when you replace it?

Moderator
Steve Stern

(@sterndata)

Support Team Volunteer

I currently see

(index):1 Mixed Content: The page at 'https://wwwxxxxx.com/blog/' was loaded over HTTPS, but requested an insecure image 'http://www.ccccc.com/images/input-search.png'. This content should also be served over HTTPS.

in the error console. WordPress does not use an /images/ top level directory. Have you changed the default media directory?

  • This reply was modified 9 hours, 38 minutes ago by Steve Stern.

Moderator
Steve Stern

(@sterndata)

Support Team Volunteer

I edited the topic as discussed.

Anyhow, the issue is that that your image is coming from someplace other than expected. Are you sure you’re using the default search widget?

Is this a multisite?

It’s the little magnifier image for your search widget…

https://www.hostnamaste.com/images/input-search.png

The directory itself that the image resides in is capable of serving the image via https so why don’t you just edit the widget code for the search widget to add an ‘s’ to the ‘http’ and that will fix your problem.

Hey Steve,

Yes, It is a default Search Widget only and no it is not a multisite.

Hey @jnashhawkins,

Yes, It could resolve the issue I think, but I could not find the code of the default search widget, I have checked “searchform.php”, “class-wp-widget-search.php”, “functions.php” and other files but could not find, can you direct me with the right file to edit the default image URL?

Also, can you please remove my domain name from your last response and use the demo domain name?



Source link