Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Register new Navigation
New Landing › How can we help? › Themeforest Theme Support › Dante › Register new Navigation
- This topic has 3 replies, 3 voices, and was last updated 9 years by Rui Guerreiro – SUPPORT.
-
Posted in: Dante
-
September 23, 2015 at 12:44 pm #215734
Hello,
I need help with the registration of a new wordpress-menu.
Generally it works, but the problem ist that the menu is not correctly positioned in the frontend. In the template I have positioned logical. But it seems that isn’t the right solution. The menu is always positioned not depth enough, it is some levels above the targeted div-container. Please have a look on that issue.I have enclosed two files. First file shows the Code and my wish where to place the menu and the second file shows the defective frontend.
Here comes the customized code from the sf-header.php:
/* TOP HEADER
================================================== */
if (!function_exists(‘sf_top_header’)) {
function sf_top_header() {$options = get_option(‘sf_dante_options’);
$header_left_text = __($options[‘header_left_text’], ‘swiftframework’);
$top_header_output = ”;$top_header_output .= ‘<div id=”top-header”>’;
$top_header_output .= ‘<div class=”container”>’. “\n”;
$top_header_output .= ‘<div class=”th-left col-sm-6 clearfix”>’. “\n”;
$top_header_output .= ‘</div> <!– CLOSE .tb-left –>’. “\n”;
$top_header_output .= ‘<div class=”th-right col-sm-12 clearfix”>’. “\n”;
// Link Partner-Login
$top_header_output .= ‘<div class=”partner-login”>Partner-Login</div>’. “\n”;// Link Partner-Login2
$top_header_output .= ‘<div class=”partner-login2″>’;
wp_nav_menu( array(
‘theme_location’ => ‘partner-login’,
‘container_id’ => ‘menu-partner-login’
));
$top_header_output .= ‘</div>’;// Link Homepage
$top_header_output .= ‘<div class=”homepage-link”>Homepage</div>’. “\n”;
$top_header_output .= do_shortcode($header_left_text);
$top_header_output .= sf_aux_links(‘top-header-menu’);
$top_header_output .= ‘</div> <!– CLOSE .tb-right –>’. “\n”;
$top_header_output .= ‘</div> <!– CLOSE .container –>’. “\n”;
$top_header_output .= ‘</div>’;return $top_header_output;
}
}I hope this is not to specific. Thanks a lot!
Greetings
SebastianAttachments:
You must be logged in to view attached files.September 23, 2015 at 2:48 pm #215784Hi,
Here it looks perfect. Just check my attachment.
Thanks
MohammadAttachments:
You must be logged in to view attached files.September 23, 2015 at 3:09 pm #215791Sorry, I have commented out the mentioned code (// Link Partner-Login2). Now you can see the problem live. Please have a look again.
September 23, 2015 at 3:22 pm #215800Try to adjust the margin top with this code.
#header { margin-top: -587px!Important; }
But we can’t support customizations, is outside our support scope.
-Rui
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.