Change Default to Downloads when clicking on Search icon

Viewing 4 posts - 1 through 4 (of 4 total)
#180005

Cheryl Smith
Participant

When I click on the search icon on the green bar, it opens up a search bar with the option to select Post, Page, or Download. See the image: https://library.countrysidevillageretire.com/wp-content/uploads/2022/11/RVT-search.png

It defaults to Post, but I want it to default to Downloads. How can I do that?
I can see in the code (see image https://library.countrysidevillageretire.com/wp-content/uploads/2022/11/RVT-search-code.png) that the first option has checked=”checked” and I think if that gets moved to the third option it will solve my issue.

#180040

Tanvir
Spectator

Hello Cheryl,

Thanks for contacting us. Yes you are right.

The popup is being controlled from footer.php . If input checked="checked" then the related post type will be selected. So you can move it up or just replacing the checked will solve the issue.

However, I would always suggest to use child theme for any change of codes. Otherwise the changes will be removed.

Regards
Tanvir

#180042

Cheryl Smith
Participant

Thank you!

#180071

Tanvir
Spectator
This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Change Default to Downloads when clicking on Search icon’ is closed to new replies.