Replies: 2 comments 1 reply
-
Hi Adrian—Thanks for posting this! Can you describe how it breaks your paths locally? I haven't run into any problems with it to date, but I'd love to hear what you're encountering so we can try to sort it out. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh no, it was just a typo, my bad 🙈 The image I was trying to load was broken and I just assumed it was a path issue but all the time it was Thanks for the quick answer thought and as ever, great work with the theme! 😊 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's quite clever that you can put the entire _tw generated my-custom-generated-theme folder inside
wp-content/themes/
for you local development and that it works even though the actual theme is in thetheme
subfolder.But I ran into problem with using
get_template_directory_uri()
since it will output the path of theme folder and the subfolder (likemy-custom-generated-theme/theme
) and that breaks my paths locally. Is there any clever way around it? (Preferably without have to add dev/prod specific code.)Otherwise I think I'll stick to have the main my-custom-generated-theme folder outside of WordPress structure and symlink the
theme
folder.Beta Was this translation helpful? Give feedback.
All reactions