New Landing How can we help? Themeforest Theme Support Dante Register new Navigation

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #215734
    sebw84
    Member
    Post count: 32

    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.
    #215784
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Here it looks perfect. Just check my attachment.
    Thanks
    Mohammad

    Attachments:
    You must be logged in to view attached files.
    #215791
    sebw84
    Member
    Post count: 32

    Sorry, I have commented out the mentioned code (// Link Partner-Login2). Now you can see the problem live. Please have a look again.

    #215800
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Try 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

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register