Tagged: Rename Freelance Theme
I received syntax errors when I tried to rename the freelance child theme.
I did not see any /** Child theme (do not remove) */ in the functions.php file
Would this have something to do with the errors?
What did you do to rename the child theme? What specific errors are you receiving?
You need to change the "Theme Name" at the top of your child theme stylesheet, taking care NOT to change or remove the line that says "Template: genesis". For Freelance, there's nothing in functions.php that needs to be changed. You can change the folder to a name of your liking, as long as it's in your WP themes folder.
Thanks Bill ...I added a few lines to functions.php as I was following this tutorial
So should I just change the folder and css info only?
To rename a child theme, you don't need to change the lines in functions.php. For the Freelance theme, there are no lines to change. Since you changed PHP code, that's likely the source of your syntax errors.
For background on this, the lines in functions.php from that tutorial in your link are defines, which set a value. The values don't have any impact on renaming the theme. What they impact is using shortcodes. In Freelance, since these defines do not exist, certain shortcodes don't work. For example, the shortcode [ footer_childtheme_link ] (note I'm putting spaces after after the opening and before the closing bracket so the shortcode isn't processed here) won't work on Freelance, since no child theme is defined. But the lack of the define won't impact your goal of renaming a theme.
You must be logged in to reply to this topic.