The Header element replaces our old Page Header module. This element has most of the same options as the old Page Headers. If you need help migrating from your old Page Header, see this article. For a step by step guideline of creating a page hero, please see this article. To create a new Header […]
Page Headers have a list of dynamic template tags which you can add to your content. These tags will pick up elements based on the page you’re currently viewing. {{post_title}} Will pick up the title of the page or post you’re currently viewing. It will also pick up the current taxonomy title if the Page […]
If you are using the block editor then please use Block Element – Page Hero. The Page Hero feature in our Header Elements is one of the most popular features in GP Premium. The examples below should demonstrate the options available and provide some popular styles that are ready to use. For detailed explanation of each […]
This type will replace the default GeneratePress site header. This means you can use the block editor to build your very own custom header, and replace your default header with it. Editor Width The editor width allows you to set the width of the editor for this block element. You can set the editor width […]
In the videos below, we go over migrating your old Hooks and Page Headers to the new Elements module in GP Premium 1.7. This first video was made by Mike Oliver of Zephyr Studio. It’s about 45 minutes long, and goes over migrating Page Headers to Page Heros. This next video is much shorter, but […]
The generate_header_element_display allows us to bypass the Display Rules, so we can enable or disable an Element under our own conditions. Examples For example, if we want to assign a specific header to Author Tom only: Another request that we get from time to time is to only show page hero on first archive or posts […]
The generate_element_display allows us to bypass the Display Rules, so we can enable or disable an Element under our own conditions. This filter replaces the previous generate_header_element_display, generate_hook_element_display and generate_layout_element_display. Display an Element to a Specific Author archive For example, if we want to assign a specific element to Author Tom’s author archive only: You need […]
Starting in GP Premium 2.0, you can create a post meta template in the Block Element module with the help of Dynamic Blocks and Dynamic Data. You can access it by creating a new block element, then select post meta template under the Element type dropdown menu: Settings GenerateBlocks Container Settings
The generate_show_entry_header filter allows you remove the entire <header class=”entry-header”> element.
Block Elements are available as of GP Premium 1.11.0. Block Elements allow you to use the WordPress block editor to create hooks, site headers, site footers, sidebars, page hero, content template etc. Creating a Block Element First, make sure the Elements module is activated in Appearance > GeneratePress. Now, go to Appearance > Elements and […]