Hallo :)
ich habe folgendes Problem:
Ich nutze das Theme "Thememin" und möchte nicht, wie dem Titel schon zu entnehmen ist, Pingbacks und Trackbacks im Kommentarfeld angezeigt bekommen.
Ich habe bereits eine Anleitung (>>hier<<- in etwa so soll das dann bei mir auch aussehen) gefunden wie das gemacht wird, allerdings für ein anderes Theme. Da ich mich in php leider nicht ganz so gut auskenne würde ich euch bitten mir beim meinem Problem zu helfen.
Das hier ist meine Comments.php von "Thememin":
Welche Änderungen müsste ich hier vornehmen?
PHP
<?php if ( post_password_required() ) : ?>
<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'themify' ); ?></p>
<?php
/* Stop the rest of comments.php from being processed,
* but don't kill the script entirely -- we still have
* to fully load the template.
*/
return;
endif;
?>
<?php
// You can start editing here -- including this comment!
?>
<?php if ( have_comments() || comments_open() ) : ?>
<?php themify_comment_before(); //hook ?>
<div id="comments" class="commentwrap">
<?php endif; // end commentwrap ?>
<?php themify_comment_start(); //hook ?>
<?php if ( have_comments() ) : ?>
<h4 class="comment-title"><?php comments_number(__('No Comments','themify'), __('One Comment','themify'), __('% Comments','themify') );?></h4>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<div class="pagenav top clearfix">
<?php paginate_comments_links( array('prev_text' => '«', 'next_text' => '»') );?>
</div>
<!-- /.pagenav -->
<?php endif; // check for comment navigation ?>
<ol class="commentlist">
<?php wp_list_comments('callback=themify_theme_comment'); ?>
</ol>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<div class="pagenav bottom clearfix">
<?php paginate_comments_links( array('prev_text' => '«', 'next_text' => '»') );?>
</div>
<!-- /.pagenav -->
<?php endif; // check for comment navigation ?>
<?php else : // or, if we don't have comments:
/* If there are no comments and comments are closed,
* let's leave a little note, shall we?
*/
if ( ! comments_open() ) :
?>
<?php endif; // end ! comments_open() ?>
<?php endif; // end have_comments() ?>
<?php
$custom_comment_form = array( 'fields' => apply_filters( 'comment_form_default_fields', array(
'author' => '<p class="comment-form-author">' .
'<input id="author" name="author" type="text" value="' .
esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' class="required" />' .
'<label for="author">' . __( 'Name' , 'themify' ) . '</label> ' .
( $req ? '<span class="required">*</span>' : '' ) .
'</p>',
'email' => '<p class="comment-form-email">' .
'<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' class="required email" />' .
'<label for="email">' . __( 'Mail' , 'themify' ) . '</label> ' .
( $req ? '<span class="required">*</span>' : '' ) .
'</p>',
'url' => '<p class="comment-form-url">' .
'<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"' . $aria_req . ' />' .
'<label for="website">' . __( 'Website' , 'themify' ) . '</label> ' .
'</p>') ),
'comment_field' => '<p class="comment-form-comment">' .
'<textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" class="required"></textarea>' .
'</p>',
'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s">Log out?</a>', 'themify' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
'title_reply' => __( 'Deine Meinung interessiert uns:' , 'themify' ),
'comment_notes_before' => '',
'comment_notes_after' => '',
'cancel_reply_link' => __( 'Abbrechen' , 'themify' ),
'label_submit' => __( 'Senden' , 'themify' ),
);
comment_form($custom_comment_form);
?>
<?php if ( have_comments() || comments_open() ) : ?>
<?php themify_comment_end(); //hook ?>
</div>
<!-- /.commentwrap -->
<?php themify_comment_after(); //hook ?>
<?php endif; // end commentwrap ?>
Alles anzeigen
LG
Ryijin