Problem: Added a certificate to a WordPress site, the footer logo was no longer displayed.

Is there an srcset in the img tag of the logo and it leads to http how can I change it?

Most of the images on the site used mixedcontent, but this logo does not.

Mistake:

Mixed Content: The page at ' https: // site / ' was loaded over HTTPS, but requested an insecure image ' http: //site/wp-content/uploads/2017/08/logotype.png '. This request has been blocked; served content over https.

Question: how to change http in srcset to https?

Ps. http to https in the settings WP changed.

  • Correct manually in the template, not? - Total Pusher
  • logo getting -get_theme_mod ('logo_img', false); Logo output - echo esc_url ($ adrenaline_logo); What hands to fix? - Alexander Zharkov
  • Without a code I will not say. lay out the topic. - Total Pusher
  • When translating a site from http to https, all links inside the database should be changed using special tools. Read my question and answer on this topic: ru.stackoverflow.com/q/767561/220220 - KAGG Design
  • "http to https in the settings WP changed." - this is completely inadequate. - KAGG Design

1 answer 1

how to change http in srcset to https?

The plugin https://wordpress.org/plugins/better-search-replace/ or the like to change the protocol of your domain. And only yours !.

In general, it was necessary to use migration plugins. For example https://wordpress.org/plugins/duplicator/ See sub-details https://ru.stackoverflow.com/a/767562/233741