Hallo,
Ich habe den Blog relativ frisch geschrieben, aber mir wird beim dashboard keine option angezeigt die Widgets zu bearbeiten.
Hat jemand Zeit und Lust mal nach Fehlern zu suchen?
Bin n ziemlicher Anfänger was programmieren angehtg :)
function.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;
}
?>
danke in vorraus
Celine