micalexander
9/3/2013 - 4:39 PM

wordpress:google-custom-search

wordpress:google-custom-search

<?php get_header(); ?>
		<section>

			<!-- Put the following javascript before the closing </head> tag. -->
			<script>
			  (function() {
			    var cx = '000000000000000000000:aaa1aa1aa1a';
			    var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
			    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
			        '//www.google.com/cse/cse.js?cx=' + cx;
			    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
			  })();
			</script>

			<!-- Place this tag where you want the search results to render -->
			<gcse:searchresults-only linktarget="_parent" queryParameterName="s"></gcse:searchresults-only>

		</section>
<?php get_footer(); ?>