I want to fit more items across the screen in the top nav, I can reduce the font size, but I also want to reduce the space between items as they appear horizontally across the screen.
Item Item Item Item
to:
Item Item Item Item
Official response from NationBuilder Support
The exact answer to this question will vary depending on your site's theme, but broadly speaking you'll want to:
- isolate the individual CSS selector that is affecting the width of your top-nav buttons; and
- change the relevant styles on that selector (likely its width or padding).
You'll be able to identify that selector using your browsers developer tools and edit in your theme's CSS file. If you're having difficulty with either of those two steps, I would recommend reaching out to one of our certified NationBuilder Experts.
Share this post
Showing 18 reactions
Sign in with
Hines Digital
Certified Architect
Certified Expert
Act for America
Greg Evers for Congress
Marston Digital Solutions
Certified Architect
Certified Expert
Act for America
Greg Evers for Congress
Marston Digital Solutions
Certified Architect
Certified Expert
Act for America
Greg Evers for Congress
Marston Digital Solutions
Certified Architect
Certified Expert
You’ll need to into that file and add this liquid.
Not including the code tags.
Act for America
Greg Evers for Congress
Marston Digital Solutions
Certified Architect
Certified Expert
You’ll need to into that file and add this liquid.
{% if page.slug == ‘donate’ %}
.headline-bar {
display: none;
{% endif %}
Are you able to help me understand something else, on the donate page, there’s a bar that has donate on it, I wont it gone. Wouldn’t I make changes to the template file for that donate page.
Act for America
Greg Evers for Congress
Marston Digital Solutions
Certified Architect
Certified Expert
…
li {
the padding style is actually below that in
a {
Act for America
Greg Evers for Congress
Marston Digital Solutions
Certified Architect
Certified Expert
Act for America
Greg Evers for Congress
Marston Digital Solutions
Certified Architect
Certified Expert
Act for America
Greg Evers for Congress
Marston Digital Solutions
Certified Architect
Certified Expert
Act for America
Greg Evers for Congress
Marston Digital Solutions
Certified Architect
Certified Expert
Find the nav li element in the theme scss and reduce the padding.
Example:
nav li a, .subnav li a {
display: block;
width: 100%;
height: 100%;
color: #262261;
padding: 0 15px;
}
nav li a, .subnav li a {
display: block;
width: 100%;
height: 100%;
color: #262261;
padding: 0 5px;
}
That will create the desire effect.