Search Results for child

11 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_hook_element_display

The generate_hook_element_display allows us to bypass the Display Rules, so we can enable or disable an Element under our own conditions. For example, if we want to assign a specific hook to Author Tom only: Another useful example is to set the hook to display on the parent page and all the child pages automatically: You […]

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

Building a Simple Mega Menu

GeneratePress doesn’t have a mega menu by default, simply because not everyone would use it and it adds a decent amount of CSS. However, creating a simple mega menu in GeneratePress isn’t very hard. You only need to add some CSS and then structure your menu correctly. First, add the CSS: @media (min-width: 769px) { […]

Centering Your Logo In the Navigation

There are two ways to center the logo and split the menu items in half using GeneratePress. The implementations of the two methods are quite similar so it maybe worth trying both and decide which effect you prefer.  Using the Header Using the header method allows you to control the logo height separate from the […]

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

Navigation Dropdown

The Navigation Dropdown option can be found in Appearance > Customize > Layout > Primary Navigation. This option allows you to choose how your navigation dropdown menu is initiated. Hover The hover option makes it so your dropdown menu appears when you hover over the parent menu item. Click – Menu Item This option makes […]

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