Title: Plugin do not reset
Last modified: January 15, 2020

---

# Plugin do not reset

 *  [andersu](https://wordpress.org/support/users/andersu/)
 * (@andersu)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-do-not-reset/)
 * Hello, first thanks for this wonderful pluguin.
 * Every time I do a search for the plug and go back to the homepage it doesn’t 
   go back to “Make / Model / Year”. It is saved in the last search. I would like
   you to clear the fields every time the page refreshes. Would you help me? Thanks!
 * Page: [https://veiculos.rededoautomovel.com](https://veiculos.rededoautomovel.com)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [andersu](https://wordpress.org/support/users/andersu/)
 * (@andersu)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-do-not-reset/#post-12326293)
 * also take the search button. 🙂
 *  Plugin Author [Pektsekye](https://wordpress.org/support/users/pektsekye/)
 * (@pektsekye)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-do-not-reset/#post-12326687)
 * Hello,
 * Try to apply the “To make drop-downs not preselected” modification:
    [http://hottons.com/ymm_modifications](http://hottons.com/ymm_modifications)
 * >also take the search button
    replace the line:
 *     ```
       <button type="button" title="<?php echo $this->getFilterCategoryPage() && Pektsekye_YMM()->isProductCategory() ? __('Filter', 'ymm-search') : __('Search', 'ymm-search') ?>" class="button ymm-submit-any-selection" <?php echo $this->isResultsPage() && $this->getWordSearchEnabled() ? 'style="display:none;"' : ''; ?>><?php echo $this->getFilterCategoryPage() && Pektsekye_YMM()->isProductCategory() ? __('Filter', 'ymm-search') : __('Search', 'ymm-search') ?></button>    
       ```
   
 * with:
 *     ```
       <div style="display:none;"><button type="button" title="<?php echo $this->getFilterCategoryPage() && Pektsekye_YMM()->isProductCategory() ? __('Filter', 'ymm-search') : __('Search', 'ymm-search') ?>" class="button ymm-submit-any-selection" <?php echo $this->isResultsPage() && $this->getWordSearchEnabled() ? 'style="display:none;"' : ''; ?>><?php echo $this->getFilterCategoryPage() && Pektsekye_YMM()->isProductCategory() ? __('Filter', 'ymm-search') : __('Search', 'ymm-search') ?></button></div>
       ```
   
 * in the file:
    wp-content/plugins/ymm-search/view/frontend/templates/horizontal_selector.
   php
 * Stanislav
 *  Thread Starter [andersu](https://wordpress.org/support/users/andersu/)
 * (@andersu)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-do-not-reset/#post-12327959)
 * It worked **perfectly**, thank you very much !!!
 *  [techeyewebsolutions](https://wordpress.org/support/users/techeyewebsolutions/)
 * (@techeyewebsolutions)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-do-not-reset/#post-12599734)
 * Pektsekye (@pektsekye)
    Greetings, Wanted to say thank you for this plugin, it
   is a very useful one for what I am trying to accomplish. However I have come 
   into an issue when trying to apply the “To make drop-downs not preselected” modification.
   When replacing the original file with this one where the selection is commented
   out. (lines 213, 318)
 * When reloading the site, I get the following error. Any suggestions as to why?
 *     ```
       Warning: include(C:\laragon\www\TechEyeAirbagSite\wp-content\plugins\ymm-search/view/frontend/templates/horizontal_selector.phtml): failed to open stream: No such file or directory in C:\laragon\www\TechEyeAirbagSite\wp-content\plugins\ymm-search\Block\Selector.php on line 400
   
       <code>Warning: include(): Failed opening 'C:\laragon\www\TechEyeAirbagSite\wp-content\plugins\ymm-search/view/frontend/templates/horizontal_selector.phtml' for inclusion (include_path='.;C:/laragon/etc/php/pear') in C:\laragon\www\TechEyeAirbagSite\wp-content\plugins\ymm-search\Block\Selector.php on line 400</code>
       ```
   
 * When looking at that line it shows the below code (of course you know this I 
   am sure haha) but figured place it for reference.
 *     ```
       include(Pektsekye_YMM()->getPluginPath() . 'view/frontend/templates/' . $templateFile);
       ```
   
 * Thank you for any help you can provide.
    Travis
 * ****EDITED****
    I found the issue, for some reason it had phtml as the file path
   lookup. I changed that to PHP and worked fine.
 * Thanks
    -  This reply was modified 6 years, 2 months ago by [techeyewebsolutions](https://wordpress.org/support/users/techeyewebsolutions/).
      Reason: Found the issue

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Plugin do not reset’ is closed to new replies.

 * ![](https://ps.w.org/ymm-search/assets/icon-256x256.png?rev=1750193)
 * [Year Make Model Search for WooCommerce](https://wordpress.org/plugins/ymm-search/)
 * [Support Threads](https://wordpress.org/support/plugin/ymm-search/)
 * [Active Topics](https://wordpress.org/support/plugin/ymm-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ymm-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ymm-search/reviews/)

## Tags

 * [reset](https://wordpress.org/support/topic-tag/reset/)

 * 4 replies
 * 3 participants
 * Last reply from: [techeyewebsolutions](https://wordpress.org/support/users/techeyewebsolutions/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-do-not-reset/#post-12599734)
 * Status: not resolved