Page 1 of 1

Renaming theme via patReplaces.php

Posted: Fri Jun 14, 2013 9:48 pm
by Wormzer
My Vqmod version is 2.3.2. I have changed my admin directory name via patReplaces.php and this works. If i understand correct this is also possible for changing the theme name.
So i want to change my theme name but i cant get it to work.

This is how my patReplaces.php looks like:

Code: Select all

<?php

/**
*  File for path replacements in xml paths. Examples:
*
*  $replaces[] = array('~^admin\b~', 'admin123'); // This replaces the admin folder name for use when admin folder's renamed
*  $replaces[] = array('~\btheme/default\b~', 'theme/my-theme-name'); // Theme name replace to apply mods to your theme
*
*  Place your replaces between the START and END lines below
**/


// START REPLACES //
$replaces[] = array('~^admin\b~', 'admintest');
$replaces[] = array('~\btheme/old-theme-name\b~', 'theme/new-theme-name');
// END REPLACES //
I deleted the vqcache content and the mods cache file. After that i changed my theme directory name to: new-theme-name.
In the admin backend of the store i enabled the new-theme-name.

Why is this still not working, what am i doing wrong?

Re: Renaming theme via patReplaces.php

Posted: Sat Jun 15, 2013 1:08 am
by rph
Do you actually have vqmod scripts coded with the old theme path? That's usually not common unless you created them yourself or a developer was creating a workaround for a specific theme.

Re: Renaming theme via patReplaces.php

Posted: Sat Jun 15, 2013 3:05 am
by Wormzer
No. But i got it wrong i think, i tought that you could change the theme name (template) with the pathReplaces. So when you look into the website source of the store you can't see the original theme name, but the name i have gave it. :bang: