WordPress.org

Forums

Contact Form 7
SSL cert breaking (2 posts)

  1. gotdistracted
    Member
    Posted 1 year ago #

    Hi,

    I recently deployed the HTTPS protocol across my site. I notice that on pages where CF7 is working the SSL is breaking due to http://mydomain.co.uk/wp-content/plugins/contact-form-7/images/ajax-loader.gif - the .gif is loading via HTTP. I looked at the function for this and note the use of is_ssl that should render the .gif over HTTPS, but this doesn't appear to be working?

    Thoughts please?

    Thanks

    https://wordpress.org/plugins/contact-form-7/

  2. dannyvince
    Member
    Posted 8 months ago #

    I got around this exact same issue by taking the ajax-loader.gif from the CF& plugin folder uploading it into media directory then adding a custom function via this plugin https://wordpress.org/plugins/functionality/ (or indeed you could add it directly into to your functions.php or child functions.php) depending on your template setup. Change the URL path to your own and et voilĂ !

    /* Custom ajax loader for CF7 so SSL cert doesn't break */
    add_filter('wpcf7_ajax_loader', 'my_wpcf7_ajax_loader');
    function my_wpcf7_ajax_loader () {
    	return ('http://www.YOURSITE.com/wp-content/uploads/YEAR/MONTH/ajax-loader.gif')';
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags