Title: Browsing over https breaks recipe theme
Last modified: August 21, 2016

---

# Browsing over https breaks recipe theme

 *  [Spencer Piontkowski](https://wordpress.org/support/users/piontkowski/)
 * (@piontkowski)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/browsing-over-https-breaks-recipe-theme/)
 * Hello.
 * On the blogs I administer I use `define('FORCE_SSL_ADMIN',TRUE);` in `wp-config.
   php` which breaks the admin menu. Chrome, Firefox, and IE9 complain about insecure
   content and block the whole recipe admin screen, which has to be manually allowed
   each time. Also, when I browse the post page with a recipe over https, the recipe
   theme is broken.
 * I replaced the following line in yumprint-recipe.php
 * `$yumprint_directory = get_option('siteurl') . '/wp-content/plugins/' . dirname(
   plugin_basename(__FILE__));` with this
 * `$yumprint_directory = rtrim( plugin_dir_url( __FILE__ ), "/" );`
 * which grabs the relative protocol (http or https depending on the user’s session)
   and fixes the admin screen and post content. Chrome, Firefox, and IE still complain
   about blocking insecure content but the themes display properly.
 * [http://wordpress.org/plugins/recipe-card/](http://wordpress.org/plugins/recipe-card/)

The topic ‘Browsing over https breaks recipe theme’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/recipe-card_cfc7c6.svg)
 * [Recipe Card](https://wordpress.org/plugins/recipe-card/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/recipe-card/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/recipe-card/)
 * [Active Topics](https://wordpress.org/support/plugin/recipe-card/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/recipe-card/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/recipe-card/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Spencer Piontkowski](https://wordpress.org/support/users/piontkowski/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/browsing-over-https-breaks-recipe-theme/)
 * Status: not resolved