Child Theme TT4, theme.json how? Port custom stuff?
-
Hey
I have setup a child theme for my TT4 install.
- When switching to it I see the default TT4 site. How do I bring my stuff over to the child? Assuming this get’s done, are there things to consider for future TT5, TT6 upgrades. I need something more specific than the manual, cause this remains unclear. In addition, in TT4 I have sort of customised default templates, so that those contain my stuff. Note I will also need my patterns and pattern part. My frontpage is also the customised default. Do I duplicate over in tt4 and rename and make this front before copy/paste?
- Also I am not hundred how to get around “theme.json” in child structure. Do I just create theme.json under “child-theme” folder and then WP will grab it all in priority where my customisation overrules WP? I am trying to do customisation and in particular restyle button block and core button. Will I need to declare custom templates, patterns and pattern parts? Will default WP stuff show alongside or do I need to port those also?
- As I understand, functions.php will not overwrite the mother functions.php from tt4, and I can port snippets from Code Snippets into this file provided the open tag is there. What I also understand is that WP themes do not enque functions.php so I include this in functions child (Please confirm mid lines and bottom lines are supposed to switch location like so):
add_action( 'wp_enqueue_scripts', 'draupnir_enqueue_styles' );
function draupnir_enqueue_styles() {
wp_enqueue_style(
'draupnir-parent-style',
get_parent_theme_file_uri( 'style.css' )
);
}thx
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.