Beiträge von Dietmar78

    kann dir nicht wirklich helfen, aber vlcht wäre es ein Versuch, die if-Anweisung zu entfernen - schon mal probiert?

    [COLOR=#0000BB][FONT=monospace]<?php [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]get_theme_mod[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'site_logo'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) : [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]?>[/FONT][/COLOR][COLOR=#000000][FONT=monospace] [/FONT][/COLOR]
    [COLOR=#000000][FONT=monospace]<a href="[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]<?php [/FONT][/COLOR][COLOR=#007700][FONT=monospace]echo [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]esc_url[/FONT][/COLOR][COLOR=#007700][FONT=monospace]( [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]home_url[/FONT][/COLOR][COLOR=#007700][FONT=monospace]( [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'/' [/FONT][/COLOR][COLOR=#007700][FONT=monospace]) ); [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]?>[/FONT][/COLOR][COLOR=#000000][FONT=monospace]" title="[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]<?php bloginfo[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'name'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]); [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]?>[/FONT][/COLOR][COLOR=#000000][FONT=monospace]"><img class="site-logo" src="[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]<?php [/FONT][/COLOR][COLOR=#007700][FONT=monospace]echo [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]esc_url[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]get_theme_mod[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'site_logo'[/FONT][/COLOR][COLOR=#007700][FONT=monospace])); [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]?>[/FONT][/COLOR][COLOR=#000000][FONT=monospace]" alt="[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]<?php bloginfo[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'name'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]); [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]?>[/FONT][/COLOR][COLOR=#000000][FONT=monospace]" /></a> [/FONT][/COLOR]


    Ich habe bereits einiges herumprobiert, aber leider konnte ich im Editor noch nicht die entsprechende Stelle finden, um nur für das Kommentarfeld die Schriftart zu ändern.

    Man sieht anhand des Names des entsprechenden style-Elements auf den ersten Blick, wo in der style.css man diese Anpassung vornehmen kann - wenn man Rechtsklick>Untersuchen benutzt.

    Ich denke, dass muss über die style.css gemacht werden. Geh mal in deinem Browser (Chrome) mit der Maus auf die Überschrift und im Anschluss Rechtsklick>Untersuchen.

    Dir wird dann der Quelltext angezeigt und du kannst Änderungen ausprobieren. Dort findest du das style-element aus der style.css, das diesen Bereich steuert. Füge dort mal "color: #HTML-FARBCODE;" ein oder z.B. "color: #515151;" und probiere ein bisschen aus.

    Dannach kannst du den gewünschten Wert an die passende Stelle in die style.css-Datei packen - am einfachsten über dein WP-Backend unter Design>Editor.

    [COLOR=#2C3E50][FONT=&amp]Hallo Leute,[/FONT][/COLOR]
    [COLOR=#2C3E50][FONT=&amp]
    [/FONT][/COLOR]
    [COLOR=#2C3E50][FONT=&amp]ich möchte für die Breadcrumbs meiner Seite den Titel einer URL auslesen. Die URL wird per php erzeugt bzw. wird die momentane URL per php gekürzt - von dieser neuen URL brauche ich den Titel als Name für den Link (und auch als title-tag). Hier der Code:

    [/FONT][/COLOR]

    PHP
    <a href=" [COLOR=blue]<?php $path [/COLOR][COLOR=green]= [/COLOR][COLOR=blue]parse_url[/COLOR][COLOR=green]([/COLOR][COLOR=blue]$_SERVER[/COLOR][COLOR=green][[/COLOR][COLOR=red]'REQUEST_URI'[/COLOR][COLOR=green]], [/COLOR][COLOR=blue]PHP_URL_PATH[/COLOR][COLOR=green]);
    [/COLOR][COLOR=blue]$newPath [/COLOR][COLOR=green]= [/COLOR][COLOR=blue]implode[/COLOR][COLOR=green]([/COLOR][COLOR=red]'/'[/COLOR][COLOR=green], [/COLOR][COLOR=blue]array_slice[/COLOR][COLOR=green]([/COLOR][COLOR=blue]explode[/COLOR][COLOR=green]([/COLOR][COLOR=red]'/'[/COLOR][COLOR=green], [/COLOR][COLOR=blue]$path[/COLOR][COLOR=green]), [/COLOR][COLOR=blue]0[/COLOR][COLOR=green], [/COLOR][COLOR=blue]2[/COLOR][COLOR=green]));
    [/COLOR][COLOR=green]echo [/COLOR][COLOR=blue]$newPath[/COLOR][COLOR=green];  [/COLOR][COLOR=blue]?>[/COLOR]/" // löscht das letzte Verzeichnis der URL für den Pfad der "Kategorie"
    title="???">
    <span> ??? </span></a>

    [COLOR=#2C3E50][FONT=&amp]

    Hat jemand Tipps, wie ich das machen kann?[/FONT][/COLOR]