Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Header 2 customization
New Landing › How can we help? › Themeforest Theme Support › Dante › Header 2 customization
- This topic has 15 replies, 3 voices, and was last updated 10 years by Melanie – SUPPORT.
-
Posted in: Dante
-
January 21, 2014 at 2:48 pm #43864
Hi,
I would like to use header 2 like here http://dante.swiftideas.net/shortcodes/buttons-social-icons/?header=header-2.
Could you please tell me if and how I can achieve the following:
1) Top right where Login, English and Personal Shopper are I would like to put something else, like a menu with 3 links.
2) Under the logo you have the actual menu where Home, Features… Just this part I would like to make it another color. How can I achieve this please?
Thank you!
January 23, 2014 at 10:12 am #44257Hi Costin,
If you check /includes/sf-header.php lines 162-174, you’ll find the code for header-2:
} else if ($header_layout == "header-2") { $header_output .= '<header id="header" class="clearfix">'. "\n"; $header_output .= '<div class="container">'. "\n"; $header_output .= '<div class="row">'. "\n"; $header_output .= sf_logo('col-sm-4 logo-left'); $header_output .= '<div class="header-right col-sm-8">'.sf_aux_links('header-menu', FALSE, "header-1").'</div>'. "\n"; $header_output .= '</div> <!-- CLOSE .row -->'. "\n"; $header_output .= '</div> <!-- CLOSE .container -->'. "\n"; $header_output .= '</header>'. "\n"; $header_output .= '<div id="main-nav" class="sticky-header">'. "\n"; $header_output .= sf_main_menu('main-navigation', 'full'); $header_output .= '</div>'. "\n";
We’re considering extending the header options in a later update, but don’t have any plans as of yet.
– Ed
January 23, 2014 at 10:30 am #44261This reply has been marked as private.January 26, 2014 at 8:44 pm #44796Apologies, I missed the simplicity of #2. You can set the menu bar colour in the customiser, or use this custom css:
#main-nav { background: #ff9900; }
As for #1, check within the sf_aux_links() function, that is where the links are added.
– Ed
January 26, 2014 at 10:03 pm #44803Hi Ed,
1) Instead of having to modify the theme and do these changes everytime the theme gets updated could you please create a widget area for his space in header 2 type?
2) Many thanks, the code did exactly what I wanted. But could you please tell me what code to use for the same area when in the sticky mode?
Where in the color customizer can I do the same think as I haven’t found did?Thank you!
January 28, 2014 at 12:27 pm #453071) We’ll consider options for this.
2) You can add this custom css:
#header-section .is-sticky #main-nav.sticky-header { background: #ff9900; }
Currently it uses the header bg colour, so would need specific custom css to just set the menu to be a different colour.
– Ed
January 28, 2014 at 1:02 pm #45314Number 2 fixed, many thanks!
As for 1, any ETA please? If it won’t be very soon could you please give me more details on how to insert the links in that header area?
I’ve checked the sf_aux_links() function but don’t know how to actually do it.Thank you!
January 31, 2014 at 1:21 am #45926It won’t be that soon.
within that function you’ll find code such as:
if ($show_sub) { $aux_links_output .= '<li class="parent"><a href="#">'. __("Subscribe", "swiftframework") .'</a>'. "\n"; $aux_links_output .= '<ul class="sub-menu">'. "\n"; $aux_links_output .= '<li><div id="header-subscribe" class="clearfix">'. "\n"; $aux_links_output .= do_shortcode($sub_code) . "\n"; $aux_links_output .= '</div></li>'. "\n"; $aux_links_output .= '</ul>'. "\n"; $aux_links_output .= '</li>'. "\n"; }
For a custom item, add something like so below or above one of the existing items:
$aux_links_output .= '<li class="parent"><a href="#">'. __("Menu Item Name", "swiftframework") .'</a>'. "\n"; $aux_links_output .= '<ul class="sub-menu">'. "\n"; $aux_links_output .= '<li><div id="custom-menu-content" class="clearfix">'. "\n"; $aux_links_output .= 'Menu Item Content Code Here' . "\n"; $aux_links_output .= '</div></li>'. "\n"; $aux_links_output .= '</ul>'. "\n"; $aux_links_output .= '</li>'. "\n";
– Ed
January 31, 2014 at 11:02 am #45994This reply has been marked as private.February 1, 2014 at 3:51 pm #46163You won’t need most of that code then, just his for each link:
$aux_links_output .= '<li><a href="http://allojardinier.lu/contrat-entretien-jardin-luxembourg/">'. __("Contrat d'entretien jardin", "swiftframework") .'</a></li>'. "\n";
There is an option in the theme options to disable search.
To align the menu to the logo:
div.header-right { margin-top: 15px; }
– Ed
February 1, 2014 at 3:58 pm #46169Thank you, how to solve 3) Take out the search icon at the end (is there an option in Theme options for that?)
I’ve seen in theme options Logo top spacing and Logo bottom spacing. Are these option to reduce the white space above and below logo? Because in my case are not working. Should I use a custom code instead?
thank you!
February 4, 2014 at 12:11 pm #46654Theme Options > Header Options > Header Search – Search disabled.
They are to add extra spacing. Doesn’t look like you have much space to reduce in the header?
– Ed
February 4, 2014 at 12:23 pm #46661Search is ALREADY DISABLED but the magnifier is still there as you can notice!
Still, if I want to reduce those spaces below and above logo, how can I do it please?
Thank you!
February 4, 2014 at 1:32 pm #46672Thanks the Super Search Link. Theme Options > Super Search, disable it there.
For the spacing:
#header-section #header { padding: 15px 0; }
– Ed
February 4, 2014 at 1:41 pm #46675Awesome support!
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.