GP Header Elements Addon – Different Logo Links & Menus Per Page for GeneratePress

Set different logo links and navigation menus per page in GeneratePress.

100% free — no upsells. Integrates directly into the GP Element editor.

If you have ever wanted to change your site logo link or swap the navigation menu on specific pages in GeneratePress, you know there is no built-in way to do it.

GP Header Elements Addon solves this problem. It integrates directly into the GeneratePress Element editor, letting you set custom logo URLs and switch menus per page — all without writing a single line of code.

Built by RocketWP, this lightweight plugin adds zero frontend JavaScript and runs entirely through PHP filters, keeping your site fast and your PageSpeed scores high.

Why You Need Conditional Logo Links and Menus

GeneratePress is one of the most powerful and lightweight WordPress themes, but it treats your header as one-size-fits-all. Every page shares the same logo link (pointing to your homepage) and the same navigation menu. This works for simple sites, but breaks down quickly when you need:

  • A multi-brand site where different sections need different branding
  • A blog section with its own dedicated navigation menu
  • A landing page where the logo should link to a campaign URL
  • An e-commerce store where product pages need a shop-specific menu
  • A membership area with a simplified header for logged-in users
  • A multilingual site where each language needs a different navigation structure
  • A client project where the “About” page logo links to the client main website

GP Header Elements Addon makes all of this possible with a simple, intuitive interface inside the GeneratePress Element editor you already use.

Key Features

Logo Width Control NEW in 1.1

Set desktop and mobile logo widths per Header Element. Need a larger logo on your homepage and a smaller one on blog posts? Set different pixel widths for each, and the plugin injects responsive CSS automatically — no custom code needed.

Logo Link Override & New Tab

By default, clicking your site logo always takes visitors to your homepage. With GP Header Elements Addon, you can set a custom logo URL for any page that matches a Header Element display rules. Want your “About” page logo to link to your company main website? Simply enter the URL and save.

Menu Switching

Replace your primary navigation menu and mobile slide-out menu on matching pages. Create a dedicated “Blog Menu” and assign it to all blog posts. Create a “Shop Menu” for your WooCommerce pages. The possibilities are endless.

Seamless GeneratePress Integration

The plugin adds a clean, tabbed “Header Rules” metabox directly inside the GP Element editor — right below the Display Rules section. No separate settings page, no confusing options panels. Everything lives where you expect it.

Zero Frontend JavaScript

Unlike many header customization plugins that inject JavaScript into your frontend, GP Header Elements Addon works entirely through server-side PHP filters. This means:

  • No additional HTTP requests
  • No render-blocking scripts
  • No impact on Core Web Vitals
  • Clean, semantic HTML output

Built on GP Display Rules

GP Header Elements Addon reuses GeneratePress Premium existing Display Rules engine. Whatever location, post type, taxonomy, or user role conditions you have already set for your Header Element — those same rules determine when your logo link and menu overrides take effect. No need to configure conditions twice.

Performance Optimized

We have built this plugin with performance as a priority:

  • 1 extra database query per page request (0 when cached)
  • Less than 20ms page load time impact
  • Under 1MB additional memory usage
  • Request-level caching with persistent object cache support

WooCommerce, WPML and Polylang Compatible

The plugin works out of the box with WooCommerce, WPML, and Polylang. Set different headers for your shop pages, cart, checkout, and account areas. Language-specific menus are fully supported.

How It Works

  1. Install and activate the plugin from your WordPress dashboard.
  2. Go to Appearance → Elements and create or edit a Header Element.
  3. Scroll down to the new “Header Rules” metabox below Display Rules.
  4. Switch to the “Logo Link” tab and enter your custom URL.
  5. Switch to the “Menu Override” tab and select replacement menus for Primary and Mobile navigation.
  6. Set your Display Rules in the metabox above to control which pages these rules apply to.
  7. Save the Element and visit the matching page to see your changes live.

Real-World Use Cases

Multi-Brand Corporate Site

Your company owns multiple brands. Each brand section has its own Header Element with a custom logo link pointing to the brand dedicated website, and a brand-specific navigation menu.

Blog with Custom Navigation

Your blog section needs a different menu that highlights categories, popular posts, and archives — separate from your main site navigation. Create a Header Element targeting all blog posts with a custom blog menu.

WooCommerce Shop Header

Your shop pages need a menu with product categories, cart link, and account pages. Your blog pages need a completely different menu. GP Header Elements Addon lets you assign different menus to each section.

Landing Page Campaigns

Create dedicated landing pages where the logo links to your campaign URL instead of the homepage. Replace the main navigation with a simplified menu that reduces distractions and improves conversion rates.

Client Sites

Building sites for clients? Give each section its own identity without installing bloated page builder addons. The “About” page logo can link to the client corporate site while the rest of the site functions normally.

Requirements

  • WordPress 6.3 or higher
  • PHP 7.4 or higher
  • GeneratePress theme (free)
  • GeneratePress Premium (required for Header Elements)

Features

GP Header Elements Addon includes logo link override and menu switching with Primary and Mobile menu locations — using GP built-in Display Rules for page matching.

Installation

  1. Download the plugin ZIP file.
  2. Go to Plugins → Add New → Upload Plugin in your WordPress admin.
  3. Upload the ZIP file and click Install Now.
  4. Click Activate.
  5. Navigate to Appearance → Elements to start configuring your header rules.

Frequently Asked Questions

Does this work with the free version of GeneratePress?

The plugin itself works with the free GeneratePress theme, but Header Elements are a GeneratePress Premium feature. You will need GP Premium to create and manage Header Elements.

Will this slow down my site?

No. GP Header Elements Addon adds at most one database query per page view (zero when using persistent object caching). There is zero frontend JavaScript, no additional CSS on the frontend, and the total page load impact is under 20ms.

Can I use this with WooCommerce?

Yes. The plugin is fully compatible with WooCommerce and supports shop, product, cart, checkout, and account pages through GP Display Rules.

Does it work with caching plugins?

Yes. All overrides happen server-side before the page HTML is generated, so they work perfectly with page caching plugins like WP Rocket, W3 Total Cache, and server-level caching solutions including Nginx FastCGI cache and Redis object cache.

Can I use different menus for mobile vs desktop?

The plugin supports separate overrides for Primary Menu and Mobile Menu. You can set a different menu for mobile visitors or leave the mobile override empty to use the same menu on all devices.

Changelog

1.1 — Current Release

  • Logo link override with new-tab open option
  • Desktop and mobile logo width controls per Header Element
  • Primary and mobile menu switching with dropdown selectors
  • GP Display Rules integration for conditional logic
  • Admin notice when GP Premium is not active
  • WooCommerce, WPML, and Polylang integrations
  • Chinese (zh_CN) translation included
  • Request-level and persistent object caching

1.0.0 — Initial Release

  • Tabbed Header Rules metabox in GP Element editor
  • Logo link override with URL input and clear button
  • Primary and mobile menu switching with dropdown selectors
  • GP Display Rules integration for conditional logic
  • GeneratePress_Conditions compatibility layer
  • WooCommerce, WPML, and Polylang integrations
  • Request-level and persistent object caching
  • Chinese (zh_CN) translation included