Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • 7of9 Friend
    #731804

    Hi,

    I am trying to hide the checkboxes of the search component, since I want to search everywhere.
    I went to the search component oprions and switched “Use Search Areas” option to no, but it is not working, for I can still see the checkboxes.

    Please advise.

    Ninja Lead Moderator
    #752924

    Hi,

    In this case, I need to check that problem directly on your site, you can pm me the credentials info.

    Regards

    7of9 Friend
    #752958

    PM send. Thanks for your help.

    Ninja Lead Moderator
    #753024

    <em>@7of9 499557 wrote:</em><blockquote>PM send. Thanks for your help.</blockquote>

    It’s very strange with the problem on your site but you can use this way to fix the problem on your site

    + Create templates/ja_fixel/html/com_search/search/ folder

    + Copy plugins/system/t3/base/html/com_search/search/default_form.php file

    + Paste to templates/ja_fixel/html/com_search/search/ folder

    + Open default_form.php file find and remove script below


    <?php if ($this->params->get('search_areas', 1)) : ?>
    <fieldset class="only">
    <legend><?php echo JText::_('COM_SEARCH_SEARCH_ONLY');?></legend>
    <?php foreach ($this->searchareas['search'] as $val => $txt) :
    $checked = is_array($this->searchareas['active']) && in_array($val, $this->searchareas['active']) ? 'checked="checked"' : '';
    ?>
    <label for="area-<?php echo $val;?>" class="checkbox">
    <input type="checkbox" name="areas[]" value="<?php echo $val;?>" id="area-<?php echo $val;?>" <?php echo $checked;?> >
    <?php echo JText::_($txt); ?>
    </label>
    <?php endforeach; ?>
    </fieldset>
    <?php endif; ?>

    Let me know if it helps

    7of9 Friend
    #753109

    Hi @ninja Lead ,

    Template override worked.

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  7of9 9 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum