- This topic has 7 replies, 4 voices, and was last updated 1 year, 11 months ago by Fernando.
-
AuthorPosts
-
April 30, 2022 at 1:10 pm #2205135William
Struggling with making logo displayed depend on post category or page ID. I’m no programmer but I think I understand PHP needed for conditional selection of logo image. But I don’t understand how to integrate it into website. I did a similar thing on an older site, code now appears in “Legacy Hooks | Before Header Content” and that works fine. But I don’t understand how to do it in development site which uses current version pf GP.
May 1, 2022 at 2:14 am #2205359DavidStaffCustomer SupportHi there,
try this:
1, Create a new Header Element in Appearance > Elements
2. On the Site Header tab, add your logo
3. Set the Display Rules to the specific location eg. Post Category -> Category Term or Page -> Page Name
May 1, 2022 at 6:48 am #2205494WilliamI’m trying to start simple here but not doing well …
Cleared my browser cache.
Under site identity I left the logo blank.
Under Appearance > Elements I added a Header.
On Site Header tab I added a header element, No Merge, Default location.
On the Page Hero tab I set Background Image to custom and selected a header image from my Media Library, other settings at default.
On Display Rules I set location Rules to Entire Site.
Result: No logo appears on any page.May 1, 2022 at 10:35 am #2205779YingStaffCustomer SupportHi William,
You didn’t mention there’s a logo been uploaded in the header element, can you make sure the logo is uploaded?
https://www.screencast.com/t/cgZBEzEh2MGkIf you want the background image to show, you’ll need to add something to the content area of the
page hero
tab, and set some top/bottom padding, eg.200px
.May 1, 2022 at 2:06 pm #2205863WilliamSo my screen doesn’t look like yours!
I don’t see the Site Logo or Mobile Header Logo fields. Link is to my screen for the Header element on my installation.
If it makes a difference, I’m developing using localhost.
May 1, 2022 at 7:00 pm #2205946Fernando Customer SupportHi William,
To make the Site Logo field appear, you’ll need to have a logo set in Appearance > Customize > Site Identity: https://share.getcloudapp.com/yAuKmY68
With that said, can you confirm if you have a logo set there?
Kindly let us know. 🙂
May 2, 2022 at 4:44 am #2206299WilliamThat was the problem! Now appears to work as I wish.
I had removed the logo in Appearance | Customize. After selecting a logo in Appearance the Site Logo selection box appears and follows the Display Rule I set.
Thanks! You GP folks provide great support.
May 2, 2022 at 4:54 pm #2207083Fernando Customer SupportYou’re welcome William! Glad to be of assistance! Feel free to reach out anytime you’ll need assistance with anything else. 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.