Title: Stylesheet Error
Last modified: August 21, 2016

---

# Stylesheet Error

 *  Resolved [jepcmart](https://wordpress.org/support/users/jepcmart/)
 * (@jepcmart)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/stylesheet-error-1/)
 * On 2.8.7. I force SSL for admin. When I generate the sitemap file, the sitemap.
   xml refers to **https:**//www.example.com/wp-content/plugins/google-sitemap-plugin/
   sitemap.xsl. Then the sitemap.xml does not load correctly in the browser.
 * Right now the codes does the following:
 * $xml_stylesheet_path = plugins_url() . “/google-sitemap-plugin/sitemap.xsl”;
 * Can you provide an option to set the url prefix (http or https) for the stylesheet
   url? That way it will produce **http:**//www.example.com/wp-content/plugins/google-
   sitemap-plugin/sitemap.xsl

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

 *  [TheHandOfCod](https://wordpress.org/support/users/chrisodell/)
 * (@chrisodell)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/stylesheet-error-1/#post-4580918)
 * From a bit of snooping around on the internet it looks as though any URL sensitive
   function (in this case plugins_url() ) will try to use HTTPS if you have used
   force SSL for admin.
 * One solution which is posted [here](http://wordpress.org/support/topic/https-ssl-wp_content_url?replies=23)
   is to use [this](http://wordpress.org/plugins/wordpress-https/faq/) plugin.
 * I have not used it myself but it does appear to be quite popular so it could 
   be worth giving a try.
 *  Thread Starter [jepcmart](https://wordpress.org/support/users/jepcmart/)
 * (@jepcmart)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/stylesheet-error-1/#post-4580919)
 * I’m using wpengine and that plugin is disallowed. Is there a hook I can use in
   your plugin or the ability to override your function?
 *  [TheHandOfCod](https://wordpress.org/support/users/chrisodell/)
 * (@chrisodell)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/stylesheet-error-1/#post-4580923)
 * Ahh it’s not my plugin, all I can suggest is leave a support ticket on the plugin
   page.
 * Just to be clear I have no control over the plugins_url() function as I am simply
   a volunteer like the majority of people on wordpress.org.
 * If you have some coding skills then you could use the [hook](http://codex.wordpress.org/Function_Reference/plugins_url)
   stated at the bottom of this page.
 * If you are not familiar with the WordPress systems of hooks and filters I suggest
   you look at the [hooks and filter api](http://codex.wordpress.org/Plugin_API/Hooks)
 * You could use one of these hooks in the themes functions.php if you are allowed
   to modify it.
 * Other than that I am not sure what to suggest.
 *  Plugin Author [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * (@bestwebsoft)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/stylesheet-error-1/#post-4581118)
 * Hi,
 * Currently we are working on fixing this problem. We will let you know as soon
   as we find a solution.
 * Sincerely,
    BestWebSoft Support Team

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

The topic ‘Stylesheet Error’ is closed to new replies.

 * ![](https://ps.w.org/google-sitemap-plugin/assets/icon-256x256.gif?rev=2582517)
 * [Sitemap by BestWebSoft - WordPress XML Site Map Page Generator Plugin](https://wordpress.org/plugins/google-sitemap-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-sitemap-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-sitemap-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/google-sitemap-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-sitemap-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-sitemap-plugin/reviews/)

## Tags

 * [xls](https://wordpress.org/support/topic-tag/xls/)

 * 4 replies
 * 3 participants
 * Last reply from: [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/stylesheet-error-1/#post-4581118)
 * Status: resolved