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 -->