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
Sebastian
Attachments:
You must be
logged in to view attached files.