Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Tag: search.php Help In Shaping WordPress Themes en Mon, 25 May 2015 21:27:40 +0000 helgatheviking on "Replacing Wordpress search with Google" Thu, 08 Dec 2011 12:14:21 +0000 helgatheviking 24205@ <p>no tutorials that i know of. your code for replacing the search loop looks fine. however, if you are getting a 404 then your loop isn't the problem. </p> Nate H on "Replacing Wordpress search with Google" Wed, 07 Dec 2011 20:22:05 +0000 Nate H 24184@ <p>I must be missing something. Is there a tutorial for adding a Google Custom Search to Thematic? </p> <p>Thanks again for the help. </p> Nate H on "Replacing Wordpress search with Google" Wed, 07 Dec 2011 03:18:05 +0000 Nate H 24177@ <p>Thank you for the help!</p> <p>I found this tutorial:<br /> <a href="" rel="nofollow"></a></p> <p>Which uses the Two Page layout method. I get a 404'd when I tried getting it to work.</p> <p>Here is my latest attempt, that isn't working, at removing the Thematic loop and adding the google code within the functions.</p> <pre><code>// remove the standard search loop function remove_search_loop() { remove_action(&#39;thematic_searchloop&#39;, &#39;thematic_search_loop&#39;); } add_action(&#39;wp&#39;, &#39;remove_search_loop&#39;); // create your own search loop function my_search_loop() { // Your content goes in here &lt;?php if ( have_posts() ) : ?&gt; &lt;div id=&quot;cse&quot; style=&quot;width: 100%;&quot;&gt;Loading&lt;/div&gt; &lt;script src=&quot;//; type=&quot;text/javascript&quot;&gt;&lt;/script&gt; &lt;script type=&quot;text/javascript&quot;&gt; function parseQueryFromUrl () { var queryParamName = &quot;s&quot;; var search =; var parts = search.split(&#39;&#38;&#39;); for (var i = 0; i &lt; parts.length; i++) { var keyvaluepair = parts[i].split(&#39;=&#39;); if (decodeURIComponent(keyvaluepair[0]) == queryParamName) { return decodeURIComponent(keyvaluepair[1].replace(/\+/g, &#39; &#39;)); } } return &#39;&#39;; } google.load(&#39;search&#39;, &#39;1&#39;, {language : &#39;en&#39;, style : google.loader.themes.MINIMALIST}); google.setOnLoadCallback(function() { var customSearchControl = new &#39;XXXXXXXXXXXXXXXXXXXXXX&#39;); customSearchControl.setResultSetSize(; customSearchControl.draw(&#39;cse&#39;); var queryFromUrl = parseQueryFromUrl(); if (queryFromUrl) { customSearchControl.execute(queryFromUrl); } }, true); &lt;/script&gt; &lt;?php endif; ?&gt; add_action(&#39;thematic_searchloop&#39;, &#39;my_search_loop&#39;);</code></pre> helgatheviking on "Replacing Wordpress search with Google" Wed, 07 Dec 2011 01:32:47 +0000 helgatheviking 24175@ <p>thematic_search_form() is the form</p> <p>and </p> <p>thematic_searchloop() is the results</p> <p>don't know if that helps </p> Nate H on "Replacing Wordpress search with Google" Tue, 06 Dec 2011 19:55:45 +0000 Nate H 24174@ <p>Aloha,<br /> I have been trying to get Google search results on my webpage and seem to be missing something. I have found no plugin that will work, because google recently changed their Custom Google Search Control panel to not have an iframe option.</p> <p>I thought I was getting somewhere with this article, but it seems like Thematic overrides the search results page: <a href="" rel="nofollow"></a></p> <p>Any insight would be very much appreciated.</p> <p>Thank You,<br /> Nate </p> helgatheviking on "how to edit Search.php?" Fri, 25 Jun 2010 22:29:21 +0000 helgatheviking 13394@ <p>i have also done what dhales mentioned. i think b/c the search form itself is not inside the entry-content div... and so was all out of line on me </p> dhales on "how to edit Search.php?" Fri, 25 Jun 2010 19:27:54 +0000 dhales 13390@ <p>It might not be considered the most "clean" way of doing it, but in still keeping line without modifying any of the core thematic files you can simply copy the entire search.php file and paste it into your childtheme directory. Thereby overwriting the thematic search.php without actually modifying the original one. </p> ductiletoaster on "how to edit Search.php?" Tue, 15 Jun 2010 20:53:17 +0000 ductiletoaster 13120@ <p>Ok basically im building a child theme and have up untill now been able to use hooks and filters to do what i needed. However there is an if else statement in need to edit in the search.php (specifically the else section)</p> <p>else {<br /> ?&gt;<br /> &lt;div id="post-0" class="post noresults"&gt;<br /> &lt;h1 class="entry-title"&gt;&lt;?php _e('Nothing Found', 'thematic') ?&gt;&lt;/h1&gt;<br /> &lt;div class="entry-content"&gt;<br /> &lt;p&gt;&lt;?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'thematic') ?&gt;&lt;/p&gt;<br /> &lt;/div&gt;<br /> &lt;form id="noresults-searchform" method="get" action="&lt;?php bloginfo('home') ?&gt;"&gt;<br /> &lt;div&gt;<br /> &lt;input id="noresults-s" name="s" type="text" value="&lt;?php echo wp_specialchars(stripslashes($_GET['s']), true) ?&gt;" size="40" /&gt;<br /> &lt;input id="noresults-searchsubmit" name="searchsubmit" type="submit" value="&lt;?php _e('Find', 'thematic') ?&gt;" /&gt;<br /> &lt;/div&gt;<br /> &lt;/form&gt;<br /> &lt;/div&gt;&lt;!-- .post --&gt;</p> <p>&lt;?php<br /> }<br /> ?&gt;</p> <p>I would rather avoid editing the search.php file directly because im trying to build a proper child theme! suggestions? thank you ahead of time!!! </p>