HTTPS Support

Home Forums Jevelin Theme HTTPS Support

Home Forums Jevelin Theme HTTPS Support

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • King
    Participant

    Mixed Content: The page at ‘xxx’ was loaded over HTTPS, but requested an insecure stylesheet ‘xxx/wp-content/uploads/jevelin-dynamic-styles.css’. This request has been blocked; the content must be served over HTTPS.

     

    How do I fix this?

    Hi King,

     

    I hope you are well today and thank you for your question.

     

    To fix it please try adding below code in the functions.php file of Jevelin child theme and make sure the Jevelin child theme is activated.

     

    function fix_ssl_upload_url( $url ) {
    
    	if ( is_ssl() )
    		$url = str_replace( 'http://', 'https://', $url );
    	return $url;
    
    }
    add_filter( 'upload_dir', 'fix_ssl_upload_url' );

     

    Best regards,
    Shufflehound team

Viewing 2 posts - 1 through 2 (of 2 total)