- October 16, 2017 at 6:29 pm #15196
We are running a multisite strategy and we have used the search plugin. it is displaying fine. The problem is when we tried to change ‘placeholder’ text in a certain site, then it is applying for all sites. We need separate placeholder text per site. can you please tell us how we can implement it ? Do we need to buy extended license or is there a option in the plugin?
Looking forward to your answer.
ErminOctober 17, 2017 at 3:20 pm #15198
You don’t need an extended license, it won’t help in this case 🙂
One solution would be to have a separate search instance (shortcode) for each site, but if you have a lot of sub-sites, then this could get too complicated.
The only thing you need to change in that code is the placeholder variable. As you can see it is an associative array, where there is a text mapped to a specific blog ID – so in case of blog ID=1, the text after the 1: is used, for blog ID=2 the text after 2: and so on.. You can add as many lines to it as you need.
I hope this helps!Best,
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.