Adding CSS

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.

Site Title & Tagline

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.

Container Width

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.

License Key Activation Issues

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.

Child Theme Issues

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!

Increasing PHP Memory Limit

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');