sage icon indicating copy to clipboard operation
sage copied to clipboard

Renaming theme folder "Roots"

Open expertpixels opened this issue 14 years ago • 7 comments

Hey, wondering if anyone can help me sort this issue out.. whenever i rename the theme folder to anything other than "roots" (wp-content\themes\roots) i get errors.. I am starting to think that a lot of my issues ive posted are related to this.

Can anyone please help me with this or provide a temporary fix / a solution for this... I am using the "roots" theme for several projects on my localhost so i do have to rename the folder... unless the folder is called theme folder is called "roots" soon as i activate the theme and save the settings errors show up.

A huge thanks in advance to anyone who can take the time to help me out with this.

Regards, Darren

expertpixels avatar May 14 '12 01:05 expertpixels

what errors do you get? i rename the folder on every single site i build

retlehs avatar May 14 '12 01:05 retlehs

Thanks for such a fast response:

Warning: Invalid argument supplied for foreach() in C:\wamp\www\wordpress\wp-content\themes\sponsored-theme\inc\cleanup.php on line 469

Screenshot attached: http://i49.tinypic.com/155ns40.png

The error only happens if the folder has been renamed... as i am trying to use roots for several projects, the problem is i can only activate / make the theme function correctly if the folder is called roots.. i just downloaded the latest roots theme 30 mins ago.. renamed the folder (as ive already got a "roots" folder in my theme dir)..

Thanks for any assistance on this, love the theme and all the features i just wish i could get it working fine.

Regards, Darren

expertpixels avatar May 14 '12 01:05 expertpixels

see #447 / https://github.com/AlexKovalevych/roots/commit/cf627cdf1e8e72c4aa0d853264e38ac9be91bfa8 - can you apply his code and see if it fixes your problem?

retlehs avatar May 14 '12 01:05 retlehs

Thanks mate :) seems to be working.. the only thing ive noticed is it's not adding the menu to the the nav after activation (no biggy as i can set that myself)..

I will be online for the rest of the day so if you need any other help testing anything out just yell out.. i will check in on "https://github.com/retlehs" as often as possible for the day.

Thanks again, will keep you updated.

Regards, Darren

expertpixels avatar May 14 '12 02:05 expertpixels

Hey again.. the above seemed to have worked, ive uploaded the theme (test-theme) here: http://expertpixels.com (the theme has been activated)..

Click the image here: http://expertpixels.com/another-image-test/ then after that click the image again and notice the url looks like this: http://expertpixels.com/assets//Image-1.png <--- Notice the 2 "//" after assets.. how can we make this show like such: http://expertpixels.com/assets/Image-1.png <---- i mean with just one trailing slash.

here is the thread i created about the assets folder having issues: https://github.com/retlehs/roots/issues/444

Regards, Darren

expertpixels avatar May 14 '12 02:05 expertpixels

This fix worked for me as well.

wilsonwc avatar May 14 '12 19:05 wilsonwc

fixed by #447

retlehs avatar May 17 '12 05:05 retlehs