Hi everybody,
Is there a way to remove the HOMEPAGE text box from the comment area? This is not necessary for my blog.
Thanks for any direction on this !!!
Is there a way to remove HOMEPAGE from comments?
Re: Is there a way to remove HOMEPAGE from comments?
You could edit the commentform.tpl that is used in your theme, which is most likely templates/2k11/commentform.tpl. In there is the code that generates the homepage input field, at line 20:
Change the input from type url to hidden, like this:
In this example code I also removed the required attribute.
Code: Select all
<div class="form_field">
<label for="serendipity_commentform_url">{$CONST.HOMEPAGE}{if $required_fields.url}*{/if}</label>
<input id="serendipity_commentform_url" name="serendipity[url]" type="url" value="{$commentform_url}" placeholder="{$CONST.TWOK11_PLACE_URL}"{if $required_fields.url} required{/if}>
</div>
Code: Select all
<div class="form_field">
<label for="serendipity_commentform_url">{$CONST.HOMEPAGE}{if $required_fields.url}*{/if}</label>
<input id="serendipity_commentform_url" name="serendipity[url]" type="hidden" value="{$commentform_url}" placeholder="{$CONST.TWOK11_PLACE_URL}">
</div>
-
- Posts: 1
- Joined: Mon Apr 26, 2021 5:53 am
Re: Is there a way to remove HOMEPAGE from comments?
Thanks for the detailed explanation