Rename Freelance Theme

Community Forums Forums General Discussion Rename Freelance Theme

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Bill Murray 1 year, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10217

    Herman
    Participant
    Post count: 91

    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?

    Please advise

    Thanks

     

     

     

    #10231

    Bill Murray
    Participant
    Post count: 575

    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.


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    #10240

    Herman
    Participant
    Post count: 91

    Thanks Bill …I added a few lines to functions.php as I was following this tutorial

    http://www.wpsyntax.com/wp-tutorials/how-to-rename-genesis-child-theme

    So should I just change the folder and css info only?

    #10263

    Bill Murray
    Participant
    Post count: 575

    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.


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.