Tibbits Consulting Custom Blocks
WordPress plugin containing custom Gutenberg blocks built with React
by Matt Tibbits · github.com/mtibbits140/tsc-custom-blocks · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/mtibbits140/tsc-custom-blocks/archive/refs/heads/main.zipDeclares an update source (https://example.com/my-plugin/), so updates arrive through the plugin's own updater.
From the readme
TSC Custom Blocks
A small plugin that provides reusable Gutenberg blocks for TSC WordPress builds.
Blocks Included
- Search Modal (tsc/search-modal)
- Search Form (tsc/search-form)
Search Modal
Adds a search form presented in a modal, triggered by a header icon. The trigger can live inside sticky or absolutely positioned headers and the modal still displays over the page with an overlay.
Features:
- Retains current search terms between opens.
- Customizable modal background color.
- Customizable search button background and text colors.
- Upload a custom SVG file to replace the default search icon.
- Optional trigger text beside the icon.
- Front-end behavior opens the modal, focuses the input, and provides a dedicated close button.
Search Form
A straightforward inline search form block for content areas, sidebars, or footers.
Features:
- Standard search field with submit button.
- Submits to the site search endpoint.
- Retains the user's current search terms.
- Customizable input/placeholder text color.
- Customizable submit button background and text colors.
Development
In the plugin directory:
Use npm run start while developing blocks. Use npm run build before depl