Jump to content

These Forums Are Now Read-Only

For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Pre-pend Search Input

  • Please log in to reply
1 reply to this topic

#1 Buschka Northern

Buschka Northern


  • Members
  • PipPip
  • 10 posts

Posted 28 January 2012 - 04:44 PM

[tubepress output="searchInput"]

How should I pre-pend the search input for the search feature so that the search will have my keywords automatically added before whatever is typed into the search box (in my case I'd like to pre-pend with 'travel videos')?

Thanks for your reply,


#2 eric


    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 29 January 2012 - 12:19 AM

Hi Buschka,

This is possible with a bit of modification to TubePress. You'll want to change this line from

$searchTerms = org_tubepress_impl_util_StringUtils::cleanForSearch($rawSearchTerms);

$searchTerms = 'travel videos ' . org_tubepress_impl_util_StringUtils::cleanForSearch($rawSearchTerms);
Give that a try and let us know how it works for you. Thanks!