The generate_footer_class allows you to add to the classes in the .site-footer element.
Usage
This class works exactly like the core body_class filter.
Author 诗语
generate_left_sidebar_class
The generate_left_sidebar_class allows you to add to the classes in the #left-sidebar element.
Usage
This class works exactly like the core body_class filter.
License Key Activation Issues
So you』ve installed GP Premium, and now you』re trying to activate your license so you can receive automatic updates.
You add your license key to the field, and click the 「Update」 button, but your license key doesn』t activate.
If you don』t get a specific error, this can happen when your hosting isn』t allowing external communication with other web servers.
To fix this issue, please contact your host and ask them to allow your WordPress installation to communicate with https://generatepress.com using the wp_remote_post function.
They may have to turn PHP cURL on.
generate_main_class
The generate_main_class allows you to add to the classes in the #main element.
Usage
This class works exactly like the core body_class filter.
generate_content_class
The generate_content_class allows you to add to the classes in the #primary element.
Usage
This class works exactly like the core body_class filter.
Container Width
You can adjust the width of your overall site container inside Appearance > Customize > Layout > Container.
You can use the slider to adjust the width in pixels, or directly input your number into the field.
You can set it to a percentage using CSS, however I typically recommend choosing a really high pixel value like 2000 if you』re looking for a 100% width website. Since GeneratePress is responsive, it will be 100% wide on most screens at that width.
Secondary Mobile Menu Label
Note: This option requires the Secondary Navigation add-on in GP Premium.
On mobile, your secondary navigation collapses into a mobile menu with the universal 3 bars icon (for menus) and the text 「Menu」.
This text can be adjusted in Customize > Layout > Secondary Navigation.
generate_header_class
The generate_header_class allows you to add to the classes in the #site-header element.
Usage
This class works exactly like the core body_class filter.