• Hey

    I have setup a child theme for my TT4 install.

    1. 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?
    2. 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?
    3. 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)
    • Thread Starter hebhansen

      (@hebhansen)

      One more question. them.json open bracket is red while closing bracket is pink (different) in my editor. Is that normal?

      Thread Starter hebhansen

      (@hebhansen)

      More confusion… in TT4 there are brackets and boxy brackets… why?

      	"patterns": [],
      "settings": {

      Also the ending commas in tt4….. end then WP examples here without commas?

      How can i add /******** description *********/ for humans to read in theme.json?

      Thread Starter hebhansen

      (@hebhansen)

      Checking my TT4 templates, patterns and part, I do not see my custom stuff. I simply don’t get how I transfer the edits I did in TT4 and get this to show on my site in the new child theme. thx

      Thread Starter hebhansen

      (@hebhansen)

      I dumped assets, pattern, template etc from TT4 and dumped them into child theme. My Headers and Footers are not showing. Why? Will these overwrite future templates in TT5? and how can I avoid that so that upgrades will in fact show as TT5….

      I copy pasted old appearance>editor>home all blocks and dropped them in the new editor>home. Including header and footer. They do not show.

      It appears that all txt shows in Cardo font (The Heading one) Why?

      Moderator James Huff

      (@macmanx)

      Assuming this get’s done, are there things to consider for future TT5, TT6 upgrades.

      No, every Twenty* theme is an entirely different theme, they are not upgrades: https://www.ads-software.com/themes/author/wordpressdotorg/

      Why, specifically are you making a child theme? Twenty Twenty-Four is a Block Theme, meaning that you no longer need to edit theme files, and instead can safely make your edits in the Site Editor, without losing them when the theme updates: https://www.ads-software.com/documentation/article/site-editor/

      There’s also a video tutorial if you prefer that style: https://learn.www.ads-software.com/tutorial/intro-to-the-site-editor-and-template-editor/

      And, Twenty Twenty-Four, has some specific documentation at: https://www.ads-software.com/documentation/article/twenty-twenty-four/

      Thread Starter hebhansen

      (@hebhansen)

      I know the editor. Thats not the issue.

      i make a child theme for variables and addition of settings.

      lets go back to the questipns

      header fotoet not showing

      correct Way to port my tt4 customisayoon into child

      Thread Starter hebhansen

      (@hebhansen)

      Trying again

      How do I port my customisations in TT4 over to my new child theme.

      Do I copy paste templates folders etc. Then I guess I have dublets or?

    Viewing 7 replies - 1 through 7 (of 7 total)
    • You must be logged in to reply to this topic.