Forums

[Plugin: SidePosts Widget] CSS file insert location is wrong (4 posts)

  1. trendytrinket
    Member
    Posted 2 years ago #

    I'm getting a new 404 error since I updated to version 2.5 because some portion of the php is incorrectly adding my home server folder path to the relative file location.

    the correct file location: atrendytrinket.com/wp-content/plugins/sideposts/style.css

    instead some script is calling atrendytrinket.com/HOME/USERNAME/wp-content/plugins/sideposts/style.css?ver=2.5

    I can't figure out which php file is calling this so I can fix it. I don't care about any formatting the css file does, so I could just comment out the whole css file insert if that helps. Ideas?

    http://wordpress.org/extend/plugins/sideposts/

  2. Txanny
    Member
    Posted 2 years ago #

    You're right, this is a bug and I submitted an issue to the tracker to be solved in a bugfix release at http://alkivia.org/tracker/view.php?id=194

    To disable loading the style, you can insert this code as a plugin:

    function disable_sideposts_style( $url ) {
    	return '';
    }
    add_filter('ak_sideposts_style_url', 'disable_sideposts_style');
  3. trendytrinket
    Member
    Posted 2 years ago #

    I think I'll just keep my current fix of a duplicate css file in place until the next bugfix release as I don't know how to insert the above code as a plugin. Thanks for posting the bug notice and trying to fix it

  4. Txanny
    Member
    Posted 2 years ago #

    This has been fixed. Today will release 2.5.2 with this fix.

    Forgot to tell you the easy way: Delete the style.css file (And it will not load anymore).

    Another way to disable the styles is to create a file named 'alkivia.ini' in the wp-content folder with this content:

    [sideposts]
    disable-module-styles = On

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags