Keyword

Site Field hid

  • Faris Jamil
  • Faris Jamil's Avatar Topic Author
  • Offline
  • New Member
More
7 years 7 months ago #160337 by Faris Jamil
Site Field hid was created by Faris Jamil
How to hide site field in comment please also can we change leave comment to leave review ?

thanks

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
7 years 7 months ago #160346 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Site Field hid
Hi Faris ,

1- You can override the item_comments_form.php template file, to hide the site/url field just comment its html, by <!-- -->
Like this:
<!--<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='';" />-->

2- You can change leave comment to leave review, using language overrides. to access it, go to backend: Extensions->Languages->Overrides.
Create a new override, enter "K2_LEAVE_A_COMMENT" in the Language Constant field and "Leave a review" in the Text field, then save.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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


Powered by Kunena Forum