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

Update steps on what do to when you have theme and plugin boilerplate in the same project #177

Open
9 tasks
mbmjertan opened this issue Jul 15, 2022 · 0 comments
Assignees
Labels

Comments

@mbmjertan
Copy link
Collaborator

Describe your bug

We should write down / update the steps required for ensuring that no collisions happen when you have a theme and plugin boilerplate set up on the same project.

This includes:

  • setting up features you need for the plugin from the boilerplate (e.g. Blocks)
  • making changes to Enqueue classes so scripts and styles get enqueued properly
  • adding the library config to webpack config
  • changing the block namespace
  • changing the block category in Blocks.php
  • removing changeEditorColorPalette and add_theme_support
  • making changes to filterBlocksContent
  • changing the CSS variable output selector
  • ensuring no classname collisions happen

There already is some documentation on this in the FAQ in Docs, but it's out of date.

Steps to Reproduce

/

Expected behavior

/

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in this repo.

Yes

Please confirm that you have searched in our documentation and couldn't find the answer.

Yes

Please confirm that your bug occurs with all plugins uninstalled and with the default WordPress theme active.

Yes

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

No branches or pull requests

2 participants