typerocket icon indicating copy to clipboard operation
typerocket copied to clipboard

Registering routes inside of a child theme

Open 14nd90 opened this issue 2 years ago • 2 comments

Not been able to test extensively so I may be barking up the wrong tree here, but I was really struggling to get any routes firing after following the docs and YouTube videos quite carefully. Eventually worked out when I did away with my child theme and moved all the code to a master theme then the routes registered. Wondered if this is a known problem or possibly there was something else in play here?

14nd90 avatar Jan 17 '23 15:01 14nd90

I am also unable to trigger any code when using subthemes. Fortunately, I saw your issue, otherwise I would have been looking for a bug for a long time

sunxiyuan avatar Jun 25 '23 11:06 sunxiyuan

@sunxiyuan @14nd90

TypeRocket is currently designed to use just the parent themes version of code. For child themes, we recommend applying filter and action hooks in the parent theme and accessing them in the child theme.

Also, we are working toward version 7 of TypeRocket to make the framework even more flexible for everyone.

kevindees avatar Jul 27 '23 01:07 kevindees