Block Element – Hook

Hook type is the Gutenberg version of Hook Element.

It allows you to insert your Block Element content to any hook inside GeneratePress. This is great for things like author boxes, CTAs, top bars, footer bars etc. There is no limit to the number of things you can build and hook into your website.

Editor Width

The editor width allows you to set the width of the editor for this block element. You can set the editor width to match the actual content width to help visualizing the final design.

Hook name (required) 

The location of the hooks are shown in our  Hooks Visual Guide .

The usage of each hook is reference and explained in this list.

Custom Hook

This option allows you to define your own hook name if it doesn’t exist in the dropdown.

Priority (optional) 

Set the priority of this element. This is useful when there are multiple elements added to the same hook. Lower priorities display higher up on the page than lower priorities. Watch this video to learn more about PHP priority.

Examples

Top bar social icons & buttons
Dynamic author box in post
Dynamic author box in sidebar
Sticky social icons
Sticky social icons