• Hallo,
    Ich habe grade mal wieder ein bisschen an meinem Theme gearbeitet und bekomme den Pfeil über der Überschrift nich weg.
    Hat jemand eine Idee woran das liegen kann?


    header-php:
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <div id="header">
    <?php wp_head(); ?> -->

    </head>
    <body>

    <div id="wrapper">

    <div id="header"onclick="location.href='http://www.celinesofficial.com';"
    onkeypress="location.href='http://www.celinesofficial.com';" style="cursor: pointer;"
    >
    <br><h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1> <link href="https://fonts.googleapis.com/css?family=Syncopate" rel="stylesheet">
    <h3><?php bloginfo('description'); ?></h3>

    </div><!-- header -->
    <?php if ( is_active_sidebar( 'sidebar-custom-header' ) ) : ?>

    <div id="sidebar-header">

    <?php dynamic_sidebar( 'sidebar-custom-header' ); ?>

    </div>

    <?php endif; ?><br>

    <div id="topmenu">
    <ul>
    <?php wp_list_categories('title_li='); ?>
    </ul>
    </div>

    <a class="Überschrift" href="<?php bloginfo('url'); ?>">

    </div<
    </a>

    functions.php:
    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar();


    add_theme_support('post-thumbnails');

    function celinesofficial_widgets_init() {

    register_sidebar( array(

    'name' => __( 'Custom Widget Area Header', 'celinesofficial' ),

    'id' => 'sidebar-custom-header',

    'description' => __( 'Custom widget area for the header of my theme', 'yourthemename' ),

    'before_widget' => '<aside id="%1$s" class="widget %2$s">',

    'after_widget' => '</aside>',
    'before_title' => '<h3 class="widget-title">',

    'after_title' => '</h3>',


    ) );

    }
    add_action( 'widgets_init', 'celinesofficial_widgets_init' );

    function remove_more_link_scroll( $link ) {
    $link = preg_replace( '|#more-[0-9]+|', '', $link );
    return $link;
    }
    add_filter( 'the_content_more_link', 'remove_more_link_scroll' );

    add_filter( 'post_thumbnail_html', 'wps_post_thumbnail', 10, 3 );
    function wps_post_thumbnail( $html, $post_id, $post_image_id ) {
    $html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_post_field( 'post_title', $post_id ) ) . '">' . $html . '</a>';
    return $html;
    }

    ?>

    index.php:
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"

    <?php get_header(); ?>

    <div id="main">

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php if(has_post_thumbnail()){
    the_post_thumbnail();} ?>
    <h3><a class="Überschrift" href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
    <div class="entry">

    <?php the_content('MORE','',''); ?><div id="meta"></div><div id="erstellt_am">
    <p>erstellt am: <?php the_date('d.m.Y'); ?>-<a class="comments" href="<?php the_permalink(); ?>#comments" title="Kommentare zu '<?php the_title(); ?>'"><?php comments_number('Keine Kommentare','1 Kommentar','%Kommentare'); ?></a>
    </div></div>

    <?php endwhile; endif; ?>
    </div><!-- main -->

    <div id="sidebar">
    <?php get_sidebar(); ?>
    </div><!-- sidebar -->


    <div id="footer">
    <?php get_footer(); ?>
    </div><!-- footer -->

    • 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

  • Zum Glück steht in dem vielen Code auch deine Website :-)
    Aber ich würde es mal hiermi versuchen:


    Keine Ahnung ob es der ist, aber der fiel mir gerade ins Auge

    gruss Benzli

  • Oder es ist der

    <a rel="nofollow" class="Überschrift" href="<?php bloginfo('url'); ?>">

    [COLOR=#ff0000]</div<[/COLOR]
    </a>

    Das Geheimnis des Könnens liegt im Wollen!
    [size=12]Bitte keine Hilfegesuche per PN (auch keine "privaten" Links). Das ist ein öffentliches Forum.[/SIZE]

  • Oft hilft: Mit Firefox die entspr. Seite aufrufen, dann rechte Maustaste auf eine leere Stelle z.B. am Rand und "Seitenquelltext anzeigen" anwählen, dann erscheint der HTML Quellcode und solche Fehler sind rot markiert.

    OT und gleichzeitig als Beispiel: Wenn man das bei dieser Seite hier im Forum macht, wird ein [FONT=courier new][COLOR=#FF0000]</div>[/COLOR][/FONT] in Zeile 302 unterhalb Google Analytics als "verirrtes End-Tag div" entspr. markiert.

Jetzt mitmachen!

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