Edje WordPress Library
This plugin contains features that we keep using in our client's website. They are:
Requirement: PHP 7.3 and WordPress 5.5.
FAQ Block
Create a question where you can click to show the answer. It requires this theme support:
add_theme_support( 'h-faq-block-v2' );
Features:
- Automatically generate JSON LD Schema to include the FAQ within Google search result.
- Modern markup with
and
. - No frontend CSS. Refer to the documentation for basic one.
Icon Block
Create a box with SVG icon and description.
It requires this theme support:
add_theme_support( 'h-icon-block' );
Features:
- Integration with FontAwesome FREE. Simply type in the name of the icon and it will get the SVG code.
- Change position of icon to left, above, or right.
- Option to use Image file instead of SVG.
- No frontend CSS. Refer to the documentation for basic one.
Comment Editor
Enable a Markdown editor in the comment form.
It requires this theme support:
add_theme_support( 'h-comment-editor' );
Features:
- Saved in database as Markdown and compiled before rendered.
- General keyboard shortcut like bold (CTRL+B), italic (CTRL+I), undo (CTRL+Z)
- Added a checkbox for "Receive follow-up email when someone reply" below comment form.
Header and Footer Code
We added a new section in the Customizer to insert raw HTML code inside wp_head()
and wp_footer()
.
This is useful for Analytics code from Google or Facebook.
Other Features
All these features are enabled by default:
JavaScript
- Removed emoji converter.
- Removed Jetpack's Device-px script because it's useless.
- Removed Jetpack's Sharing script. It's only for sharing via email which is rarely used.
SEO
- Disabled automatic URL guessing if a visitor enters 404 page.
- Disabled Jetpack's Open Graph module when Yoast or The SEO Framework is installed.
GUTENBERG
- Added back Group's inner container that's removed in WP 5.9.
- Removed layout and dimensions setting in Group that's introduced in WP 5.9.
- Removed "Circle Mask" style from Image.
- Added "Transparent" style to Button.
- Added "Full Color" style to Table.
- Added "Larger Image" and "Smaller Image" style to Media-Text.
- Created a filter
h_disallowed_blocks
that returns an array of disabled blocks. By default it disables only three:core/pullquote
,core/nextpage
andcore/more
. - Added better styling for ACF Block (as see in the ACF Block's screenshot above).
- Changed the Category checklist to always be in same the position.
- Removed Medium-Large size when uploading new image.
OTHER
- Removed "Created by Wordpress" message in the bottom-left of WP Admin
- Changed the login error message to "Sorry, your username or password is wrong" instead of giving hint of which one is wrong.
- Changed the Wordpress logo in login page to the one you have set in Customizer > Site Identity.
- Added
H::markdown($text)
function to parse markdown text.