wordpress html etc onderaan commentbox

Status
Niet open voor verdere reacties.

jeel2008

Gebruiker
Lid geworden
30 okt 2008
Berichten
839
hallo, onderaan de commentbox in wp zie ik:
De volgende HTML tags en attributen zijn toegestaan: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
hoe kom ik daarvan af?
 
Dat is gelukkig vrij simpel. De makkelijkste methode is als volgt:
Open comments.php en zoek naar
Code:
<?php comment_form(); ?>
Vervang dit door
Code:
<?php comment_form(array('comment_notes_after'=>'')); ?>
 
hmm, kan dat bestand niet vinden
zie wel ergens comment.php
ook: wp-comments-post.php

maar niet comments.php
in welke map staat dat?
 
Die zou in je theme directory moeten zitten. Wanneer dat niet zo is wordt er gebruik gemaakt van de standaard WordPress comments box.
In dat geval kun je de volgende code in functions.php plakken:

Code:
// Disable commentbox html tags
function commentboxhtml_init() {
	add_filter('comment_form_defaults','commentboxhtml_comments_form_defaults');
}
add_action('after_setup_theme','commentboxhtml_init');

function commentboxhtml_comments_form_defaults($default) {
	unset($default['comment_notes_after']);
	return $default;
}
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan