Community Forums › Forums › Archived Forums › Design Tips and Tricks › Rename Genesis Child Theme
Tagged: child theme, custom child theme, rename child theme
- This topic has 4 replies, 4 voices, and was last updated 9 years, 10 months ago by Liz.
-
AuthorPosts
-
January 19, 2015 at 12:24 pm #137933Rizk30Member
Hello. I am new to Genesis and building a new site using the Executive Pro Genesis child theme. I have no activated the site yet. I first want to rename the child theme to prevent people from being able to see the theme name in the source code of the site once it is built. I have researched how to change the child theme name and am told from studio press that the following tutorial gives correct directions:
Using Filezilla, I have changed the folder name of the child theme. Next, I open the style.css file to make the changes as reflected in the tutorial. The next step in making chafes to the top of the style.css file is pretty straight forward. However, I am confused about a the next step that says to "do a search for all instances of the original child theme name and replace it with your new name. Again for reference. If you’re renaming the Agency child theme, then we search for Agency and replace it with Wilmer."
The tutorial explains that if the new child theme name has more than one word to include a dash (-) in between the words. However, when I search for "executive" in the style.css file, I find areas within the style.css file that read "Executive Pro" (no dash) and other areas where it reads ".executive-pro". Do I change to name and include/exclude the dashes as there are originally?
Assuming I rename the child theme to "Sample Pro", am I supposed to change "Executive Pro" under "Theme Colors" and everywhere else as follows:
Original: "Executive Pro Brown" to "Sample Pro Brown" or Sample-Pro Brown"?January 19, 2015 at 2:00 pm #137969Brad DaltonParticipantJanuary 19, 2015 at 2:05 pm #137971Rizk30MemberMy apologies. I included a link to the tutorial I am referencing below. FYI, studiopress support advised me that this tutorial provides correct instructions. I since followed the directions and now getting an error message - syntax error, unexpected 'Theme' (T_STRING)
Tutorial
http://www.rickrduncan.com/wordpress/rename-genesis-child-themeI thought renaming a child theme was supposed to be easy? Why does it not seem so easy?
Its getting vert frustrating. AHH! lol.. Please help!
January 26, 2015 at 4:04 pm #138707baynhamMemberI would like to do the same thing, but I'm scared that I'll break something! Any new discoveries or advice?
February 27, 2015 at 8:31 am #142529LizParticipantI just did this last night, successfully for the most part.
Offline I cloned the Executive Pro folder and renamed it with my child theme (I use Dreamweaver to do this editing). I also did a screenshot of my test site home page and saved it as screenshot.png and put this into the root directory of the child theme.
In functions.php and style.css I did the following:
Where it said Executive Pro, I substituted Newname (my new name has no spaces)
Where it said executive, I substituted newname (or new-name if my own theme name had spaces)
Where I found executive-pro, I substituted newname (or new-name if my own theme name had spaces)** Now Dreamweaver sees all the files referred to in the folder and prompted me to change executive to newname in all the other php files in the folder, and that step is not referred to in the article, so I have no idea if that is correct, but it makes sense to me.**
I uploaded this new theme folder via FTP through Dreamweaver, I assume that if I had zipped it first, I'd be able to upload through usual WordPress theme upload process.
Logged in to the site and changed the theme to the new theme.
I checked all the items in the customizer, especially the navigation had to be reseslected.I've done this for several client sites, and skipped it for others. It has always worked immediately for me, though I don't think that I did the step about changing theme name in all the supporting php files.
In this case, all is well except on the Blog page and individual blog posts, the Titles are not showing up and the meta is styled differently. So that is what I'm asking for help on in another post on the forum.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.