- This topic has 1 reply, 2 voices, and was last updated 4 years, 8 months ago by .
- The forum ‘General Discussion’ is closed to new topics and replies.
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.
Tagged: child theme
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?
//* 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' );
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/.
© 2023 WPEngine, Inc.