Change default template in Pro with Child Theme

Hi there,

I’d like to change (override) the default template in Ethos with the “No Container | Header, No Footer” view.
I find the template in
/wp-content/themes/pro/framework/views/ethos/template-blank-5.php

But what now? Copy it to the child folder with the “same” path and rename it?

Any hint :slight_smile: would be great
Thank you,
mickna

Hi @mickna,

Thanks for reaching out.

If you want to override some templates from the parent theme to your child theme, the path and the file name should be exactly the same. So if you want to override /wp-content/themes/pro/framework/views/ethos/template-blank-5.php in your child theme, you should have this path: pro-child/framework/views/ethos/template-blank-5.php.

Hope that helps.

Thank you.

Hi @marc_a,

Thank you so far. But I would replace the default template with “template-blank-5”. So should I just rename it to index.php in the child theme?

Thank you,
mickna

Hi @mickna,

If you want to change the default template of ethos stack, the file you should customize is the wp-page.php in ethos folder.

Hope that helps.

Thank you.

Perfect!
Thank you.

You’re very welcome, @mickna!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.