Problem gelöst.
Im WP internen Editor lässt sich das machen, während extern editieren und per FTP hochschieben irgendwie probleme bereitet.
Beiträge von el_murdoque
-
-
Hallo,
ich habe das Problem, dass ich beim Aufrufen des Newsarchivs
eine unschöne Zwischenüberschrift bekomme ('Category Archives News').
Diese würde ich gerne loswerden, doch komme ich nicht weiter.
Mein Theme ist raindrops. Nach langem Suchen bin ich in der functions.php
fündig geworden.Code
Alles anzeigen/** * index ,archive,loops page title * * echo Archives title * * */ if ( ! function_exists( "raindrops_loop_title" ) ) { function raindrops_loop_title( ) { $Raindrops_class_name = ""; $page_title = ""; $page_title_c = ""; if ( is_search( ) ) { $Raindrops_class_name = 'serch-result'; $page_title = esc_html__( "Search Results", 'Raindrops' ); $page_title_c = get_search_query( ); } elseif ( is_tag( ) ) { $Raindrops_class_name = 'tag-archives'; $page_title = esc_html__( "Tag Archives", 'Raindrops' ); $page_title_c = single_term_title( "", false ); } elseif ( is_category( ) ) { $Raindrops_class_name = 'category-archives'; $page_title = esc_html__( "Category Archives", 'Raindrops' ); $page_title_c = single_cat_title( '', false ); } elseif ( is_archive( ) ) { $raindrops_date_format = get_option( 'date_format' ); if ( is_day( ) ) { $Raindrops_class_name = 'dayly-archives'; $page_title = esc_html__( 'Daily Archives', 'Raindrops' ); $page_title_c = get_the_date( $raindrops_date_format ); } elseif ( is_month( ) ) { $Raindrops_class_name = 'monthly-archives'; $page_title = esc_html__( 'Monthly Archives', 'Raindrops' ); if ( 'ja' == get_locale( ) ) { $page_title_c = get_the_date( 'Y / F' ); } else { $page_title_c = get_the_date( 'F Y' ); } } elseif ( is_year( ) ) { $Raindrops_class_name = 'yearly-archives'; $page_title = esc_html__( 'Yearly Archives', 'Raindrops' ); $page_title_c = get_the_date( 'Y' ); } elseif ( is_author( ) ) { $Raindrops_class_name = 'author-archives'; $page_title = esc_html__( "Author Archives", 'Raindrops' ); while ( have_posts( ) ) { the_post( ); $page_title_c = get_avatar( get_the_author_meta( 'user_email' ), 32 ) . ' ' . get_the_author( ); break; } rewind_posts( ); } elseif ( has_post_format( 'aside' ) ) { $slug = 'aside'; $Raindrops_class_name = 'post-format-' . $slug; $page_title = esc_html__( 'Post Format', 'Raindrops' ); $page_title_c = get_post_format_string( $slug ); } elseif ( has_post_format( 'chat' ) ) { $slug = 'chat'; $Raindrops_class_name = 'post-format-' . $slug; $page_title = esc_html__( 'Post Format', 'Raindrops' ); $page_title_c = get_post_format_string( $slug ); } elseif ( has_post_format( 'gallery' ) ) { $slug = 'gallery'; $Raindrops_class_name = 'post-format-' . $slug; $page_title = esc_html__( 'Post Format', 'Raindrops' ); $page_title_c = get_post_format_string( $slug ); } elseif ( has_post_format( 'link' ) ) { $slug = 'link'; $Raindrops_class_name = 'post-format-' . $slug; $page_title = esc_html__( 'Post Format', 'Raindrops' ); $page_title_c = get_post_format_string( $slug ); } elseif ( has_post_format( 'image' ) ) { $slug = 'image'; $Raindrops_class_name = 'post-format-' . $slug; $page_title = esc_html__( 'Post Format', 'Raindrops' ); $page_title_c = get_post_format_string( $slug ); } elseif ( has_post_format( 'quote' ) ) { $slug = 'quote'; $Raindrops_class_name = 'post-format-' . $slug; $page_title = esc_html__( 'Post Format', 'Raindrops' ); $page_title_c = get_post_format_string( $slug ); } elseif ( has_post_format( 'status' ) ) { $slug = 'status'; $Raindrops_class_name = 'post-format-' . $slug; $page_title = esc_html__( 'Post Format', 'Raindrops' ); $page_title_c = get_post_format_string( $slug ); } elseif ( has_post_format( 'video' ) ) { $slug = 'video'; $Raindrops_class_name = 'post-format-' . $slug; $page_title = esc_html__( 'Post Format', 'Raindrops' ); $page_title_c = get_post_format_string( $slug ); } elseif ( has_post_format( 'audio' ) ) { $slug = 'audio'; $Raindrops_class_name = 'post-format-' . $slug; $page_title = esc_html__( 'Post Format', 'Raindrops' ); $page_title_c = get_post_format_string( $slug ); } else { $Raindrops_class_name = 'blog-archives'; $page_title = esc_html__( "Blog Archives", 'Raindrops' ); } } if ( ! empty( $Raindrops_class_name ) ) { echo '<ul class="index ' . esc_attr( $Raindrops_class_name ) . '">'; } else { echo '<ul class="index">'; } if ( ! empty( $page_title ) ) { printf( '<li><strong class="f16" id="archives-title">%s <span>%s</span></strong></li>', apply_filters( 'raindrops_archive_name', $page_title ), apply_filters( 'raindrops_archive_value', $page_title_c ) ); } } }Hier scheint die Steuerung für diesen Titel zu liegen, doch sobald ich das anfasse, bekomme ich zwar den gewünschten Effekt, doch hört die Administration der Webseite auf zu funktionieren, sobald ich etwas ändern möchte, bekomme ich einen weisses Browserfenster präsentiert.
Wie macht man das richtig ?