Hello. I was interested to know precisely what this plugin will copy versus what it will not copy, while using it to create a CHILD theme from a PARENT theme that presently has no child defined.
Specifically, after using your plugin as noted in my above question, will updates to the PARENT theme continue to influence the CHILD .. or is your plugin making a complete copy of the Parent theme?
I am referencing this article, which describes well how certain files in the CHILD directory will have permanence over the Parent – hence, my concern:
https://www.ads-software.com/support/topic/child-themes-and-php-pages
Thanks in advance!
]]>Hi there!
I am working on a site and made lot of modifications in the original theme.
Now I learned about the child theme concept and I would like to use this approach.
Unfortunately lot of modifications were also made in the theme options.
Would your plug-in also duplicate the options stored in the wp_options table?
Thanks!
]]>When duplicating a theme in WP 4.1.1 I’m getting this error:
Notice: Undefined index: dup_theme_child in
.../wp-content/plugins/duplicate-theme/duplicate-theme.php on line 191 Notice: Undefined index: dup_theme_net in
.../wp-content/plugins/duplicate-theme/duplicate-theme.php on line 228
Try this. Use the @ to make sure you’re not accessing an unset variable
Line 191:
if( @$_POST['dup_theme_child'] && @$_POST['dup_theme_child']!=""){
Line 228:
if(@$_POST['dup_theme_net']){
This at symbol is also known as the
STFU operator, which some people don’t like, but would be a handy fix for this. Or perhaps you could use the isset() function.
While you’re in there, maybe you could make the new theme folder name be lowercase rather than allowing it to be upper and lower?
Add after line 131:
str = str.toLowerCase();
Same as the title of this. Removed duplicate and it took the original with it. Is that normal?
]]>I installed “Duplicate Theme” just now, activated it, and then used it to duplicate the “Twenty Thirteen” theme. The text “Duplicated to” appears at the top of the screen when I run it, and nothing else happens. I have tried this 4 times, with different new names for the template. No directory is even being created within themes, and no error message.
Thanks in advance.
]]>Thank you for making this plugin.
I used it, and instead of creating a child theme, it just makes a full copy of the theme I am trying to make a Child of. Any ideas?
Thanks,
]]>I’m having trouble with wrong menus showing in my duplicate themes.
My actual menu only has 5 items, but the menu shown in the duplicate theme shows all my categories instead. I cannot change this in the menu settings… Please help.
I read the “Duplicated theme getting WP update” thread that is here, but it didn’t answer my question.
I want to get updates to my child theme.
I would like to use this plugin to create custom-branded themes from other themes that I have purchased.
Example – instead of having the ‘uDesign’ theme show up everywhere in my client’s site, I would like to have the “4SpotMarketing-u” or “4Spot-CLIENT” theme show up.
If I used this plugin to make a duplicate theme and rename it so that it is ‘custom branded’, will it update the next time uDesign pushes an update — and — if it does update, will it keep the custom branding?
Thanks,
Jeff
I came across a possible issue for your users. When a theme is duplicated, it keeps the original name. I duplicated the Responsive theme and forgot to rename it to something different (i think).
So, i noticed today that Responsive had an update and both themes, the parent and child themes were asking for an update. After i changed the child theme’s name, the update request disappeared.
Maybe there should be a failsafe of sorts if the name is the same? Maybe there is already?
I would hate to accidentally update a child theme!
]]>I duplicated the theme. But how do I download it so I can use the same thing on a totally new website/domain/host?
Thanks!
]]>I don’t know why, but activating your plugin on multisite gives a blank white screen. I had to go in and delete the plugin.
Any ideas? I would like to use your plugin, but that won’t work for me.
]]>Hi,
I wanted to know how can i disable access to Duplicate Theme for all user roles except Super administrators? Do I need to change the code it is a functionality to select which user roles can have access to which plugins in a multisite?
Also if I change the code will it revert back to original when updated?
Hi,
installed the plugin but for some reason it doesn’t show any options to select under “Theme to Duplicate” even though several themes are installed. Any ideas why this happens or how it could be fixed?
Thank you very much. HP
]]>Hi,
I have a mass vhost setup where apache handles 100s of sites from one setup.
I think the problem from using this
$_SERVER[‘DOCUMENT_ROOT’].’/wp-content/’ which caused your copy function to go in a infinite loop. My log file became ~ 500MB
[25-Oct-2013 22:19:18 UTC] PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /var/www/vhosts/qsandbox.com/sites/c/h/i/childtheme.qsandbox.com/htdocs/wp-content/plugins/duplicate-theme/duplicate-theme.php on line 148
[25-Oct-2013 22:19:18 UTC] PHP Warning: copy(/var/www/vhosts/qsandbox.com/htdocs/wp-content/themes/twentythirteen/): failed to open stream: No such file or directory in /var/www/vhosts/qsandbox.com/sites/c/h/i/childtheme.qsandbox.com/htdocs/wp-content/plugins/duplicate-theme/duplicate-theme.php on line 154
[25-Oct-2013 22:19:18 UTC] PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /var/www/vhosts/qsandbox.com/sites/c/h/i/childtheme.qsandbox.com/htdocs/wp-content/plugins/duplicate-theme/duplicate-theme.php on line 148
[25-Oct-2013 22:19:18 UTC] PHP Warning: copy(/var/www/vhosts/qsandbox.com/htdocs/wp-content/themes/twentythirteen/): failed to open stream: No such file or directory in /var/www/vhosts/qsandbox.com/sites/c/h/i/childtheme.qsandbox.com/htdocs/wp-content/plugins/duplicate-theme/duplicate-theme.php on line 154
[25-Oct-2013 22:19:18 UTC] PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /var/www/vhosts/qsandbox.com/sites/c/h/i/childtheme.qsandbox.com/htdocs/wp-content/plugins/duplicate-theme/duplicate-theme.php on line 148
[25-Oct-2013 22:19:18 UTC] PHP Warning: copy(/var/www/vhosts/qsandbox.com/htdocs/wp-content/themes/twentythirteen/): failed to open stream: No such file or directory in /var/www/vhosts/qsandbox.com/sites/c/h/i/childtheme.qsandbox.com/htdocs/wp-content/plugins/duplicate-theme/duplicate-theme.php on line 154
[25-Oct-2013 22:19:18 UTC] PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /var/www/vhosts/qsandbox.com/sites/c/h/i/childtheme.qsandbox.com/htdocs/wp-content/plugins/duplicate-theme/duplicate-theme.php on line 148
Slavi
]]>