Note: This hook is included in the GP Hooks add-on inside GP Premium.
The generate_after_footer_content hook appears before the closing .site-footer element.
Usage
Please refer to the Using Hooks article to learn how to use this hook.
Author 詩語
generate_after_entry_header
Note: This hook is included in the GP Hooks add-on inside GP Premium.
The generate_after_entry_header hook appears after the .entry-header element.
Usage
Please refer to the Using Hooks article to learn how to use this hook.
Header Widget
By default, there』s a header widget area available to you in 「Appearance > Widgets」 or 「Customize > Widgets」.
You can put any kind of widget in this area and it will show up on the right side of your header area.
By default it』s set to float right and be 50% width of your header. You can adjust this with some CSS:
.header-widget {
float: right;
max-width: 50%;
}
Showing your header widget below other header elements on mobile
Sometimes people want to display the header widget below their other header elements while on mobile. This is achievable with some CSS:
@media (max-width: 768px) {
.inside-header {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-flex-flow: row wrap;
flex-flow: row wrap;
}
.site-branding {
-webkit-box-ordinal-group: 1;
-moz-box-ordinal-group: 1;
-ms-flex-order: 1;
-webkit-order: 1;
order: 1;
margin-left: auto;
margin-right: auto;
}
.site-logo {
-webkit-box-ordinal-group: 2;
-moz-box-ordinal-group: 2;
-ms-flex-order: 2;
-webkit-order: 2;
order: 2;
margin-left: auto;
margin-right: auto;
}
.header-widget {
-webkit-box-ordinal-group: 3;
-moz-box-ordinal-group: 3;
-ms-flex-order: 3;
-webkit-order: 3;
order: 3;
margin-left: auto;
margin-right: auto;
}
}
generate_footer_widget_5_tablet_width
The generate_footer_widget_5_tablet_width filter allows you to choose the width of your Footer Widget 5 area as seen on tablets.
Default (integer): 50
Usage
Please refer to the Using Filters article to learn how to use this filter.
generate_before_right_sidebar_content
Note: This hook is included in the GP Hooks add-on inside GP Premium.
The generate_before_right_sidebar_content hook appears inside the .inside-right-sidebar element.
Usage
Please refer to the Using Hooks article to learn how to use this hook.
generate_inside_navigation
The generate_inside_navigation hook appears inside the .inside-navigation element.
Usage
Please refer to the Using Hooks article to learn how to use this hook.
generate_after_footer_widgets
The generate_after_footer_widgets hook appears after the .footer-widgets element.
Usage
Please refer to the Using Hooks article to learn how to use this hook.
generate_after_content
Note: This hook is included in the GP Hooks add-on inside GP Premium.
The generate_after_content hook appears before the closing .inside-article element.
Usage
Please refer to the Using Hooks article to learn how to use this hook.
Finding the Customizer
The power behind GeneratePress is in the Customizer.
To find your options, login to your Dashboard, and go to 「Appearance > Customize」.
Secondary Navigation Location
The Secondary Navigation Location option can be found in Customize > Layout > Secondary Navigation. Prior to GP Premium 1.2.93, it was named Navigation Position.
This option allows you to move your primary navigation to different areas on your website.
Each name is pretty self explanatory – simply select each option and you』ll see your navigation move instantly.
Of course, if you choose either of the sidebar options, that sidebar must be view-able on the page to see your navigation.