WordPress.org

Ready to get started?Download WordPress

Forums

jQuery UI Widgets
Feature request: allow styles outside of /uploads (3 posts)

  1. DaveBurns
    Member
    Posted 1 year ago #

    I had a need to put my jQUI custom style in /wp-content but not in the /uploads directory. I made small mods to the plugin to do this but it'd be nice if it was a standard option.

    http://wordpress.org/extend/plugins/jquery-ui-widgets/

  2. David Gwyer
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Dave,

    If you send me your mod, or post it on pastebin, I will take a look.

  3. DaveBurns
    Member
    Posted 1 year ago #

    Hi, David.

    I did not code for the general case since the change was so small. I searched for all calls to wp_upload_dir() and replaced them with my new function named jquiw_get_custom_style_dir(). I put that at the end of jquery-ui-widgets.php:

    function jquiw_get_custom_style_dir() {
        return array(
            "basedir" => WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'dbp-content',
            "baseurl" => WP_CONTENT_URL . '/dbp-content',
        );
    }

    db

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.