At the moment, the site uses a hook that adds WooCommerce functionality to the main theme.

On their website, they call for the use of a child theme, but everything only leads to the fact that the parent theme remains intact, and the child theme is applied to the entire site.

It would be great to have a parent theme for the entire site + a child only for WooCommerce pages. Is there any way to do this?

    1 answer 1

    There is no such way. A child theme always works for the entire site.

    Using child themes is the right approach, allowing you to make changes to themes and some advanced plugins (for example, WooCommerce) without being dependent on updates to parent themes and plug-ins.

    At the same time, themes and plug-in updates are often critical, closing security holes.

    • It is not clear why using a child theme raises questions. The simplest child theme consists of just one style.css file and does not create any additional load on the site. - KAGG Design Nov.
    • I do not mind the child. Just the current hook adds css and js WooCommerce files to all pages of the site. And I would like to avoid this - user64675
    • The effect of these additional css and js on the response speed is negligible. But if you really want to optimize the site, the simplest solution is the Plugin Organizer plugin srd.wordpress.org/plugins/plugin-organizer With it, you can enable plugins only on those pages where they are needed. - KAGG Design Nov.