Hallo zusammen
Ich habe ein gekauftes Theme, jetzt will ich die comments.php und single.php so ändern damit es wie ein Gästebuch aussieht.
Eigentlich klappt es ganz gut.
Nur kann ich jetzt die Kommentar Formulartexte nicht anpassen.
So wie ich das jetzt irgendwie verstehe wird das Kommentar Formular im comments.php (vom Theme) von \wp-includes\comment-template.php geholt.
Jetzt denke ich, ich erstelle einfach ein eigenes \wp-includes\comment-template.php für das Geästebuch, pass die Texte an und verbinde es mit meinem comments.php vom Theme.
Ich weiss jetzt nur nicht wo und wie es verbunden wird.
Der ganze Code von comments.php sieht so aus:
PHP
<?php
/**
* Comments
*
* This file displays the comments and
* comment form for each single blog post.
*/
?>
<div id="comments">
<!-- Prevents loading the file directly -->
<?php if(!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) : ?>
<?php die('Please do not load this page directly or we will hunt you down. Thanks and have a great day!'); ?>
<?php endif; ?>
<!-- Password Required -->
<?php if(!empty($post->post_password)) : ?>
<?php if($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<?php endif; ?>
<?php endif; ?>
<!-- COMMENTS (start) -->
<div id="guestbook-wrap">
<h3><?php comments_number( __('No comments', "themeblvd"), __('One comment', "themeblvd"), __('% Einträge', "themeblvd") ); ?></h3>
<?php if($comments) : ?>
<ul>
<?php wp_list_comments( array( 'style' => 'ul', 'max_depth' => 2, 'avatar_size' => 48 ) ); ?>
</ul>
<?php endif; ?>
</div><!-- #comments-wrap (end) -->
<!-- COMMENTS (end) -->
<!-- COMMENT FORM (start) -->
<div class="comment-form">
<?php comment_form(); ?>
</div><!-- .comment-form (end) -->
<!-- COMMENT FORM (end) -->
</div><!--#comments-->
Alles anzeigen
Könnte mir bitte da jemand einen Tipp geben?
Liebe Grüsse
Lejla