Using a Different Menu on Mobile

Using a Different Menu on Mobile

In some cases, you may want to use a different menu on mobile than you use on desktop.

To do this, we』ll need to activate our Mobile Header feature.

Once you』ve turned on the Mobile Header, we need to create a new menu location. We can do that with this function:

add_action( 'init', function() {
register_nav_menu( 'mobile-menu', __( 'Mobile Menu' ) );
} );

Then we have to tell the Mobile Header to use this new menu location with a filter:

add_filter( 'generate_mobile_header_theme_location', function() {
return 'mobile-menu';
} );

These functions can be added using one of the methods explained here.

Now we can go into Appearance > Menus and create a new menu for our mobile site.

Once you』ve created your menu, you can apply it to the new Mobile Menu menu location.

Generating Your Invoice

Generating Your Invoice

Once you purchase, you have the ability to generate your own invoice from inside your account.

First, login to your account here.

Then, click the Generate Invoice link in your Purchase History.

From there, you can fill out all of your required information and generate your invoice.

wp_head

wp_head

Note: This hook is included in the Hooks Element add-on inside GP Premium.
The wp_head hook is a standard hook in WordPress, and should only includes things that go into the section of your website.
Things like tags, Google Analytics and stylesheets can go in this hook.
Usage
Please refer to the Using Hooks article to learn how to use this hook.

Uploading Translations

Uploading Translations

GeneratePress (theme)

The theme translations can be found over here on WordPress.org.

Once a translation reaches 95% approved, WordPress will ship it directly to your Dashboard within a few hours. Sometimes, you need to go to Dashboard > Updates in your Dashboard and click the Update Translations button.

If the translation isn』t over 95% approved and you want to add it anyways, you can download the file.

Click on your language name.Click on 「GeneratePress」

At the bottom, click Export. Doing so will download a file for you.

Make sure the file has this naming structure: generatepress-xx_XX where xx_XX is your language. For example, Spanish would be generatepress-es_ES.

Now access your WordPress site via FTP or File Manager, and navigate to wp-content/languages/themes and upload your file.

GP Premium (plugin)

GP Premium translations can be found here.

To download a translation, click on your language and click the Export link at the bottom.

This will download a file for you, which already has the correct filename.

Now access your WordPress site via FTP or File Manager and navigate to wp-content/languages/plugins and upload your file.

Navigation Drop Point

Navigation Drop Point

When using a 「floated」 navigation (left or right), you can run into an issue on smaller screens where your navigation drops down below your site title/logo.

Issue with floated navigation on smaller screens

We can fix this with our Navigation Drop Point feature, found in Customize > Layout > Primary Navigation.

First, find the width at which your navigation drops down like this. One way to do is to use Chrome and open Developer Tools (right-click + Inspect). Now resize your browser, and you』ll see the width in the top right-hand corner.

Now set the width at which point you want things to drop down and center.

Now resize your browser and you』ll see it working.

generate_page_hero_terms_separator

generate_page_hero_terms_separator

Note: This filter requires the Header Element add-on in GP Premium.

The generate_page_hero_terms_separator filter allows us to alter or remove the comma between each category/tags inside Header Element.

Example

The PHP snippet below removes the comma:

add_filter( 'generate_page_hero_terms_separator', function() {
return '';
} );

WordPress Hosting

WordPress Hosting

WordPress hosting is necessary for every self-hosted WordPress site. It acts as a home for your website and gives your domain name somewhere to point to so people can actually reach your site.

The below are a few of our favorite hosting companies. The links are affiliate links, but we actually use and recommended all of these companies, and we know they work great with WordPress and GeneratePress.

Kinsta is premium WordPress hosting. We use them here at GeneratePress, and everything they do is next level. Their servers are incredibly fast, and their support is better than any other hosting company by a decent margin. They aren』t as affordable as the other options on this page, but if you can afford them, they』re worth every penny.

Learn More

If you』re looking for a solid WordPress host, SiteGround is worth looking at. They offer a variety of plans, including very affordable ones for people just starting out. They have a great reputation among the WordPress community.

Learn More

Cloudways is another quality option when it comes to hosting. They are a managed host where you can choose your own type of server from providers like Digital Ocean (and many others). This gives you full control over your server specs, but allows them to take care of all of the actual server maintenance.

Learn More