Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registering routes inside of a child theme #257

Open
14nd90 opened this issue Jan 17, 2023 · 2 comments
Open

Registering routes inside of a child theme #257

14nd90 opened this issue Jan 17, 2023 · 2 comments

Comments

@14nd90
Copy link

14nd90 commented Jan 17, 2023

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?

@sunxiyuan
Copy link

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

@kevindees
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants