Autor |
Nachricht |
Kash
Dabei seit: 07.11.2002
Ort: Schopfheim
Alter: 41
Geschlecht:
|
Verfasst Di 20.07.2010 15:57
Titel
|
|
|
Leere mal den Cache.
|
|
|
|
|
Yakima
Dabei seit: 19.07.2013
Ort: -
Alter: -
Geschlecht: -
|
Verfasst Fr 19.07.2013 18:38
Titel
|
|
|
Ist ein altes Thema aber mein Problem ist neu aber ähnlich.
Ich nutze unter WordPress das Theme YOKO.
Ich habe die Kommentarfunktion deaktiviert.
Links neben allen Artikeln steht jetzt der Hinweis: "Kommentare deaktiviert".
Das hätte ich gerne weg.
In der comments.php finde ich folgenden Code: Code: | <?php if ( comments_open() ) : // If comments are open, but there are no comments ?>
<?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?
* But only on posts! We don't want the note on pages.
*/
if ( ! comments_open() && ! is_page() ) :
?>
<p class="nocomments"><?php _e( 'Comments are closed.', 'yoko' ); ?></p>
<?php endif; // end ! comments_open() && ! is_page() ?>
<?php endif; ?> |
Ich weiß nicht genau, wo ich ansetzen muss. Kann jemand helfen?
|
|
|
|
|
Anzeige
|
|
|
zeji
Dabei seit: 05.10.2010
Ort: -
Alter: 18
Geschlecht:
|
Verfasst Mi 24.07.2013 14:15
Titel
|
|
|
Entweder du löscht einfach alles, besser ist aber du kommentierst einfach den Else-Block aus.
Code: |
<?php if ( comments_open() ) : // If comments are open, but there are no comments ?>
<?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?
* But only on posts! We don't want the note on pages.
*/
/*
if ( ! comments_open() && ! is_page() ) :
?>
<p class="nocomments"><?php _e( 'Comments are closed.', 'yoko' ); ?></p>
<?php endif; // end ! comments_open() && ! is_page()
*/ ?>
<?php endif; ?>
|
Gruß
|
|
|
|
|
|
|
|
Ähnliche Themen |
Wordpress - Kommentare abstellen
Str+z deaktiviert, wie fixen?
[ID CS4] Optischer Randausgleich deaktiviert
versteckte Weiterleitung deaktiviert JS
Button soll deaktiviert bleiben
Corel 14 Bitmap bearbeiten deaktiviert
|
|