Site logo

Archived topic

When primary navigation element is disabled, center logo

3 replies · Started by Max on September 14, 2022

Viewing posts 1–4 of 4

Hi there!

Started using GeneratePress Premium/GenerateBlocks Pro today, and I'm really enjoying it so far!

I'm trying to re-create some landing pages, and I would like to center the logo IF the Primary Navigation element is disabled on that page. Bonus points if it would also be possible to disable that the logo links to the homepage on that page.

Is this possible somehow? Thanks!

- Max

Hi there,

Welcome and Thanks for the feedback - its much appreciated !

Theres a few ways to do this. Would i be able to see the landing page, so i can advise on the best method(s)

You can share any URL / passwords etc. in the Private Information field below

Here you go! 🙂

The page isn't done yet, but it gives you a good idea of what the final one will be like.

Cool :)
Use a Block Element:

https://docs.generatepress.com/article/block-element-hook/

Set the Element Type to Site Header. Then build the header with a GB Container Block and the GB Image block without the link. And then you can set the Display Rules > Locations to your Landing Pages.

This will then replace the theme header on those pages.

This archived topic is closed to new replies.