The Static Block project is a custom Gutenberg block for WordPress. It allows users to create a frontend view with a fully customizable UI. The block supports customizable content like title, description, background image, logo, and more. This block is intended for creating a "pod request" page or similar functionality.
To install and use the Static Block in your WordPress environment, follow these steps:
- Clone or download the repository from GitHub.
- Navigate to your WordPress plugin directory, typically located at
wp-content/plugins
. - Copy the
static-block
folder into theplugins
directory. - Activate the plugin through the WordPress dashboard (
Plugins > Installed Plugins
). - Create or edit a post/page and add the Static Block from the Gutenberg editor.
After installing and activating the plugin:
- Create or edit a WordPress post or page.
- Open the Gutenberg editor.
- Search for "Static Block" in the block inserter.
- Insert the block and customize the content as needed.
- Use the sidebar controls to change the background image, logo, and other block attributes.
If you wish to develop or contribute to this project, ensure you have the following prerequisites:
- Node.js and npm: Required for building and compiling the block.
- WordPress Development Environment: Ensure you have a WordPress setup for testing.
To build the project:
- Open a terminal in the project root directory.
- Run
npm install
to install dependencies. - Run
npm run build
to compile the block assets. - Run
npm start
to enable hot-reload during development.
Contributions to this project are welcome. If you'd like to contribute:
- Fork the repository on GitHub.
- Create a new branch for your changes.
- Commit your changes with clear commit messages.
- Push the changes to your fork.
- Open a pull request on the original repository with a detailed explanation of your changes.
This project is licensed under the GNU General Public License, version 2.0 (GPL-2.0). For more information, see GPL-2.0 License.
For questions, suggestions, or feedback, contact the project author:
- Author: Dhruvik Malaviya
- GitHub: [https://github.com/dhruvikpatel18]
- Email: [[email protected]]
- This project is intended for educational purposes and is provided "as-is" without warranty.
- Ensure you have a backup of your WordPress site before installing new plugins.