- This topic has 12 replies, 3 voices, and was last updated 3 years, 7 months ago by
Ying.
-
AuthorPosts
-
September 21, 2022 at 10:55 pm #2350241
Scott Pringle
I have a hook element with HOOK NAME= inside_navigation. The block I am adding appears in front of the right justified primary menu. I was hoping that it would be above the primary menu and also right justified. All my CSS attempts have failed. Any help/suggestions would be appreciated.
https://eoshop.pringletech.com
—
ScottSeptember 21, 2022 at 11:08 pm #2350251Fernando Customer Support
Hi Scott,
Try
after_primary_menuhook instead.September 22, 2022 at 12:43 pm #2350992Scott Pringle
When I change the hook name to after_primary_menu then my block is still in line with the primary menu, but at the end instead.
September 22, 2022 at 12:59 pm #2350999Ying
StaffCustomer SupportAre you looking for something like this?
https://www.screencast.com/t/nalTnkcL1. If so, try add this CSS:
.top-menu { width: 100%; order: -1; } div#primary-menu { margin-left: auto; }2. Remove the orange background color from the container which contains the buttons, and set the orange background color for the button blocks.
September 22, 2022 at 1:25 pm #2351016Scott Pringle
Almost, the block is not justified to the right.
September 22, 2022 at 1:42 pm #2351040Ying
StaffCustomer SupportWhich block is not justified right?
September 22, 2022 at 1:47 pm #2351045Scott Pringle
The top orange button group that is above the primary navigation.
September 22, 2022 at 1:50 pm #2351049Ying
StaffCustomer SupportHave you done step 2 here: https://generatepress.com/forums/topic/inside-navigation-hook-postion-inserted-block/#post-2350999
September 22, 2022 at 1:55 pm #2351055Scott Pringle
Yes, the css has been added to the customizers additional CSS section.
September 22, 2022 at 4:04 pm #2351108Ying
StaffCustomer Support2. Remove the orange background color from the container which contains the buttons, and set the orange background color for the button blocks.
Have you done this? The CSS is in step 1.
September 23, 2022 at 7:15 am #2351621Scott Pringle
The element block is now shifted to the right. However, when logged in, the block is left justified. Strange, but I can live with this.
Thank you for your help!
September 23, 2022 at 11:24 am #2351909Ying
StaffCustomer SupportYou are welcome 🙂
September 23, 2022 at 11:25 am #2351911Ying
StaffCustomer SupportYou can also add this CSS to target the buttons block in the element and make the button blocks same height:
.gb-button-wrapper.gb-button-wrapper-bbbe3fdb { align-items: unset; } -
AuthorPosts
- You must be logged in to reply to this topic.