ich habe grundsätzlich die Kommetar Funktion deaktiviert, möchte aber auch den entsprechenden Hinweis KOMMENTARE WURDEN DEAKTIVIERT unterdrücken. Ich habe nun sämtliche PHP durchgeschaut, finde diesen Satz aber nirgendwo. Möglicherweise ist er in englisch, dann müsste er wohl so ähnlich lauten wie "Comments off"- finde ich aber auch nicht. Wie gehe ich vor?
Comments OFF löschen - Wo?
-
s------------r -
15. Oktober 2008 um 14:31
-
-
- Gerade eben
- Anzeige
Hallo!
Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.
- ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
- ✔️ Deutsche Server & DSGVO-konform
- ✔️ Persönlicher Support (kein 0815-Ticket-System)
-
Da "off" für die Forensuche zu kurz ist:
"comments off" site:forum.wordpress-deutschland.org - Google Search -
Danke. Suche mir aber die Augen aus.
Das Problem ist in der Tat schon öfter aufgetaucht, aber die Lösungsvorschläge passen bei mir nicht.Hier mal meine Comments php - ist dort etwas zu ändern?
PHP
Alles anzeigen<div id="comments-template"> <?php // Do not delete these lines if('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die('Please do not load this page directly. Thanks!'); if(!empty($post->post_password)) { // if there's a password if($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie echo '<h2>'; _e('Password Protected','options'); echo '</h2>'; echo '<p>'; _e('Enter the password to view comments.','options'); echo '</p></div>'; return; } } // Variable for alternating comments with the CSS class "alt" $oddcomment = 'alt'; // Start editing here if($comments) : ?> <h3 id="comments"> <?php comments_number(__('No Responses','options'), __('One Response','options'), '% '.__('Responses','options')); ?> <?php _e('to','options'); ?> “ <?php the_title(); ?> ” </h3> <ol class="commentlist"> <?php foreach($comments as $comment) : ?> <li class="<?php echo $oddcomment; ?><?php if($comment->comment_author_email == get_the_author_email()) echo ' author'; ?>" id="comment-<?php comment_ID() ?>"> <?php if($comment->comment_author_url == true) { ?> <a href="<?php echo $comment->comment_author_url; ?>" rel="nofollow" title="<?php comment_author(); ?>"> <?php } ?> <?php $comment_type = get_comment_type(); if($comment_type == 'trackback' or $comment_type == 'pingback') $avatar = get_bloginfo('template_directory') . "/images/trackback.jpg"; else $avatar = 'wavatar'; ?> <?php echo get_avatar(get_comment_author_email(), '80', $avatar); ?> <?php if($comment->comment_author_url == true) echo '</a>'; ?> <div class="comment-meta-data"> ?php comment_author_link(); ?> <a class="time" href="#comment-<?php comment_ID() ?>" title=""> <?php comment_date(__('M jS, Y','options')); ?> <?php _e('at','options'); ?> <?php comment_time(); ?> </a> <?php edit_comment_link('<span class="edit">'.__('[Edit]','options').'</span>',' ',''); ?> <?php if($comment->comment_approved == '0') : ?> <em><?php _e('Your comment is awaiting moderation.','options'); ?></em> <?php endif; ?> </div> <div class="comment-text"> <?php comment_text(); ?> </div> </li> <?php if('alt' == $oddcomment) $oddcomment = ''; else $oddcomment = 'alt'; ?> <?php endforeach; ?> </ol> <?php else : // this is displayed if there are no comments so far if('open' == $post->comment_status) : // If comments are open, but there are no comments. else : // If comments are closed ?> <p class="nocomments"><?php _e('Comments are closed.','options'); ?></p> <?php endif; endif; if('open' == $post->comment_status) : ?> <h3 id="respond"><?php _e('Leave a Reply','options'); ?></h3> <?php if(get_option('comment_registration') && !$user_ID) : ?> <p><?php _e('You must be','options'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>"> <?php _e('logged in','options'); ?></a> <?php echo ' '; _e('to post a comment.','options'); ?></p> <?php else : ?> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <?php if($user_ID) : ?> <p><?php _e('Logged in as','options'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"> <?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account','options'); ?>"><?php _e('Logout','options'); ?> »</a></p> <?php else : ?> <p> <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="40" tabindex="1" /> <label for="author"><?php _e('Name','options'); echo ' '; if ($req) _e('Required','options'); ?></label> </p> <p> <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="40" tabindex="2" /> <label for="email"><?php _e('Email (not published)','options'); echo ' '; if ($req) if ($req) _e('Required','options'); ?></label> </p> <p> <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="40" tabindex="3" /> <label for="url"><?php _e('Website','options'); ?></label> </p> <?php endif; ?> <p> <textarea name="comment" id="comment" cols="60" rows="10" tabindex="4"></textarea> </p> <p> <input class="submit-comment" name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit','options'); ?>" /> <input class="reset-comment" name="reset" type="reset" id="reset" tabindex="6" value="<?php _e('Reset','options'); ?>" /> <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> </p> <div> <?php do_action('comment_form', $post->ID); ?> </div> <p> <?php echo '<strong>'; _e('You can use these XHTML tags','options'); echo ':</strong>'; ?> <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strong> </p> </form> <?php endif; // If registration required and not logged in ?> <?php endif; // if you delete this the sky will fall on your head ?> </div> -
Was ist denn z.B. mit diesem Thread hier?
http://forum.wordpress-deutschland.org/sprachdatei/39…ge-aendern.html -
Gefühlsmäßig würde ich mal sagen, das müsste bei dir diese Zeile sein:
Comments are closed - die Kommentare sind geschlossen/deaktiviert.
Edit: Entsprechenden Satz auch in den anderen php-Dateien suchen, nicht nur in der comments.php -
thx
genial. das wars. Manchmal blind...
LG Sandie
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!