Search Results for child theme

10 results found

Using a Child Theme

A child theme is a theme that uses the core “parent” theme files, unless one of those files (in the root directory of the parent theme) are copied and added to the child theme. In that case, the copied file is used on your website so you can make changes to it without touching the […]

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 […]

generate_load_child_theme_stylesheet

GeneratePress loads the child theme stylesheet by default if a child theme is active. The generate_load_child_theme_stylesheet filter allows you to disable that so you can add your own child theme stylesheet.

Move the Comment Form Above Comments

The following comments.php file is used to move the comment form from below comments to above comments. First, install a child theme if you are not using one currently. Then download the comments.php file here and paste it into your child theme’s folder.

Adding Local Fonts

Sometimes you may want to host a font locally, instead of using a service like Google Fonts. This article will take you through the steps to do this. For the purpose of this article, we’ll be using Google Fonts. However, this process will work for any kind of font file you might have. Downloading our […]

generate_sidebars

Note: This hook has been removed starting in GeneratePress 2.0 as it was causing a PHP bottleneck and hurting performance. If you’re using a child theme with custom page templates, you will need to replace this hook with the new generate_after_primary_content_area hook, and add the sidebars function. You can see these new elements by viewing […]

Adding PHP

In some cases you may need to add a function to your website, either to hook something into the theme, or use a filter to change something in the theme. When working with PHP, you want to make sure you have access to your server via FTP or File Manager (through your hosting control panel). […]

Installing GeneratePress

Installing GeneratePress is super easy. First, login to your WordPress Dashboard. Next, go to “Appearance > Themes” in the menu on the left. Near the top, you’ll see a “Add New” button, click that button. In the “Search themes” bar, type: generatepress You’ll see GeneratePress and some of our child themes appear. Click “Install”, and […]

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 […]

Centering Your Logo In the Navigation

Centering the logo with menu items on both side is super easy with GeneratePress. First, make sure you are using the Flexbox structure of the theme. This can be checked in Customizer > General. Then you can either set the navigation location option to float left/right or use the navigation as a header option. Next, […]