- This topic has 22 replies, 3 voices, and was last updated 6 years, 11 months ago by Tom.
-
AuthorPosts
-
May 16, 2017 at 4:23 am #318625Blake
In addition, the Inner Header Width is to remain contained as its important that the other items in the header format correctly.
May 16, 2017 at 8:35 am #318700TomLead DeveloperLead DeveloperCan you link me to the actual page? It’s too difficult to guess the CSS needed using screenshots.
Also, All of that sticky nav code shouldn’t be necessary as the Menu Plus add-on has a much more robust sticky navigation feature.
May 16, 2017 at 8:50 am #318703BlakeI have amassed quite a bit of information here. Posted earlier, http://www.modifieddna.net. This is the website from the screen shots.
May 16, 2017 at 9:11 am #318723TomLead DeveloperLead DeveloperI see what you’re going for, and it’s definitely complex. Using big margins etc.. probably isn’t the best method as you’ll run into all kinds of issues on mobile.
Wouldn’t something like this be a more efficient use of space?: https://www.screencast.com/t/qpGaLBxXrNep
It’s also 100% achievable in GP with no custom code whatsoever.
May 16, 2017 at 9:15 am #318725TomLead DeveloperLead DeveloperAs for your question here: https://generatepress.com/forums/topic/how-to-modify-navigation-block/#post-318616
You could set the inner container to full width in Customize > Layout > Header.
May 16, 2017 at 10:56 am #318771BlakeThank you for the illustration. What you have created is essentially a single row layout, where all elements are inline. That layout does work best for responsive design as the majority of the themes I have seen have a similar layout. Although it does not meet the requirements for the design I have described in great detail. For this project it requires placing multiple text, and images elements above the navigation menu items while in line with the logo. As you mentioned I had to use quite a bit of padding to orientate “Social Icons Here,” “Call Us Text here,” and navigation menu items in the right direction. Then I had planned to use media css, to re adjust the padding for Ipad and phone resolutions. I am not seeing how that part is overly complex, unless you mean its outside of the default options.
“You could set the inner container to full width in Customize > Layout > Header.”
I wanted to avoid this option as I specifically mentioned the need for the inner header to be contained / fluid-fixed. Changing it to full width would then put all the contained elements on the page out of alignment with the header area. There are many websites that use a combination of full width and fixed blocks. I suppose the problematic area is that the Nav resides in the Header. The Header’s contained css is not allowing the Nav menus full width.
What about a z-index adjustment to the navigation block? Could that property be used to fill the gap to the left of the navigation block while moving that element out of the contained header space? Any more ideas?
May 16, 2017 at 11:09 am #318779BlakeLooked through several others sites to compare and noticed a missing CSS element.
I added:
.nav-float-right #site-navigation {right:0;left:0;}
That fixed the issue. Now the Navigation Width is going Full.
May 16, 2017 at 2:59 pm #318901TomLead DeveloperLead DeveloperInteresting, I’m glad you found a solution.
Instead of using all of that spacing, you could do this:
.callus { display: inline-block; margin: 10px 70px 10px; } .socialicons { display: inline-block; }
-
AuthorPosts
- You must be logged in to reply to this topic.