Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #280487

    You closed my thread at https://kriesi.at/support/topic/enfold-https-issue/ without providing a fix.

    Your hack makes all references https. I only use https for the admin console, but given the incorrect url prefix in your hard coded css link, the site doesn’t work while i’m logged in.

    Why can’t you fix this properly? It’s one CSS reference.

    Cheers,
    Jason

    #280931

    Hi Jason!

    There isn’t really a downside to using https everywhere if you are using https at all. As Peter mentioned in that topic the best we can do is put it in as a theme change.

    Whether using a child theme or not its a function that can be added to your functions.php file. That isn’t a hack, its a solution and one that is the community standard in WordPress.

    Best regards,
    Devin

    #281006

    I’m not using https for my public site as it requires a lot more CPU.

    I seem to struggle to get fit for purpose resolutions to problems on these forums. Not one other plugin or theme I’ve seen has a hard coded URL prefix for resources.

    You can dynamically work out whether the current session is http or https at run time, and should be doing this in your theme code that references this css file. Not one other css file on the site has this issue.

    It would be great to see a proper fix, there are many unresolved threads on this topic in your forums.

    Cheers,
    Jason

    #281022

    Hi Jason,

    Open functions.php and look for line 308:

    $avia_upload_dir = wp_upload_dir();
    

    Add this below it:

    if(is_ssl()) $avia_upload_dir['baseurl'] = str_replace("http://", "https://", $avia_upload_dir['baseurl']);
    

    Peter already proposed this fix so it will get included in the next update.

    Regards,
    Josue

    #281119

    Gold, the answer I was looking for. Thanks a bunch, just a pity it took two threads and 3 posts to get to this resolution.

    You can close the thread.

    #281140

    Hi!

    Yes, unfortunately sometimes threads get closed without any reason. Please excuse the oversight.

    Cheers!
    Peter

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Enfold HTTPS issue DO NOT CLOSE WITHOUT FIXING.’ is closed to new replies.