- This topic has 18 replies, 2 voices, and was last updated 3 years, 7 months ago by
Fernando.
-
AuthorPosts
-
September 19, 2022 at 5:56 pm #2347977
Heath
I am trying to get my header to look exactly like the screenshot with the menu on the very right, then the search to the left of that.
Site logo in tbe middle and just a few social icons on tbe left.
I’m totally lost.
September 19, 2022 at 6:16 pm #2347979Fernando Customer Support
Hi Heath,
From my end, this is what I see on mobile: https://share.getcloudapp.com/nOubD9ly
May we know what exact details need to be changed? Or are you seeing something different?
Let us know.
September 19, 2022 at 6:33 pm #2347985Heath
I think I hadn’t cleared my cache. That was from a separate theme and I’m wanting to do the same thing with generatepress
September 19, 2022 at 7:15 pm #2347998Fernando Customer Support
Can you share the link to where you want to implement this?
September 19, 2022 at 7:35 pm #2348006Heath
It’s in the private area
September 19, 2022 at 7:49 pm #2348010Fernando Customer Support
I see. Let’s add the Social Icons first.
Can you create a Block Element – Hook, hooked to
after_primary_menu, and then add the Social Icons through GenerateBlocks Buttons? Place the GB Buttons inside a Container Block as well so you can set the container to hide on desktop and tablet if you prefer.Let us know once you’ve done so.
September 19, 2022 at 8:16 pm #2348020Heath
I must be missing something. I’ve created a Block Element but it is not showing after_primary_menu in the location display rules.
September 19, 2022 at 8:20 pm #2348022Fernando Customer Support
It’s not in the Display rules.
after_primary_menucan be found in the Element Setting. See: https://share.getcloudapp.com/NQujKNloSeptember 19, 2022 at 8:24 pm #2348024Heath
Thanks. I feel silly for missing that. Getting this set up now. Is there a tiktok icon?
September 19, 2022 at 8:31 pm #2348029Fernando Customer Support
There isn’t by default. Perhaps you can try this?: https://fontawesome.com/icons/tiktok?s=solid&f=brands
September 20, 2022 at 5:20 am #2348332Heath
This step has been completed
September 20, 2022 at 8:39 pm #2349021Heath
I qddes the social icons. Are y’all able to assist with the next steps?
September 20, 2022 at 10:20 pm #2349056Fernando Customer Support
Great! Now, try adding
social-iconsto the class list of the Container Block holding the Icons.Then, add this CSS:
nav#mobile-header .gb-container.social-icons { order: -1; margin-right: auto; } nav#mobile-header .site-logo.mobile-header-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } nav#mobile-header .site-logo.mobile-header-logo img { width: 100px; height: auto !important; } nav#mobile-header > .inside-navigation { position: relative; padding-top: 30px; padding-bottom: 30px; } nav#mobile-header span.menu-bar-item.search-item a { padding: 0; }September 20, 2022 at 11:13 pm #2349086Heath
It seems that css didn’t quite work out. It did something funky.
September 20, 2022 at 11:26 pm #2349094Fernando Customer Support
I checked your site, and it seems social-icons hasn’t been added to the class list of the Container Block yet in your Element. Can you add that first?
-
AuthorPosts
- You must be logged in to reply to this topic.