Multiple WordPress Blocks In One Plugin (@wordpress/create-block)
LearnWebCode LearnWebCode
341K subscribers
3,418 views
199

 Published On May 28, 2024

Check out my full WordPress course here https://learnwebcode.teachable.com/p/...

My Interactivity API Tutorial    • WordPress Interactivity API Tutorial ...  

You may have noticed CSS isn't being applied to the 2nd and 3rd blocks. You just need to go into your "editor.scss" and "style.scss" files for each new block and change the ending part of their selector to match your newly duplicated block name instead of the original block name. For example, my 2nd block should use a selector like this: ".wp-block-bradsblocks-secondblock"

Follow me for updates on new videos or projects:
Instagram:   / javaschiff  
Twitter:   / learnwebcode  
Facebook:   / brad-schiff-1542576316048470  
Twitch:   / learnwebcode  

show more

Share/Embed