WordPress.org

Ready to get started?Download WordPress

Forums

WP UI - Tabs, Accordions, Sliders
How to set Custom styles upload dir path ? (5 posts)

  1. globaltimoto
    Member
    Posted 10 months ago #

    Hello

    I've been using custom jquery themeroller themes in the default uploads/wp-ui successfully.

    But now I would like to place that css elsewhere such as:

    /wp-content/themes/mytheme/css/wp-ui/

    When entering the above path in both the Directory path and Directory URL I get a warning page "are you sure you want to do this", and I confirm.

    But when I go back to the Style tab, and do a scan for themes, the scan reports no themes found in uploads/wp-ui, the default dir.

    I also see that the paths I entered are not shown in the fields.

    My wp install is in the root of the site.

    So

    1. Do I have the correct path entered in both fields ?
    2. Should the paths be shown in the fields where they were entered ?
    3. When successfully configured should the scan now look in my custom dir ?

    Thanks

    http://wordpress.org/plugins/wp-ui/

  2. kavingray
    Member
    Plugin Author

    Posted 10 months ago #

    The answer to your questions. :)

    1) Yes, You have to enter the correct ones, But please note that one is for Path ( directory) and another is URL to that folder.
    2) Paths will be automatically included in the URL of scanned styles.
    3) As told earlier, yes it should. The changed one will be the default path now. That means old ones in 'uploads/wp-ui' wont be scanned.

    Some additional consideration should be taken when you have
    1) WordPress installed into a folder ( not in your case)
    2) Custom WP_Content_DIR and WP_CONTENT_URL

  3. globaltimoto
    Member
    Posted 10 months ago #

    Thanks kavin

    So it must be that I have not got the Path and URL as it should be.

    Since the wp install is at the root I used:

    path
    /wp-content/themes/mytheme/css/wp-ui/

    url
    /wp-content/themes/mytheme/css/wp-ui/

    Should I be doing this different ?

    Surely not like this ? :

    url
    http://mydomain.com/wp-content/themes/mytheme/css/wp-ui/

  4. kavingray
    Member
    Plugin Author

    Posted 9 months ago #

    No, Both the Path and url should be from root or from domain. -

    path
    /wp-content/themes/mytheme/css/wp-ui/

    url
    http://mydomain.com/wp-content/themes/mytheme/css/wp-ui/

    should work correctly. :)

  5. globaltimoto
    Member
    Posted 9 months ago #

    I see.

    It makes life more difficult when working between dev and production.

    dev.domain.com > pro.domain.com

    Means we have to manually change something that a domain relative path would avoid.

    I'm suggesting the plugin should make use of the site url to prepend the domain relative path. Which means we only need to locate the folder once.

Reply

You must log in to post.

About this Plugin

About this Topic