generate_show_excerpt

generate_show_excerpt

The generate_show_excerpt filter allows you to choose whether your blog posts show the excerpt or full post.
Default (boolean): Your option set in Customize > Blog > Blog Content
Usage
Please refer to the Using Filters article to learn how to use this filter.
Examples
If you want your search template to show the full post instead of an excerpt.
add_filter( 'generate_show_excerpt','tu_full_post_search' );
function tu_full_post_search( $show_excerpt )
{
if ( is_search() )
return false;

return $show_excerpt;
}
If you want the most recent post to show full content, but the rest to show excerpts:
add_filter( 'generate_show_excerpt','tu_full_recent_post' );
function tu_full_recent_post( $excerpt )
{
global $wp_query;
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;

if ( $wp_query->current_post === (int) 0 && 1 == $paged ) {
return false;
}

return $excerpt;
}
The above assumes your blog content setting in Customize > Blog > Blog Content is set to display excerpts.

Adding Page Headers to Taxonomies

Adding Page Headers to Taxonomies

You can easily add your created page headers to your taxonomies, like category archives, tag archives and other custom taxonomies (WooCommerce product categories etc..).
First, create your Page Header by doing to Page Headers > Add New.
Once your Page Header is created and published, enter your taxonomy.
For example, let』s say we have a category named Travel. We would go to Posts > Categories and enter the Travel category.
Now that we』re inside the Travel category, we can use the Page Header select dropdown to apply our published Page Header to this category.

Secondary Menu Item Height & Width

Secondary Menu Item Height & Width

Note: These options require the Secondary Navigation add-on in GP Premium.
We can adjust the width and height of our menu items, as well as the height of our sub-menu items in Customize > Layout > Secondary Navigation.

Width
This option adds the value to the left and right of your menu item item text. 20 = 20px on either side of your text.
Height
This value determines the height of your menu items. 60 = 60px tall.
Sub-Menu Item Height
This value determines the height of your sub-menu items. 10 = 10px on top and bottom of the text.

generate_blog_columns

generate_blog_columns

Note: This filter is included in GP Premium.
The generate_blog_columns filter allows you to apply columns to a custom post type.
See example here.
Usage
Please refer to the Using Filters article to learn how to use this filter.

Page Header Logo

Page Header Logo

The Page Header meta box includes a Logo section.
This section will only show up if you already have a logo/header set in Customize > Site Identity.
This option allows you to upload a different logo/header for this specific page. This is especially useful if your site header is merged with your page header, and you need a different colored logo.
Page Header Logo
Navigation Logo
If you have a Navigation Logo set, you can overwrite it inside this section as well.
Page Header – Navigation Logo

generate_header

generate_header

The generate_header hook is inside your header.php and is where your entire header element is hooked into.
It sits between the generate_before_header and generate_after_header hook.
You can use this hook to completely remove the

element from your page:
add_action( 'after_setup_theme','tu_remove_header' );
function tu_remove_header() {
remove_action( 'generate_header','generate_construct_header' );
}
Learn how to add PHP here.

Page Header Global Locations

Page Header Global Locations

We can apply Page Headers to global locations by navigating to Pages Headers > Global Locations.
This allows us to create a Page Header, and apply it to areas within WordPress that typically can』t be edited.
These areas include:

Posts page (blog)
Search results
404 template

Post Types – Single
We can also apply Page Headers to single posts within any public post type on our site.
By default, these post types include:

Posts
Pages
Media

Whenever a new post type is added – by you or a plugin – they will be added to this list.
For example, we can create a Page Header using dynamic template tags, then we can apply that single Page Header to every single post on our website. This allows us to create a global template for all of our posts which can include things like the post title, author, date, terms and even custom fields.
Post Types – Archives
If you have any custom post types that have an archives page – like your WooCommerce shop page – you can apply a Page Header to it as well.
By default, there are no archive pages like this in WordPress. However, as you add plugins, post types will appear in this section if available.

Backgrounds Overview

Backgrounds Overview

To use this add-on, first make sure GP Premium is installed, and that the add-on is activated.
Once activated, you can find the Background options in Customize > Background Images.
Once the Background Images panel is open, you』ll see a list of sections for each element on your website.
Backgrounds panel
Each section has background options for the selected element.
Backgrounds section
Repeat
Choose to repeat the image, usually good for patterns or gradients.

Repeat – horizontally and vertically
Repeat x – horizontally
Repeat y – vertically
No repeat – don』t repeat

Size (Auto)

Size (Auto) – The background image contains its width and height
100% Width – The background image will be 100% wide, and the height will adjust to keep the aspect ratio
Cover – Scale the background image to be as large as possible so that the background area is completely covered by the background image.
Contain – Scale the image to the largest size such that both its width and its height can fit inside the content area

Attachment

Attachment – The background scrolls along with the element
Fixed –  The background image is fixed and won』t move as you scroll
Local – The background scrolls along with the element』s contents
inherit – Inherits this property from its parent element

Position
Please refer to this article to understand the position field.

generate_sections_post_types

generate_sections_post_types

Note: This filter is included in GP Premium.
The generate_sections_post_types filter allows you to use the Sections add-on in a custom post type.
Example:
add_filter( 'generate_sections_post_types','generate_add_section_post_types' );
function generate_add_section_post_types() {
return array( 'page','post','yourposttype' );
}
Usage
Please refer to the Using Filters article to learn how to use this filter.