Title: [Plugin: Posts per Cat] Problems with activating CSS
Last modified: August 20, 2016

---

# [Plugin: Posts per Cat] Problems with activating CSS

 *  [misterdims](https://wordpress.org/support/users/misterdims/)
 * (@misterdims)
 * [15 years ago](https://wordpress.org/support/topic/plugin-posts-per-cat-problems-with-activating-css/)
 * Hi Aleksandar,
 * Your plugin is great !!
 * I can’t activate the css (in WP plugins/Editor) when i select your plugin, the
   files .ccs are “not activated”).
    When i edit the source code of my page, i find
   this
 * `<link rel="stylesheet" href="wp-content/plugins/posts-per-cat/ppc.css" type="
   text/css" media="screen" /><link rel="stylesheet" href="wp-content/plugins/posts-
   per-cat/ppc-list.css" type="text/css" media="screen" />`
    When i click on “wp-
   content/plugins/posts-per-cat/ppc.css”, i have a file not found message ! I verified
   that all files are in directory “wp-content/plugins/posts-per-cat”
 * See [here](http://www.misterdi.fr/fr/galeries-photos)
    Sorry for my poor english…
 * Congratulations for your job !

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

 *  Thread Starter [misterdims](https://wordpress.org/support/users/misterdims/)
 * (@misterdims)
 * [15 years ago](https://wordpress.org/support/topic/plugin-posts-per-cat-problems-with-activating-css/#post-2094935)
 * I found in wp-postspercat.php in the firsts lines
 * `define( 'POSTS_PER_CAT_DIR', PLUGINDIR . '/' . dirname(plugin_basename(__FILE__)));`
 * i just it changed to
 * `define( 'POSTS_PER_CAT_DIR', '/' . PLUGINDIR . '/' . dirname(plugin_basename(
   __FILE__)) );`
 * And now, it’s ok and i can say again “What a wonderful job you did”
 * Thank you !!!!
 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-problems-with-activating-css/#post-2095053)
 * Sorry for too late reply, no time to check WP forums this days.
 * This CSS PATH issue in version 0.0.14 is related to blogs placed in subdomains,
   I think. Workaround is to replace line 60 in **wp-postspercat.php** file (that
   looks like):
 * `echo '<link rel="stylesheet" href="'.POSTS_PER_CAT_DIR.'/ppc.css" type="text/
   css" media="screen" />';`
 * with
 * `echo '<link rel="stylesheet" href="'.POSTS_PER_CAT_URL.'ppc.css" type="text/
   css" media="screen" />';`
 * and also line 64
 * `echo '<link rel="stylesheet" href="'.POSTS_PER_CAT_DIR.'/ppc-list.css" type="
   text/css" media="screen" />';`
 * with
 * `echo '<link rel="stylesheet" href="'.POSTS_PER_CAT_URL.'ppc-list.css" type="
   text/css" media="screen" />';`
 * In next release this will be fixed.

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

The topic ‘[Plugin: Posts per Cat] Problems with activating CSS’ is closed to new
replies.

 * ![](https://ps.w.org/posts-per-cat/assets/icon.svg?rev=989433)
 * [Posts per Cat](https://wordpress.org/plugins/posts-per-cat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-per-cat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-per-cat/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-per-cat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-per-cat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-per-cat/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-problems-with-activating-css/#post-2095053)
 * Status: not resolved