• Resolved hopetommola

    (@hopetommola)


    I have a network of ~60 blogs and would like to activate my TT4 child theme, using the Blog Index Template. Is there a way to setup the child theme so that the Blog Index Template is the default template for the Posts page (i.e. is home page & is front page) without having to replace the template on each site? Any insight greatly appreciated

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator jordesign

    (@jordesign)

    Hi @hopetommola,

    As long as the template you want to use is the Blog Index Template – my expectation would be that it is used by default for the posts page as soon as that child theme is activated on any theme in the network.

    Thread Starter hopetommola

    (@hopetommola)

    Hey there @jordesign — thanks for weighing in. By default when I install and activate TT4, the home page shows “Business Home Template”. While in the site editor, I can click the three dots and choose “Replace template” and choose “Blogging index template”.

    What I’d like is for “Blogging index template” to be the default choice in my child theme, without having to go through the “click the three dots, replace” process. Not sure if this is possible, as I’ve merely scratched the surface of Child Theming in block/fse themes.

    Insight greatly appreciated.

    Moderator jordesign

    (@jordesign)

    Hey @hopetommola – thanks for explaining further. Whilst I don’t know the exact answer to this – I have a hunch of something you could try.

    If you take a look at the ‘home.html’ template in Twenty Twenty Four you’ll see this line (which is referring to the main pattern being used for the content).

    <!-- wp:pattern {"slug":"twentytwentyfour/template-home-business"} /-->

    In your child theme – you’ll want to have your own copy of the home.html file – and change that line to be

    <!-- wp:pattern {"slug":"twentytwentyfour/template-home-blogging"} /-->

    Could you give that a try and see how it goes?

    Thread Starter hopetommola

    (@hopetommola)

    That did the trick! Thank you.

    I made the change in my child theme, then went to a subsite using the old theme, and upon activation, resulted in the correct default.

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