Search in Header for multisite network
-
I have a new multisite install and have modified Twenty Ten for a series of blogs under my organization brand.
I moved search to the header in the modified theme and it seems to be working fine, using the default function (no ‘searchform.php’ file exists).
But the code I have is wired for the initial blog. So subsequent blogs using my theme are searching the db for the first blog. I thought maybe pointing to the root blog (not used) of the network would simply search across all the blogs in the network (which would be okay) but then it jumps to that blog for search results.
What might be the missing bit for this? Here’s the code I inserted in the header.php file:
<div id="placedsearchfield" style="float:right; width:280px; margin:50px 0 0;"> <form role="search" method="get" id="searchform" action="https://blogs.giarts.org/uteandtheaster/"> <div><label class="screen-reader-text" for="s">Search for:</label> <input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search this Blog" /> </div> </form> </div><!-- #placedsearchfield -->
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Search in Header for multisite network’ is closed to new replies.