[COLOR=#333333]Hallo,[/COLOR]
[COLOR=#333333]ich habe gerade einen Code bei meiner functions.php hinzugefügt und bekam nachher folgende Fehlermeldung:
[/COLOR][COLOR=#FF0000][FONT=Times New Roman]Parse error: syntax error, unexpected '<' in /home/nrtempqm/htdocs/wordpress/wp-content/themes/zatran/functions.php on line 92
[/FONT][/COLOR]Dann habe ich den entsprechenden Code wieder gelöscht, jedoch bekam ich immer noch dieselbe Fehlermeldung und konnte in meinem Admin Bereich nicht mehr navigieren und habe jetzt auch keinen Zugang mehr.
Nun habe ich meine functions.php von meinem Theme per FTP heruntergeladen und bin dran am Fehlersuchen.
Da ich mich mit dem Code nicht auskenne, bitte ich euch, dass mir jemand den Fehler in Zeile 92 behebt.
Vielen Dank.
Gruß
Albi
<?php
if ( function_exists('register_sidebar') ) {
register_sidebar(array('name' => 'Menu', 'description' => '', 'before_widget' => '<div class="widget">', 'after_widget' => '</div>', 'after_title' => '</h6>'));
register_sidebar(array('name' => 'Sidebar', 'description' => '', 'before_widget' => '<div class="widget">', 'after_widget' => '</div>', 'before_title' => '<h6>', 'after_title' => '</h6>')); register_sidebar(array('name' => 'Footer', 'description' => '', 'before_widget' => '<div class="widget">', 'after_widget' => '</div>', 'before_title' => '<h6>', 'after_title' => '</h6>'));}
if ( function_exists('add_theme_support')) { add_theme_support('post-thumbnails'); }
function breadcrumb() { if (!is_home()) { echo '<a href="'; echo bloginfo('url'); echo '">'; echo "Home</a>"; if (is_category() || is_single()) { the_category('title_li='); if (is_single()) { echo " > "; echo '<a href="'; echo get_permalink($ancestors[$i-1]); echo '">'; echo the_title(); echo "</a>"; } } elseif (is_page()) { $ancestors = get_ancestors( get_the_ID(), 'page' ) ; $i = count( $ancestors ) ; while ( $i > 0 ) { $page_data = get_page( $ancestors[$i-1] ) ; echo ' > '; echo '<a href="'; echo get_permalink($ancestors[$i-1]); echo '">'; echo __($page_data->post_title) ; echo "</a>"; $i-- ; } echo ' > '; echo the_title(); } }}
add_filter('login_errors' ,create_function('$a', "return null;"));
remove_action('wp_head', 'wp_generator');
add_shortcode('wp_caption', 'slim_img_caption_shortcode');add_shortcode('caption', 'slim_img_caption_shortcode');function slim_img_caption_shortcode($attr, $content = null) { // Allow plugins/themes to override the default caption template. $output = apply_filters('img_caption_shortcode', '', $attr, $content); if ( $output != '' ) return $output;
extract(shortcode_atts(array( 'id' => '', 'align' => 'alignnone', 'width' => '', 'caption' => '' ), $attr));
if ( 1 > (int) $width || empty($caption) ) return $content;
if ( $id ) $id = 'id="' . esc_attr($id) . '" ';
$frame_width = 0; // frame width in pixels per side //
return '<div ' . $id . 'class="wp-caption ' . esc_attr($align) . '" style="width: ' . ( 2 * $framewidth + (int) $width) . 'px">' . do_shortcode( $content ) . <p class="wp-caption-text"> . $caption . '</p></div>';}?>
Alles anzeigen