{"id":15496303,"url":"https://github.com/imranhsayed/custom-blocks","last_synced_at":"2025-04-22T21:26:50.209Z","repository":{"id":44087000,"uuid":"201103347","full_name":"imranhsayed/custom-blocks","owner":"imranhsayed","description":":package: Custom Gutenberg Blocks","archived":false,"fork":false,"pushed_at":"2023-02-27T15:53:24.000Z","size":3233,"stargazers_count":26,"open_issues_count":26,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-28T09:04:08.910Z","etag":null,"topics":["gutenberg-blocks","gutenberg-plugin","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imranhsayed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-07T18:08:22.000Z","updated_at":"2024-12-16T16:42:43.000Z","dependencies_parsed_at":"2025-03-04T10:42:11.616Z","dependency_job_id":null,"html_url":"https://github.com/imranhsayed/custom-blocks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranhsayed%2Fcustom-blocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranhsayed%2Fcustom-blocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranhsayed%2Fcustom-blocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranhsayed%2Fcustom-blocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imranhsayed","download_url":"https://codeload.github.com/imranhsayed/custom-blocks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250326954,"owners_count":21412353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gutenberg-blocks","gutenberg-plugin","wordpress","wordpress-plugin"],"created_at":"2024-10-02T08:24:28.004Z","updated_at":"2025-04-22T21:26:50.190Z","avatar_url":"https://github.com/imranhsayed.png","language":"PHP","readme":"## Description\n\nThis plugin adds a custom Gutenberg blocks in the Gutenberg editor of your WordPress dashboard. \n\n## Installation :wrench:\n\n1. Download the zipped plugin. Unzip the plugin.\n2. Navigate to the __Plugins \u003e Add new__ screen in your WordPress administrative dashboard.\n3. Click __Add New__ at the top of the page.\n3. Click __Upload Plugin__ at the top of the page.\n4. Click __Choose File__, then find and __Upload__ the downloaded renamed zip file.\n5. After the plugin finishes installing, click __Activate__.\n\n   or,\n   Go to your plugin directory from terminal and Clone this repo in wp-content/plugins directory `git clone https://github.com/imranhsayed/custom-blocks`\n   And then activate it from __Plugins__ screen in your WordPress administrative dashboard.\n6. That's it!\n\n## Configuration ( @wordpress/scripts )\n\n- This plugin uses [@wordpress/scripts](https://developer.wordpress.org/block-editor/packages/packages-scripts/) which installs and sets up webpack and babel config out of the box\n- The `@wordpress/scripts` is installed in the root of the project. This is one single plugin that registers many blocks.\n- By default `@wordpress/package` uses `src/index.js` as entry point and `build/index.js` \n\n## Directory Structure\n\n```ruby\n├── build\n│   └── index.js\n├── node_modules\n├── package-lock.json\n├── package.json\n└── src\n    ├── editor.css\n    ├── index.js\n    └── style.css\n├── custom-functions.php\n├── index.php\t\t\t\t\t\t\n```\n\n## Scripts\n\n1. `npm run start` : will use the `src/index.js` as entry point and output it to `build/index.js` for development\n2. `npm run build` : will use the `src/index.js` as entry point and output it to `build/index.js` for production\n\n## What is included in this plugin ?\n\n- The plugin uses ReactJS \u0026 ESNext for creating custom gutenberg block, along with PHP\n- It uses Webpack to bundle all of its dependencies into one file index.js\n- Has separate stylesheet for front-end \u0026 editor.\n\n## Useful Blogs:\n\n1. [Create Gutenberg Block in 3 Steps](https://medium.com/@imranhsayed/create-gutenberg-block-in-3-steps-924828a2ff83)\n2. [Custom Gutenberg Block with ES6](https://medium.com/@imranhsayed/custom-gutenberg-block-using-es6-webpack-babel-wordpress-scripts-7d6f185d9eb6)\n3. [Attributes \u0026 Components](https://medium.com/@imranhsayed/attributes-and-components-in-gutenberg-blocks-richtext-blockcontrols-alignmenttoolbar-230910fcbd4a)\n\n## Gutenberg Handbook\n\n1. [Gutenberg Handbook](https://developer.wordpress.org/block-editor/)\n\n## Gutenberg Tutorials\n\n1. [Introduction to Gutenberg](https://youtu.be/U4sfx7vN0Iw)\n2. [Create Gutenberg Block in 3 Steps](https://youtu.be/AQ10IGN2lt8)\n3. [Custom Gutenberg Block using @wordpress/scripts](https://youtu.be/Pfp7mCXnhhw)\n4. [@wordpress/scripts package features](https://youtu.be/wihGO8yR3Q8)\n5. [Attributes and Components | State ](https://youtu.be/aH0u5NBDAeg)\n\n## Gutenberg Talks\n\n1. [WordCamp Pune: Introduction to Gutenberg](https://wordpress.tv/2019/06/25/imran-sayed-introduction-to-gutenberg/)\n\n## How to use ?\n\n- Go to WordPress Dashboard \u003e Posts/Pages \u003e Add New \u003e Add block ( + icon ) \u003e Common\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimranhsayed%2Fcustom-blocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimranhsayed%2Fcustom-blocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimranhsayed%2Fcustom-blocks/lists"}