Title: CSS file in plugin not rendering in browsers
Last modified: August 19, 2016

---

# CSS file in plugin not rendering in browsers

 *  [Ryan Hellyer](https://wordpress.org/support/users/ryanhellyer/)
 * (@ryanhellyer)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/stylephp-file/)
 * Hi,
    I have released a [beta version](http://pixopoint.com/forum/index.php?topic=189.0)
   of my [dropdown menu plugin](http://pixopoint.com/suckerfish-wordpress-plugin/).
 * It works fine for most of my users, but for some bizarre reason a few of them
   are having issues with the CSS file not rendering in some browsers.
 * I’ve written a post about this on Sitepoint asking for help, but no one has replied
   with an answer yet … [http://www.sitepoint.com/forums/showthread.php?t=546624](http://www.sitepoint.com/forums/showthread.php?t=546624)
 * The CSS for the plugin is accessed by the page via a style.php file. This file
   grabs the CSS from the WP database and is set to output text/css which it does–
   even in examples where it doesn’t work!
 * The file can be accessed directly via a web browser and any attempts I make to
   confirm that it is indeed serving text/css headers all confirm that it is working
   fine. However whenever I try to render it in a browser via `<link rel="stylesheet"...`
   it doesn’t render the CSS on the page at all.
 * I have a demo of the problem in action here … [http://pixopoint.com/demo/test/temp/wpdropdownpluginbug1.html](http://pixopoint.com/demo/test/temp/wpdropdownpluginbug1.html)
 * Any ideas on what is going wrong? I’m totally baffled.
 * At the moment I’m providing instructions to users on how to setup the plugin 
   manually without the style.php file, but that’s not ideal and I badly want to
   figure out what the cause is so they don’t have to deal with this annoying problem.
 * This file on my own site works fine … [style.php](http://pixopoint.com/demo/test/wordpress/wp-content/plugins/ryans-suckerfish-wordpress-dropdown-menu/style.php)
 * But this one on another site doesn’t render the CSS … [style.php](http://www.routinefly.com/testing-grounds/wp-content/plugins/ryans-suckerfish-wordpress-dropdown-menu/style.php)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Ryan Hellyer](https://wordpress.org/support/users/ryanhellyer/)
 * (@ryanhellyer)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/stylephp-file/#post-761126)
 * I forgot to add that users are claiming this is occurring after switching their
   permalinks.
 * One user reported it when using the following permalink structure … /category/
   year/month/day/blog
 * This seems completely nonsensical to me as the permalinks should have absolutely
   zero impact on how a separate script held within my plugin is operating. But 
   none the less, that is what they are reporting.

Viewing 1 replies (of 1 total)

The topic ‘CSS file in plugin not rendering in browsers’ is closed to new replies.

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [Ryan Hellyer](https://wordpress.org/support/users/ryanhellyer/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/stylephp-file/#post-761126)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
