Abstand über Headerbild

  • Mein Problem: Themes:Twentyten Über dem Headerbild ist ein weißer Leeraum(Abstand), wie entferne ich dass???
    Im stylesheet oder im header.php und wo und wie genau?
    Hoffe auf Hilfe
    Gruß Wiesler

    • 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

  • je nachdem welchen Abstand du meinst

    style.css

    Code
    #header{padding:[COLOR="#B22222"]30px[/COLOR] 0 0 0;}


    oder

    Code
    #wrapper{background:#fff;[COLOR="#FF0000"]margin-top:20px;[/COLOR]padding:0 20px;}

    oder beides

  • Ich habe wie folgt geändert:
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#3E3E3E][FONT="Tahoma"]style.css/Structure:[/FONT][/COLOR]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][COLOR=#3E3E3E][FONT="Tahoma"] [/FONT][/COLOR]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][size=12][COLOR=#000000][FONT=Arial]#wrapper {[/FONT][/COLOR][/SIZE]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Arial][size=12][COLOR=#000000] margin: 0 auto;[/COLOR][/SIZE][/FONT]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Arial][size=12][COLOR=#000000] width: 940px;[/COLOR][/SIZE][/FONT]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][size=12][COLOR=#000000][FONT=Arial]}[/FONT][/COLOR][/SIZE]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][size=12][COLOR=#000000][FONT=Arial]#wrapper {[/FONT][/COLOR][/SIZE]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Arial][size=12][COLOR=#000000] background: #fff;[/COLOR][/SIZE][/FONT]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][size=12][COLOR=#000000][FONT=Arial] [/FONT][/COLOR][/SIZE]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Arial][size=12][COLOR=#000000] padding: 0 0px;[/COLOR][/SIZE][/FONT]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Arial][size=12][COLOR=#000000]}[/COLOR][/SIZE][/FONT]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Arial][size=12][COLOR=#000000] [/COLOR][/SIZE][/FONT]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][size=12][COLOR=#000000][FONT=Arial]style.css/Header:[/FONT][/COLOR][/SIZE]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Arial][size=12][COLOR=#000000] [/COLOR][/SIZE][/FONT]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Arial][size=12][COLOR=#000000] [/COLOR][/SIZE][/FONT]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Arial][size=12][COLOR=#000000]#header {[/COLOR][/SIZE][/FONT]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Arial][size=12][COLOR=#000000] padding: 0 0 0;[/COLOR][/SIZE][/FONT]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Arial][size=12][COLOR=#000000]}
    Jetzt bleibt noch 1cm frei bzw. weiß. Was nun???[/COLOR][/SIZE][/FONT]
    [FONT=Times New Roman][size=12][COLOR=#000000][/COLOR][/SIZE][/FONT]

  • Vielleicht gibst du einfach mal einen Link zu deinem Blog, ich weiß ja nicht was du schon alles verändert hast oder eventuell nicht verwendest.

    Möglich wäre, das du weder Titel noch Beschreibung verwendest, dann kann man das noch rauslöschen.

  • dachte ich mir schon ;-)

    dann kannst du diesen Teil

    PHP
    <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
    				<<?php echo $heading_tag; ?> id="site-title">
    					<span>
    						<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
    					</span>
    				</<?php echo $heading_tag; ?>>
    				<div id="site-description"><?php bloginfo( 'description' ); ?></div>

    in der header.php löschen

    ach ja wenn es unten auch abschließen soll

    Code
    #footer {
        margin-bottom: 20px;
    }


    entfernen

    Einmal editiert, zuletzt von Tutrix (9. Juni 2012 um 16:42)

  • Fehlermeldung,keine Homepage:Parse error: syntax error, unexpected ':' in /homepages/29/d181556564/htdocs/wp/wp-content/themes/twentyten/header.php on line 67
    Meine Änderung in header.php

    <?php $heading_tag = ( is_home() || is_front_page() ) ? : ; ?>
    <<?php echo $heading_tag; ?> id="site-title">
    <span>
    <a href="<?php echo home_url( ); ?>" title="<?php echo esc_attr( get_bloginfo( , ) ); ?>" rel="home"><?php bloginfo(); ?></a>
    </span>
    </<?php echo $heading_tag; ?>>
    <div id="site-description"><?php bloginfo( ); ?></div>

  • Kann eigentlich nicht sein, es sei denn du hast noch versehentlich etwas mehr gelöscht oder nicht alles.

    Zitat

    Parse error: syntax error


    deutet darauf hin

    Ach ja, für Code im Beitrag hier im Forum, bitte die BBCodes verwenden. (findest du im erweiterten Editor)

    [COLOR="#FF0000"]Edit [/COLOR]: sehe gerade erst, du hast an dem Code herumgebastelt, statt in zu löschen, also einfach "löschen nicht basteln"

    Einmal editiert, zuletzt von Tutrix (9. Juni 2012 um 17:46)

  • Richtig verstanden alles löschen:
    <?php $heading_tag = ( is_home() || is_front_page() ) ? : ; ?>
    <<?php echo $heading_tag; ?> id="site-title">
    <span>
    <a href="<?php echo home_url( ); ?>" title="<?php echo esc_attr( get_bloginfo( , ) ); ?>" rel="home"><?php bloginfo(); ?></a>
    </span>
    </<?php echo $heading_tag; ?>>
    <div id="site-description"><?php bloginfo( ); ?></div>

    Ich wage es fast nicht.
    Mich hat die rote Farbe irritiert, ich nahm an,nur diese Angaben löschen.
    Danke,Danke, es hat geklappt.

Jetzt mitmachen!

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