Change child theme name?

Community Forums Forums General Discussion Change child theme name?

This topic is: not resolved

This topic contains 4 replies, has 3 voices, and was last updated by  dev 1 year, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #34083

    detroitwidget
    Participant
    Post count: 2

    I’ve read a few articles on how two change my Genesis child theme name, but I’m still a little confused.

    In the following code from my Executive child theme functions.php page, what exactly needs to be edited to rename the theme?

    <?php
    /** Start the engine */
    require_once( get_template_directory() . ‘/lib/init.php’ );

    load_child_theme_textdomain( ‘executive’, apply_filters( ‘child_theme_textdomain’, get_stylesheet_directory() . ‘/languages’, ‘executive’ ) );

    /** Child theme (do not remove) */
    define( ‘CHILD_THEME_NAME’, __( ‘Executive Theme’, ‘executive’ ) );
    define( ‘CHILD_THEME_URL’, ‘http://www.studiopress.com/themes/executive’ );

    /** Add Viewport meta tag for mobile browsers */

    —————-

    Thanks.

    #34085

    Susan
    Moderator
    Post count: 8942

    I use these instructions: http://www.wpsyntax.com/wordpress/how-to-rename-genesis-child-theme

    [php]

    /** Child theme (do not remove) */
    define( ‘CHILD_THEME_NAME’, __( ‘Executive Theme’, ‘executive’ ) );

    [/php]

    So, in the example you provided, you would replace ‘Executive Theme’ with the name of your child theme.


    Susan @ Graphically Designing I’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #34092

    detroitwidget
    Participant
    Post count: 2

    Thanks Susan.

    Those are the instructions I found too.

    If I also change the name of the child theme directory, would I need to replace the ‘executive’ reference as well? If so, do you know of any other directory references that would require changing?

    Thanks again for your help.

    #34099

    Susan
    Moderator
    Post count: 8942

    I’ve changed a child theme name using the tutorial I linked to, but I didn’t bother changing references to the original child theme name in any other places.


    Susan @ Graphically Designing I’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #47066

    dev
    Participant
    Post count: 457

    Susan: If we rename the child theme via tutorial above, say from Agency to MyNewAgency, will we still get update notifications in WP when SP brings out a new version of Agency?

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

You must be logged in to reply to this topic.