The generate_inside_header_class allows you to add to the classes in the .inside-header element.
Usage
This class works exactly like the core body_class filter.
Author 诗语
Site Title & Tagline
You can change or remove your site title and tagline by going to 「Appearance > Customize > Site Identity」.
You can change the values in each field, or check the checkbox to completely remove them.
Spacing Overview
The Spacing add-on in GP Premium adds various spacing and padding options in the Customizer.
To use this add-on, first make sure GP Premium is installed, and that the add-on is activated.
All of the Spacing options are added in Customize > Layout inside their respective Sections.
Please refer to the related articles below for information on specific options.
Video Overview
generate_navigation_class
The generate_navigation_class allows you to add to the classes in the #site-navigation element.
Usage
This class works exactly like the core body_class filter.
Adding CSS
Sometimes it will be necessary for you to add some custom CSS to your site to make it exactly how you want.
Simple CSS
The easiest way is to install Simple CSS. This plugin allows you to enter CSS into a nice editor in your Dashboard without having to create any files or do anything else complicated.
Another perk to this plugin is the CSS meta box you can find on each individual page. This allows you to add CSS that only applies to that one page, which can be incredibly useful.
To install it, simply go to Plugins > Add New in your Dashboard and search for Simple CSS.
Additional CSS
In WordPress 4.7, WordPress added a core way to add CSS to your site inside the Customizer which you can find in Customize > Additional CSS.
It should be noted that the CSS added in this area is theme-specific, so if you switch themes, you』ll lose your CSS.
It also doesn』t have the individual page meta box for page specific CSS.
Using a Child Theme
Of course, if you』re already using a child theme, you can use the style.css file.
If you』re only adding CSS to your website, a child theme is probably overdoing it a bit – you』re better off using one of the methods above.
Page Header Image
The Image section of the Page Header meta box allows you to upload a custom image, or set your featured image.
In most cases, you should use the Featured Image instead of uploading a custom image.
The custom image can be useful if you already have a featured image in use, and want a different image for your page header.
Page Header Image
Once you have a custom or featured image set, you』ll see options available to link the image and resize it.
Page Header Image – More Options
Increasing PHP Memory Limit
In some cases, hosts will set a limit on the amount of memory WordPress can use, and this can cause certain issues, like the Customizer not being able to save or even load (just shows a white screen).
There』s a couple different ways to increase your memory limit.
Easiest Method
Just ask your host – they』ll more than likely be happy to increase your memory limit.
Edit wp-config.php
The WordPress Codex has an article on this here.
Find your wp-config.php file in the root of your WordPress installation by using FTP.
Then add this to it:
define('WP_MEMORY_LIMIT', '128M');
generate_menu_class
The generate_menu_class allows you to add to the classes in the .menu element.
Usage
This class works exactly like the core body_class filter.
generate_right_sidebar_class
The generate_right_sidebar_class allows you to add to the classes in the #right-sidebar element.
Usage
This class works exactly like the core body_class filter.
Child Theme Issues
There』s a lot of instructions out there on how to create child themes, some of which are pretty dated.
There are certain things that are suggested to add to your child theme which will break functionality in GeneratePress, as these steps are done for you.
@import
Some instructions/pre-baked child themes come with the following line included. This will cause some options in the Customizer not to work, and should be removed from your child theme style.css file:
@import url("../generatepress/style.css");
Enqueing the parent style.css file
If the @import method isn』t there, a similar function to the following might be in your functions.php file. It does the same thing as the @import method above, and should be removed as GP handles it for you.
function example_enqueue_styles() {
wp_enqueue_style('parent-theme', get_template_directory_uri() .'/style.css');
}
add_action('wp_enqueue_scripts', 'example_enqueue_styles');
So once you』ve checked your child theme style.css and functions.php file and have confirmed neither of these methods exist, you』ll be good to begin customizing!