Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: How do I hide the "Search box"?

How do I hide the "Search box"? 15 years 5 months ago #4589

  • Rondine
  • Rondine's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
I need to hide the search box, as it does not serve a purpose on my site - How do I go about removing the search box from the front-end?

Anyone :?:

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

How do I hide the "Search box"? 15 years 5 months ago #4592

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
In 2.5.5 you'll find this around line 2888 of this file:
/components/com_dtregister/dtregister.php

Search for this:
<tr><td colspan="<?php echo $j/2; ?>" align="left"><b><?php echo JText::_( 'DT_SEARCH' ); ?>:</b> <input type="text" name="search" value="<?php echo $search; ?>" class="inputbox" onChange="document.sort.submit();" /><input type="submit" value="<?php echo JText::_( 'DT_SEARCH_GO' );?>" /></td>

Change it to:
<tr><td colspan="<?php echo $j/2; ?>" align="left">&nbsp;</td>

Then the search box will not appear, but you shouldn't screw up anything else on the page :)

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

How do I hide the "Search box"? 15 years 1 week ago #5491

  • marklandry
  • marklandry's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
My version has it on line 2688

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

  • Page:
  • 1
Time to create page: 0.766 seconds