WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] theme folder alias (4 posts)

  1. mttd
    Member
    Posted 1 year ago #

    Hi,

    Does anyone know if it is possible to use a folder alias to point to a theme in a different location from the themes folder?

    The reason being is I have an SVN repo location and various local WP installs I use for different clients and would like to point an alias to the theme location in the SVN repo.

    Hope that makes sense to someone! Or if anyone has a better idea that'd be great! I'm by no means an advanced SVN user so I don't know if there is something I can do from that side to achieve the same thing!

    Cheers,
    Tom

  2. WebAssembler
    Member
    Posted 1 year ago #

    Hi Tom,

    I've just worked it out myself so wanted to share:

    On a Mac

    1. Navigate to the wordpress themes folder in a terminal
    2. Create a symlink of the repo location to this directory
    3. ln -s PATH_TO_SVN_REPO .

    4. Make sure the stylesheet is in the theme's root (e.g. not in a css folder)

    On a PC

    1. Right-click SVN_REPO folder and select 'Create shortcut'
    2. Cut the shortcut and paste into the wordpress themes folder
    3. Make sure the stylesheet is in the theme's root (e.g. not in a css folder)

    Hope that helps.

  3. mttd
    Member
    Posted 1 year ago #

    Awesome! Thanks so much for sharing this, I'm sure I tried a symlink, but obviously I had something wrong! Thanks again, that's going to save me loads of back n forth copying n hassle!

    Cheers,
    Tom

  4. WebAssembler
    Member
    Posted 1 year ago #

    Glad to be of help!

    Please could you resolve this topic?

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic