Skip to content

Do It Yourself Wordpress Web Components are Easier Than You Think

License

Notifications You must be signed in to change notification settings

undeadinstitute/diy-ezwebcomp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Do It Yourself - Easy Web Components for WordPress

How to use this template

  1. Set the $webcompname variable to your web component's name e.g. zombie-profile for <zombie-profile></zombie-profile>
  2. Put your JavaScript in the diy-ezwebcomp.js file. Or change $path2js to the path to your js file
  3. Put any global CSS in the diy-ezwebcomp.css file. If not using it, set $path2style to false.
  4. Paste your HTML Template content into the diy_ezwebcomp_footer() function.
  5. If adding a custom block, edit diy-ezwebcomp-block.js with the fields you need and add or edit any editor styles you may need.
  6. Bask in the warm glow of your awesomeness and your boss and/or client's jubilation.

About

Do It Yourself Wordpress Web Components are Easier Than You Think

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published