• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How do I create a Child Theme of a Studio Press Theme?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › How do I create a Child Theme of a Studio Press Theme?

This topic is: not resolved

Tagged: child theme

  • This topic has 1 reply, 2 voices, and was last updated 3 years, 11 months ago by Victor Font.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • April 5, 2019 at 12:26 pm #490516
    thsctech
    Member

    I'm trying to learn the correct form for making CSS / PHP updates but after over an hour of searching online the only references show how to create a child Genesis Theme, such as the following placed in functions.php
    A child theme must reference Genesis, so how does a Studio Press theme be referenced in order to make update proof long term customizations?

    <?php
    //* this will bring in the Genesis Parent files needed:
    include_once( get_template_directory() . '/lib/init.php' );

    //* We tell the name of our child theme
    define( 'Child_Theme_Name', __( 'Genesis Child', 'genesischild' ) );
    //* We tell the web address of our child theme (More info & demo)
    define( 'Child_Theme_Url', 'http://gsquaredstudios.com' );
    //* We tell the version of our child theme
    define( 'Child_Theme_Version', '1.0' );

    //* Add HTML5 markup structure from Genesis
    add_theme_support( 'html5' );

    //* Add HTML5 responsive recognition
    add_theme_support( 'genesis-responsive-viewport' );

    April 6, 2019 at 6:05 am #490527
    Victor Font
    Moderator

    Studio Press themes are child themes. Genesis is the parent theme. You cannot create a child theme of a child theme. This would be a grandchild theme and WordPress does not support grandchild themes.

    Child themes are meant to be the vehicle for your CSS and PHP customizations. For more on child themes and how they work, please see https://developer.wordpress.org/themes/advanced-topics/child-themes/.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble