Beiträge von reap705

    Hallo Katja,

    zunächst solltest du dich mit der Funktion [FONT=courier new]wp_nav_menu[/FONT] beschäftigen.

    Um das Prozedere mal kurz zu beschreiben: in der [FONT=courier new]functions.php[/FONT] deines Themes richtest du die Funktion für ein weiteres Menü ein, etwa so:

    Code
    if ( function_exists( 'register_nav_menu' ) ) {
        register_nav_menu( 'top-menu', 'Top Menu' );
    }

    Evtl. ist dort bereits ein ähnlicher Aufruf vorhanden. Diesen musst du dann nur noch mit deinem zweiten Menü erweitern (Funktion heißt dann [FONT=courier new]'register_nav_menus'[/FONT]).

    Das Menü selbst bindest du in die [FONT=courier new]header.php[/FONT], am besten innerhalb der Klasse [FONT=courier new]site-header[/FONT] ein:

    PHP
    <?php
         $defaults = array(
            'theme_location'  => 'top-menu',
        );
    
    
        wp_nav_menu( $defaults );
    ?>

    Im Backend unter "Desgin" -> "Menü" kannst du dann die Menüpunkte dem Menü hinzufügen.

    Je nachdem wie dein Theme vorbereitet ist, musst du das Menü im Stylesheet evtl. noch anpassen.

    In der [FONT=courier new]style.css[/FONT] deines Themes:

    Code
    [FONT=Consolas]#header .user {[/FONT]
    [FONT=Consolas]    [COLOR=#C80000]width[/COLOR]: [COLOR=#3200FF]400px[/COLOR];[/FONT]
    [FONT=Consolas]    [COLOR=#C80000]color[/COLOR]: [COLOR=#07909A]#fff[/COLOR];[/FONT]
    [FONT=Consolas]    [COLOR=#C80000]margin-right[/COLOR]: [COLOR=#3200FF]10px[/COLOR];    [/FONT]
    [FONT=Consolas]}[/FONT]

    Entweder löschen oder ausblenden mit

    Code
    [FONT=Consolas]#header[/FONT][FONT=Consolas] .[/FONT][FONT=Consolas]user[/FONT][FONT=Consolas] {
    [/FONT][FONT=Consolas]    [COLOR=#C80000]width[/COLOR]: [COLOR=#3200FF]400px[/COLOR];[/FONT]
    [FONT=Consolas]    [COLOR=#C80000]color[/COLOR]: [COLOR=#07909A]#fff[/COLOR];[/FONT]
    [FONT=Consolas]    [COLOR=#C80000]margin-right[/COLOR]: [COLOR=#3200FF]10px[/COLOR];    [/FONT]
    [FONT=Consolas]    [COLOR=#c80000]display: none[/COLOR];    
    }[/FONT]

    Ja, ist unglaublich, dass du in einem Forum innerhalb von drei Stunden keine Antwort bekommst :roll:

    Das Formular hört standardmäßig auf [FONT=courier new]#respond[/FONT]. Du könntest mit dem Pseudoelement [FONT=courier new]:target[/FONT] arbeiten, etwa so:

    Code
    #respond {
    display: none;
    }
    
    
    #respond:target {
    display: block;
    }

    Im Template baust du das so ein:

    HTML
    <a href="<?php the_permalink() ?>/#respond">Kommentieren</a>

    Hier ist ein [FONT=courier new]border-radius[/FONT] in der style.css deines Themes definiert:

    Code
    [FONT=Consolas].entry-content img,[/FONT]
    [FONT=Consolas].comment-content img,[/FONT]
    [FONT=Consolas].widget img,[/FONT]
    [FONT=Consolas]img.header-image,[/FONT]
    [FONT=Consolas].author-avatar img,[/FONT]
    [FONT=Consolas]img.wp-post-image {[/FONT]
    [FONT=Consolas]    [COLOR=#007400]/* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */[/COLOR][/FONT]
    [FONT=Consolas]    [COLOR=#C80000]border-radius[/COLOR]: [COLOR=#3200FF]3px[/COLOR];[/FONT]
    [FONT=Consolas]    [COLOR=#C80000]box-shadow[/COLOR]: [COLOR=#3200FF]0[/COLOR] [COLOR=#3200FF]1px[/COLOR] [COLOR=#3200FF]4px[/COLOR] [COLOR=#07909A]rgba[/COLOR]([COLOR=#3200FF]0[/COLOR], [COLOR=#3200FF]0[/COLOR], [COLOR=#3200FF]0[/COLOR], [COLOR=#3200FF]0.2[/COLOR]);[/FONT]
    [FONT=Consolas]}[/FONT]

    Hallo,

    bin gerade dabei ein Theme für Sprachdateien vorzubereiten. Nun stolpere ich über Optionen in Selectfeldern der Theme Optionen. Dort klappt die Übersetzung nicht, ich bekomme immer den englischen Standard angezeigt.

    Die Select-Option sieht z.B. wie folgt aus:

    PHP
    $select_options_post_columns = array(
        '0' => array(
      'value' =>    '0',
      'label' => __('3 columns (default)','meine_textdomain')
        ),
        '1' => array(
      'value' =>    '1',
      'label' => __('2 columns','meine_textdomain')
        )
    );

    Jemand eine Ahnung, woran das liegt?

    Das Problem hatte ich vor einiger Zeit auch. Probier es mal hiermit (in die [FONT=courier new]functions.php [/FONT]einfügen):