Hi, first of all: Great theme!
How do I center the (sf-)menu items, while keeping the home and nav button (the one to the right of the home button) left-aligned?
In other words, in the example below, I want to keep the home button and the nav button where they are, while center-aligning “lifestyle” “phones” etc..
Thanks for helping me out!
hi,
the menu is made with <li> elements.
you can move all of theme using:
.menu-header-container {
display: table;
float: none !important;
margin-left: auto;
margin-right: auto;
}
here : http://screencast.com/t/2pdgwMm0TUN
in Advance CSS you can use this css only on certain devices.
Thanks for you message.
Radu A.
Hi,
You can’t via CSS.
1.
<div class="row-fluid td-menu-header">
<div class="span3 hide-mobile">
<?php
wp_nav_menu(array(
'theme_location' => 'my-menu',
'menu_class'=> 'sf-menu',
'fallback_cb' => 'td_wp_page_menu',
'walker' => new td_tagdiv_walker_nav_menu()
));
?>
</div>
like here: http://screencast.com/t/BqiMkB5Sb
2. 'my-menu' => __( 'My Menu', TD_THEME_NAME)
like here: http://screencast.com/t/2bVntzFIS5Q
3. Add this CSS in theme panel -> Custom CSS
@media (max-width: 767px) {
.span3.hide-mobile {
display: none;
}
}
.hide-mobile {
padding-left: 15px;
}
.td-menu-wrap #td-top-menu {
padding-left: 0px;
}
@media (min-width: 1200px) {
.hide-mobile {
padding-left: 48px;
}
}
.td-menu-header .span8 {
margin-left: 0px;
}
.menu-header-container {
display: table;
float: none !important;
margin-left: auto;
margin-right: auto;
}
4. Go to Appearance -> Menu
Use this menu for that 2 icons and header menu for the rest of the menu.
Result: http://screencast.com/t/XmkHInjHHvv
Thanks!
hi,
there are 2 pixel on the right side of the menu : http://screencast.com/t/tKcvV72f0
use this css :
#menu-hovedside{
padding-left: 1px;
}
here: http://screencast.com/t/quwcmwxeCH
will become : http://screencast.com/t/DtYdqY3v
Thanks for you message.
Radu A.
hi,
this css :
.menu-item-37076 {
position: absolute; left: 260px;}
}
will make the tag with the class ‘menu-item-37076’ to always have the distance from left side of the screen 260px. I think using css padding or margin rule in what you need, like:
#menu-hovedside{
padding-left: 1px;
}
here is some doc about padding : http://www.w3schools.com/css/css_padding.asp
Hi,
The solution provided above work for me https://forum.tagdiv.com/topic/center-menu-items/#post-8832
Leave it and when the site is live reply us and we will provide you a CSS
Thanks!
Website is finally online (www.amerikanskpolitikk.no), behind password wall. Send me an e-mail and I’ll give it to you.
I have an issue with the menu_category (the item on the far left side in the pics above). I’m given the opportunity “Click here – to select or create a menu”, but nothing happens when I try changing it.
Are
Hi,
Go to Appearance -> Menus -> Manage locations and see if you have set a menu for each section.
Send the details via email at contact@tagdiv.com
Thanks!

