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_page_header_default_size

generate_page_header_default_size

The generate_page_header_default_size filter allows you to change the default size of your featured images.
Default (string): full
The default available sizes are: full, large, medium and thumbnail.
You can create more sizes using the add_image_size() function.
Usage
Please refer to the Using Filters article to learn how to use this filter.

Top Bar Widget Area

Top Bar Widget Area

The top bar widget area sits on top of your header, and can hold as many widgets as you like.
You can find the widget area in Appearance > Widgets or Customize > Widgets.
In order for the below Customizer settings to appear, you must have at least one widget in the area.
Adjusting the layout
The top bar has a few layout settings which you can find in Customize > Layout > Top Bar.
Top Bar Width
Choose whether the outer container is full width or contained.
Top Bar Inner Width
Choose whether the inner container is full width or contained.
Top Bar Alignment
The initial alignment of your widgets. The widgets try to even themselves out for you.
If the alignment is set to left, the first widget you add will be on the left, the second widget you add will be on the right, the third widget you add will align back to the left and so on.
Spacing
The Spacing add-on adds four padding options to the widget area so you can choose the top, right, bottom and left padding. These options are also found in Customize > Layout > Top Bar.
Colors
The Colors add-on adds all of the color options you need for your widget area in Customize > Colors > Top Bar.
Background Images
The Backgrounds add-on adds all of the background image options you need in Customize > Background Images > Top Bar.
Secondary Navigation
If your secondary navigation is also set to be above the header, an option to merge the top bar widget area and secondary navigation is added in Customize > Layout > Top Bar.

generate_content_more_link_output

generate_content_more_link_output

The generate_content_more_link_output filter allows you to change the HTML markup of your read more link inside your blog post excerpts when using the more tag.
Default:
sprintf( '

%3$s

',
the_title_attribute( 'echo=0' ),
esc_url( get_permalink( get_the_ID() ) . apply_filters( 'generate_more_jump','#more-' . get_the_ID() ) ),
__( 'Read more', 'generatepress' )
);
Usage
For example, if we wanted to change the class of our paragraph surrounding the link, we could do this:
add_filter( 'generate_content_more_link_output','tu_change_content_more_link' );
function tu_change_content_more_link() {
return sprintf( '

%3$s

',
the_title_attribute( 'echo=0' ),
esc_url( get_permalink( get_the_ID() ) . apply_filters( 'generate_more_jump','#more-' . get_the_ID() ) ),
__( 'Read more', 'generatepress' )
);
}

generate_tag_list_output

generate_tag_list_output

The generate_tag_list_output filter controls the output of your tags as shown in your post meta along with your blog posts.
Usage
Please refer to the Using Filters article to learn how to use this filter.

wp_footer

wp_footer

Note: This hook is included in the GP Hooks add-on inside GP Premium.
The wp_footer hook is a standard hook in WordPress that appears before the closing element of your website.
Usage
Please refer to the Using Hooks article to learn how to use this hook.

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.

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.