Title: Another SSL Breaks Theme Problem
Last modified: February 12, 2017

---

# Another SSL Breaks Theme Problem

 *  [foreverlearning](https://wordpress.org/support/users/foreverlearning/)
 * (@foreverlearning)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/another-ssl-breaks-theme-problem/)
 * I’ve done 4 ssl installs over the last 10 days. The first three went off like
   clockwork but the 4th. is giving me headaches. All 4 are themes built on Genesis
   with the first three done by stuido press and the last (the one with the issue)
   by a 3rd party developer. The problem is that when calling [https://leyla-najma.com](https://leyla-najma.com)
   css isn’t loaded and I get a white page with content spread out all over the 
   place. As well I can’t login if I change the through WP Settings site url’s to
   https. It causes the “too many redirects” error. Anyway, I know that it’s the
   theme because when I switched to a WordPress default theme all works fine and
   the page loads. I’ve read through most of the threads here about this issue and
   have tried so far to add define(‘FORCE_SSL_ADMIN’, true); to the end of the functions.
   php file, but to no avail. Theme development and PHP is above my pay grade so
   I’m shooting in the dark. Still waiting for the theme developer to get back to
   me but so far he’s not replied and I really need to get this fixed ASAP. I have
   scoured the functions.php looking for http calls and the only ones I find are
   the ones required by Genesis calling out using the define for the child theme
   url.
    So if anyone can comment on this and maybe give me some help investigating
   this issue, it would be much appreciated. Thanks in Advance,
 * Dan

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [j09](https://wordpress.org/support/users/j09/)
 * (@j09)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/another-ssl-breaks-theme-problem/#post-8797513)
 * [@foreverlearning](https://wordpress.org/support/users/foreverlearning/)
 * Your problem is **mixed content**. Your `CSS` files are not loaded because they
   are linked using `http` whereas the domain is connected via `https`.
 * **This is flagged by browsers** and they **block any insecure** – `http` – **
   connections**.
 * Try and see if using [Really Simple SSL](https://wordpress.org/plugins/really-simple-ssl/)
   fixes the issue.
 * Let me know if you need more help.
 *  Thread Starter [foreverlearning](https://wordpress.org/support/users/foreverlearning/)
 * (@foreverlearning)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/another-ssl-breaks-theme-problem/#post-8797982)
 * Thanks for the reply. I did install simple ssl yesterday and it worked up to 
   a point. After I installed it, I attempted to change the urls’ in wp settings
   but that still causes a redirect issue at wp-login. As well with simple ssl installed
   I can’t get to wp-login without getting a “Sorry, you are not allowed to access
   this page.” error. I’m hoping the pro version of the plug in will resolve all
   issues once and for all. I’ve reached out to them and waiting for them to reply.
 *  Thread Starter [foreverlearning](https://wordpress.org/support/users/foreverlearning/)
 * (@foreverlearning)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/another-ssl-breaks-theme-problem/#post-8800631)
 * Think I found the offending line of code in the functions.php file,
    $_SERVER[‘
   HTTPS’] = false; I changed to true and testing out good so far.
 *  Thread Starter [foreverlearning](https://wordpress.org/support/users/foreverlearning/)
 * (@foreverlearning)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/another-ssl-breaks-theme-problem/#post-8805672)
 * Actually removed this line of code completely. Oddly the theme developers only
   response to my forum thread that was he didn’t know anything about SSL, even 
   though I pointed out to him the unnecessary line of code in his functions.php
   file that was causing the issue. I guess making sure the theme is SSL friendly
   is another question to ask any theme developer before buying their theme. Anyway
   case closed.
    Thanks for the help. Much appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Another SSL Breaks Theme Problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [foreverlearning](https://wordpress.org/support/users/foreverlearning/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/another-ssl-breaks-theme-problem/#post-8805672)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
