Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #279983

    Hi,

    I’m using v2.8.1 on WP3.9.1. When I view my site via https, enfold still links to an http style sheet:

    <link rel='stylesheet' id='avia-dynamic-css'  href='http://www.tiperformance.com.au/wp-content/uploads/dynamic_avia/enfold.css?ver=1' type='text/css' media='all' />
    

    This should be repeatable on any site you have set up via https.

    I have seen other threads on this closed without real explanation. A fix for this problem would be nice.

    Cheers,
    Jason

    • This topic was modified 10 years, 6 months ago by Jason.
    #279993

    Hey Jason!

    Try to insert this code into the child theme functions.php file:

    
    add_filter('upload_dir', function($uploads) {
        $uploads['url'] = preg_replace('#^http://#i', 'https://', $uploads['url']);
        $uploads['baseurl'] = preg_replace('#^http://#i', 'https://', $uploads['baseurl']);
    
        return $uploads;
    });
    

    I’ll ask Kriesi to include a is_ssl check with the next update.

    Best regards,
    Peter

    #280001

    Is there a chance you could fix this in the theme so a hack isn’t required? There have been a few threads on this topic.

    I don’t have a child theme, but could put it in my functionality plugin if I had to – but I shouldn’t really have to!

    Cheers,
    Jason

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Enfold https issue’ is closed to new replies.