Community Forums › Forums › Archived Forums › Design Tips and Tricks › Setting up a child theme with Multisite
Tagged: child theme, Epik, multisite
- This topic has 4 replies, 2 voices, and was last updated 8 years, 10 months ago by
amandathewebdev.
-
AuthorPosts
-
March 17, 2016 at 11:33 am #181719
amandathewebdev
MemberHi all,
I'm having trouble with this, I'm hoping someone can help. I set up a Multisite, and this is the first time I'm using one. From what I understand, I am to load each subsite's theme into the themes folder, then activate the theme for the individual sites in their admins. These subsites already exist on another server as separate WordPress installs. I am manually migrating them. They all use Genesis and the child theme Epik.
Originally I think I should have created a child theme of Epik for each site, but I didn't. I modified the files in Epik. So now I need to bring Epik over from each site and rename it. Only this isn't working. I've updated Epik's functions.php and style.css in my renamed folder to have the name of the child theme. For example, I have a subsite called "kidz" and renamed the folder "Epik" to "kidz", now I need to get "kidz" to show up as an option in my themes, but it's not working.
Here's the CSS file change I made:
/* Theme Name: Kidz Theme URI: http://appfinite.com/themes/epik Description: Kidz is a child theme of the Genesis child theme Epic Author: WebFly Author URI: http://www.webfly.com/ */
And here's the functions.php file change I made
//* Child theme (do not remove) define( 'CHILD_THEME_NAME', 'Epik Theme Child Kidz', 'kidz' ); define( 'CHILD_THEME_URL', 'http://appfinite.com/themes/epik' );
Am I missing something? Because that didn't do it. Thanks in advance for your help!
March 18, 2016 at 5:11 am #181756Victor Font
ModeratorOn multisite, all themes need to be network activated on the main site before they are available for activation on a subsite.
Also, when you rename a theme's text domain (kidz), which you don't have to do, you have to rename it everywhere that it appears in either functions.php and style.css. All you need to do is rename the theme in the style.css header.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?March 18, 2016 at 9:57 am #181797amandathewebdev
MemberHi Victor,
Thank you for the response 🙂 I don't see my child child theme in Appearance > Themes in my main site either. Just Genesis and Epik, but no Kidz.
I'm not sure what you mean by renaming the theme's text domain, do you mean renaming the folder or what I did in functions.php? I want to be able to differentiate it between the other themes. They are all named Epik but are all custom.
March 19, 2016 at 9:34 am #181862Victor Font
ModeratorYou are missing the part of the header in style.css that says it's a Genesis child theme. The correct header should be:
/* Theme Name: Kidz Theme URI: http://appfinite.com/themes/epik Description: Epik is a mobile responsive and HTML5 theme built for the Genesis Framework. Author: Appfinite Author URI: http://www.appfinite.com/ Version: 1.4.1 Tags: black, blue, default, gray, green, orange, pink, purple, red, one-column, two-columns, three-columns, fixed-width, custom-menu, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready Template: genesis Template Version: 2.0 */
In functions.php, you changed the child theme text domain when you added this line:
define( 'CHILD_THEME_NAME', 'Epik Theme Child Kidz', 'kidz' );
The second parameter is the text domain. When you do this, you have to change every instance of epik that find in style.css or functions.php to kidz. I would have just left the text domain alone.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?March 22, 2016 at 1:39 pm #182037amandathewebdev
MemberThank you very much! With your help I figured it out!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.