Hilfe!! Navigationsleiste im Arras Theme anpassen

  • Hallo, ich habe eine Frage an die Profis.

    Ich habe das Arras Theme für meine Seite gewählt. Gefällt mir auch wirklich gut. Da keine Navigationsleiste erscheint habe ich das Plugin Multi-level navigation ein gebunden
    ( </div> <?php if (function_exists('pixopoint_menu')) {pixopoint_menu();} ?>
    ). Es hat auch funktioniert. Leider ist die Navigationsleiste aber auf die ganz linke Seite gerutscht.
    Da ich blutiger Anfänger mit Wordpress und PHP bin, würde ich gerne wissen wie ich diese Sache lösen kann??? Die Seite http://www.ladysoulpromotion.at

    Ich würde auch gerne die Hntergrundfarbe der Beiträge ändern


    Hier der Code aus dem header.php

    Einmal editiert, zuletzt von maxe (1. August 2010 um 13:56)

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • Beim nächsten mal bitte:
    - Post nicht drei mal erstellen
    - Post in richtige Kategorie einordnen
    - Keine Minischrift auswählen
    - Code als solchen markieren!

    Oder einfach gesagt: Forenregeln beachten :roll:

    "Eine gut gestellte Frage ist schon halb beantwortet."

  • Hi,

    nimm ein Element welches alle anderen Elemente enthält (meistens #wrapper), gib dem eine Breite und zentriere horizontal mit margin:0 auto;.

    In der header.php öffnest du das Element direkt nach <body> und in der footer.php schließt du es wieder vor </body>.

  • Hallo Koslowski,

    ich habe es damit leider nicht geschafft. In einem englischsprachigen Forum hat mir ein Kollege geraten folgenden Code zu nehmen. Die Navigationsleiste ist jetzt dort wo sie hin soll aber kaum mehr sichtbar. Wie kann ich sie höher rauf bringen.

    Danke für deine Hilfe

  • Hier der Code, der mir geraten wurde. Wie du auf http://www.ladysoulpromotion.at siehst, ist es zwar in der Mitte aber fast verschwunden.

    Wie kann ich die Leiste mehr nach oben bringen?

    Danke

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php arras_document_title() ?></title>
    <?php arras_document_description() ?>
    <?php if ( is_search() || is_author() ) : ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php endif ?>
    <?php if ( ($feed = arras_get_option('feed_url') ) == '' ) : ?>
    <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url') ?>" title="<?php printf( __( '%s latest posts', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" />
    <?php else : ?>
    <link rel="alternate" type="application/rss+xml" href="<?php echo $feed ?>" title="<?php printf( __( '%s latest posts', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" />
    <?php endif; ?>
    <?php if ( ($comments_feed = arras_get_option('comments_feed_url') ) == '' ) : ?>
    <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( __( '%s latest comments', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" />
    <?php else : ?>
    <link rel="alternate" type="application/rss+xml" href="<?php echo $comments_feed ?>" title="<?php printf( __( '%s latest comments', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" />
    <?php endif; ?>
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php if ( !file_exists(ABSPATH . 'favicon.ico') ) : ?>
    <link rel="shortcut icon" href="<?php echo get_template_directory_uri() ?>/images/favicon.ico" />
    <?php else: ?>
    <link rel="shortcut icon" href="<?php echo get_bloginfo('url') ?>/favicon.ico" />
    <?php endif; ?>
    <?php
    wp_enqueue_script('jquery');
    wp_enqueue_script('jquery-ui-tabs', null, array('jquery-ui-core', 'jquery'), null, false);
    if ( is_home() || is_front_page() ) {
    wp_enqueue_script('jquery-cycle', get_template_directory_uri() . '/js/jquery.cycle.min.js', 'jquery', null, true);
    }
    if ( !function_exists('pixopoint_menu') ) {
    wp_enqueue_script('hoverintent', get_template_directory_uri() . '/js/superfish/hoverIntent.js', 'jquery', null, false);
    wp_enqueue_script('superfish', get_template_directory_uri() . '/js/superfish/superfish.js', 'jquery', null, false);
    }
    if ( is_singular() ) {
    wp_enqueue_script('comment-reply');
    wp_enqueue_script('jquery-validate', get_template_directory_uri() . '/js/jquery.validate.min.js', 'jquery', null, false);
    }
    wp_enqueue_script('jquery-equalheights', get_template_directory_uri() . '/js/jquery.equalheights.min.js', 'jquery', null, false);
    wp_head();
    ?>
    <script type="text/javascript">
    <?php @include 'js/header.js.php'; ?>
    </script>
    </head>
    <body <?php arras_body_class() ?>>
    <script type="text/javascript">
    //<![CDATA[
    (function(){
    var c = document.body.className;
    c = c.replace(/no-js/, 'js');
    document.body.className = c;
    })();
    //]]>
    </script>
    <?php arras_body() ?>
    <div id="header">
    <div id="branding" class="clearfix">
    <div class="logo clearfix">
    <?php if ( is_home() || is_front_page() ) : ?>
    <h1 class="blog-name"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
    <h2 class="blog-description"><?php bloginfo('description'); ?></h2>
    <?php else: ?>
    <span class="blog-name"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></span>
    <span class="blog-description"><?php bloginfo('description'); ?></span>
    <?php endif ?>
    </div>
    <div id="searchbar">
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    </div><!-- #branding -->
    </div> <!-- #header -->
    <?php arras_above_nav() ?>
    </div>
    <div id="nav"><br />
    <div id="nav-content" class="clearfix"><br />
    <?php
    if ( function_exists('pixopoint_menu') ){
    pixopoint_menu();
    } elseif ( function_exists('wp_nav_menu') ) {
    wp_nav_menu( array( 'sort_column' => 'menu_order', 'menu_class' => 'sf-menu menu clearfix') );
    } else { ?>
    <ul class="sf-menu menu clearfix">
    <li><a href="<?php bloginfo('url') ?>"><?php _e( arras_get_option('topnav_home') ); ?></a></li>
    <?php
    if (arras_get_option('topnav_display') == 'pages') {
    wp_list_pages('sort_column=menu_order&title_li=');
    } else if (arras_get_option('topnav_display') == 'linkcat') {
    wp_list_bookmarks('category='.arras_get_option('to pnav_linkcat').'&hierarchical=0&show_private=1&hid e_invisible=0&title_li=&categorize=0&orderby=id');
    } else {
    wp_list_categories('hierarchical=1&orderby=id&hide _empty=1&title_li=');
    }
    ?>
    </ul>
    <?php } ?>
    <ul class="quick-nav clearfix">
    <?php if ($feed == '') : ?>
    <li><a id="rss" title="<?php printf( __( '%s RSS Feed', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="<?php bloginfo('rss2_url'); ?>"><?php _e('RSS Feed', 'arras') ?></a></li>
    <?php else : ?>
    <li><a id="rss" title="<?php printf( __( '%s RSS Feed', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="<?php echo $feed; ?>"><?php _e('RSS Feed', 'arras') ?></a></li>
    <?php endif; ?>
    <?php $twitter_username = arras_get_option('twitter_username'); ?>
    <?php if ($twitter_username != '') : ?>
    <li><a id="twitter" title="<?php printf( __( '%s Twitter', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="http://www.twitter.com/<?php echo $twitter_username ?>/"><?php _e('Twitter', 'arras') ?></a></li>
    <?php endif ?>
    <?php $facebook_profile = arras_get_option('facebook_profile'); ?>
    <?php if ($facebook_profile != '') : ?>
    <li><a id="facebook" title="<?php printf( __( '%s Facebook', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="<?php echo $facebook_profile ?>"><?php _e('Facebook', 'arras') ?></a></li>
    <?php endif ?>
    </ul>
    </div><!-- #nav-content -->
    </div><!-- #nav -->
    <?php arras_below_nav() ?>
    <div id="wrapper">
    <?php arras_above_main() ?>
    <div id="main" class="clearfix">
    <div id="container" class="clearfix">

  • du hast da in deinem Quelltext zwei <br />.
    Die drücken deine navi nach unten. Entferne sie einfach. :wink:

    #suckerfishnav und suckerfishnav ul haben line-height:40px;. Wenn du das entfernst rutscht die Schrift auch etwas nach oben.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!