• Resolved mttd

    (@mttd)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter mttd

    (@mttd)

    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

    Glad to be of help!

    Please could you resolve this topic?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘theme folder alias’ is closed to new replies.