Keyword

Hide website URL in comments

  • HJM Cortooms
  • HJM Cortooms's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 3 months ago #135561 by HJM Cortooms
Hide website URL in comments was created by HJM Cortooms
How can I hide the field "Website URL" in the comments section?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 3 months ago #135582 by Krikor Boghossian
Replied by Krikor Boghossian on topic Hide website URL in comments
You can either override the comments form or hide it with CSS.

The file you need to edit is item_comments_form.php and the code that produces this field is:
<label class="formUrl" for="commentURL"><?php echo JText::_('K2_WEBSITE_URL'); ?></label>
		<input class="inputbox" type="text" name="commentURL" id="commentURL" value="<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>"  onblur="if(this.value=='') this.value='<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>';" onfocus="if(this.value=='<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>') this.value='';" />

More on overriding can be found here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum