-
Change the site URL to be HTTPS based instead of HTTP. In other words go fully HTTPS on your site. If you need mixed content solution for serving your HTML both as HTTP and HTTPS you will need some dynamic detection and manipulation of URLs in the contents or serve as protocol neutral url.
-
very bad idea. The best you can get is protocol neutral Urls.
You can try something like
add_filter('the_content','wpse_211864',1000,1);
// remove 'http:' part from any mention of the site url
function wpse_211864($content) {
return str_replace(siteurl(),str_replace('http:','',siteurl()),$content);
}
Related Posts:
- SSL: How to make customizer images Protocol Relative in WordPress?
- Facebook og:image issues after https change [closed]
- How do I disable responsive images in WP 4.4?
- Mixed content warnings after changing site adress from HTTP to HTTPS
- Remove the http protocol from images
- Broken urls with http site and https wp-admin
- After installing ssl certificate images won’t show
- Images stopped loadding after adding SSl
- How to make my site use HTTPS for images or how to insert images as relative paths?
- Protocol relative url not pulling up images on IE, FF, and OPERA
- Simple Java HTTPS server
- show hide image script after 4 seconds [closed]
- Set default image sizes in WordPress to hard crop
- After Moving a Site to Another Domain, All Images Are Lost
- How to find attachment by it’s name?
- Change html structure of all img tags in WordPress
- Change the output for [gallery] shortcode
- Downsizing Many Large Images Attached to Posts, in Bulk?
- Apply image width to tag
- Serve HTTPS requests from subdomain
- Add New Sub Site from the WordPress back end then in sub site options table option_value must be with https
- Disabling auto-resizing of uploaded images
- How do I delete thousands of unattached images?
- Wrong domain in uploads folder
- How can i alter the amount of different images sizes being stored?
- How to force WordPress to add new images at the beginning of the gallery?
- Why would image paths in wordpress suddenly change?
- Re-process Images
- Locked out of WordPress Site Admin after enabling Force SSL on WordPress Https (SSL)
- How to install Imagick or resolve issue
- Passing srcset to image attachment method
- Why is wordpress searching for @2x images?
- How to properly force https and www on multisite with Apache HTAccess
- Responsive Images Resizing Images
- Image File Names
- Images in upload folder with hexadecimal names
- JavaScript and images files are not recognized
- How to extract image width from add_image_size?
- Link to full size image or attachment page in photo theme
- How can I make all post image uploads have data-width and data-height attributes automatically by default?
- How to remove Geo Tagging on image uploads, but not other EXIF data?
- How to output images as figure/figcaption
- Make Images appear in the same order as in media browser using get children?
- wordpress get gallery images title
- How to wrap normal image tag with figure HTML5 element
- Update old Post image metadata to ‘thumbnail’ wp_attached_file
- How to find images in lazyload to set alt attribute?
- having issue while uploading An error occured in the upload. Please try again later
- How to change image atributes right before an image to be saved?
- Control Responsive Images
- How to add an image to the post preview in the free theme “food recipes”
- I am getting useless alphabets in images link
- How to replace images?
- The alt=”” attribute is empty
- Add custom text in the media library image meta area
- how to move from content and place them elsewhere on a page template?
- Where is the right place to store custom images?
- Image editor is not loading
- Images give 404 after changing default domain
- Load Gallery Images with Title on Homepage BX Slider
- Resize images in batch
- How can I check if the first block is an image aligned left or right?
- How would you add sequentially numbered labels to images in posts?
- Advice on image heavy site, compression and slow page loads
- Blurry images when using add_image_size with crop
- Auto delete pictures in media library by age
- Can wp_get_image_editor convert to icon?
- How to get image URL from media_sideload_image?
- Can’t get text to wrap around image
- Allow SVG in WP step by step
- Serve different images per screen size and cache possible?
- Product Images Low Quality After Updating From WP 3.5 to 4 [closed]
- Auto-crop width, not height
- Convert featured images into “product images”
- Having an issue in compressing Images in wordpress site
- Word press cutting sliding images – not displaying the entire image
- How to re-arrange images in default WP Gallery more than one image at once?
- Image links broken / “DNS Update Required” message
- Convert multiple image blocks to gallery block in Gutenberg?
- WordPress After migration some images src is empty
- Image sizes reset when changing theme
- How to get featured image of last post in a category?
- How can I add “alt” tag to element?
- After moving a site to new hosting, not all images are showing in media library
- How to inject alt and title attributes for every image in each post into HTML?
- Custom Background for each page and post
- How can the alt be added to this wooCommerce category image?
- Displaying “alt” attribute text as captions?
- How to make Facebook share the featuterd image from url on WordPress
- Delete images of a particular size
- Images not rendering
- Add category description to list of category with taxonomy image
- Images in sub-pages fail to load
- How do add custom class and id to the that is generated from media gallery insert image into post [duplicate]
- How do I get the URL of only the first picture in a WordPress post?
- The plain HTTP request was sent to HTTPS port in wordpress [closed]
- Images getting corrupt automatically
- Thumbnail size keeps resetting automatically
- I am having trouble displaying an image at the top of a widget area [closed]
- Can’t upload svg files in WordPress