WordPress.org

Ready to get started?Download WordPress

Forums

Posts per Cat
Problems with activating CSS (3 posts)

  1. misterdims
    Member
    Posted 3 years ago #

    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
    Sorry for my poor english...

    Congratulations for your job !

  2. misterdims
    Member
    Posted 3 years ago #

    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 !!!!

  3. urkekg
    Member
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic