Title: CSS URL invalid
Last modified: August 22, 2016

---

# CSS URL invalid

 *  Resolved [ditler](https://wordpress.org/support/users/ditler/)
 * (@ditler)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/css-url-invalid/)
 * Hello,
 * I have found the following problem using your plugin. Unfortunately, I could 
   not locate it, while I guess this should be easy for you:
 * In the head of my website, I have the following entry
    <link rel=”stylesheet”
   id=”amr-ical-events-list-css” href=”[https://www.mysite.de/wordpress/wp-content/plugins/amr-ical-events-list/css/https://www.mysite.de/wordpress/wp-content/uploads/css/custom_icallist.css?ver=1&#8243](https://www.mysite.de/wordpress/wp-content/plugins/amr-ical-events-list/css/https://www.mysite.de/wordpress/wp-content/uploads/css/custom_icallist.css?ver=1&#8243);
   type=”text/css” media=”all”>
 * Thus, both options (default vs custom css) are echoed one after the other, yielding
   an invalid URL.
 * Thank you!
 * [https://wordpress.org/plugins/amr-ical-events-list/](https://wordpress.org/plugins/amr-ical-events-list/)

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

 *  Plugin Author [anmari](https://wordpress.org/support/users/anmari/)
 * (@anmari)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/css-url-invalid/#post-5404963)
 * Hi Ditler,
 * I cannot recreate the problem locally or on [http://test.icalevents.com](http://test.icalevents.com).
 * Locally I have tried with default css,and custom css. I have also ticked to not
   include the plugin css and all is working as expected.
 * [http://icalevents.com/3591-custom-css-for-event-lists/](http://icalevents.com/3591-custom-css-for-event-lists/)
 * Perhaps something is interfering on your site ? As a quick fix, if you theme 
   css is adequate, you could simply tick the box to not have the css used.
 * If you want to find out what is happening on your site, try usual debugging steps:
   [http://webdesign.anmari.com/2932/debugging-a-possible-clash-between-plugins-andor-a-theme/](http://webdesign.anmari.com/2932/debugging-a-possible-clash-between-plugins-andor-a-theme/)
 * Do let me know if you figure it out.
 *  Thread Starter [ditler](https://wordpress.org/support/users/ditler/)
 * (@ditler)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/css-url-invalid/#post-5405030)
 * I have the problem since I have SSL.
 * Fixed it it: _amr-ical-events-list-main.php_, line 349
    from else $icalstyleurl
   = ICALLISTPLUGINURL.’css/’.$amr_options[‘cssfile’]; to else $icalstyleurl = ICALLISTPLUGINURL.
   stristr($amr_options[‘cssfile’],’css/’);
 * That did it, though I guess this is not a real fix.
 * Best
    Andy
 *  Plugin Author [anmari](https://wordpress.org/support/users/anmari/)
 * (@anmari)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/css-url-invalid/#post-5405110)
 * hi Ditler,
 * better would be to specifically allow for https, not just http in the lines above.
   This will be in the next update:
 *     ```
       if (stristr($amr_options['cssfile'],'http://')
       					or stristr($amr_options['cssfile'],'https://'))
       ```
   
 *  [jules.cr](https://wordpress.org/support/users/julescr/)
 * (@julescr)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/css-url-invalid/#post-5405115)
 * Hi Anmari,
 * Could you (also) make it work for absolute URLs please (if that is of any interests)?
 * In fact I ran into the same issue, sort of. I recently forced an area of my site
   in https. On the page displaying ical event the style was borked because of CSS
   refered to via http.
    my “workaround” was to: – define( ‘WP_PLUGIN_URL’, ‘/wp-
   content/plugins’ ); – (select the plugins’ default css – not the one in uploads)–
   change amr-ical-events-list-main.php, following line (350ish) as follow:
 *     ```
       if (stristr($amr_options['cssfile'],'http://') || $amr_options['cssfile'][0] == '/')
       ```
   
 * BTW, many thanks for your great plugin.
    I only use a very small portion of it,
   only to display a cal from a davical public/ticket link (‘would have so loved
   a more “accomplished” caldav client but that’s another story) and it works perfectly
   fine. So many, many thanks again.
 *  Thread Starter [ditler](https://wordpress.org/support/users/ditler/)
 * (@ditler)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/css-url-invalid/#post-5405128)
 * Thanks for the fix!

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

The topic ‘CSS URL invalid’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/amr-ical-events-list_f5f4f4.svg)
 * [amr ical events lists](https://wordpress.org/plugins/amr-ical-events-list/)
 * [Support Threads](https://wordpress.org/support/plugin/amr-ical-events-list/)
 * [Active Topics](https://wordpress.org/support/plugin/amr-ical-events-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amr-ical-events-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amr-ical-events-list/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [ditler](https://wordpress.org/support/users/ditler/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/css-url-invalid/#post-5405128)
 * Status: resolved