If you take a look at my current sidebar (right) and see the heading Google Search you’ll notice that when you click it the Google Search box show’s into view.
Let me show you how this is done.
First make sure that your WordPress site is calling jQuery, buy pluggin this code into our
header.php file above the
<?php wp_head(); ?> text:
<?php wp_enqueue_script('jquery'); ?>
Then anywhere above the
</head >, plug this code in:
That’s simple, huh. Okay now lets write the Search code:
<h2><a href="#" id="slick-slidetoggle">Google Search</a></h2> <div id="toggle-search" style="padding:10px;"> <form method="get" id="search" action="<?php bloginfo('home'); ?>/"> <div> <input type="text" value="Enter Keyword" onclick="this.value='';" name="s" id="s" /> <input type="text" name="search-button" id="search-button" value="<?php _e('Search') ?>" /> </div> </form> </div>
Random Search Terms
Disable caching of your site or post
I talked about Disabling search engine on search pages in a previous post using the meta tag. Today lets go...
WordCamp Las Vegas Near
The time is near, only 6 hours and some change to to get your tickets to WordCamp in Las Vegas!...
Disable search engine on search pages
A good idea when trying to get the most out of your blog is usging the meta tag to tell...
powered by WassUp
Recent Posts: Fully Net Worth . com
Summer Marjani Walker is an American singer-songwriter who is currently signed with LoveRenaissance and Interscope Records. Here are some interesting facts about Summer Walker: 1. She considers Amy Winehouse early childhood inspiration Walker was born on April 11, 1996, in Atlanta, Georgia. She has kept much of her childhood disclosed but in an interview, she did mention […]
Fiona Hill is a British born American foreign affairs specialist. Hill previously worked as a former official at the National Security Council specializing in Soviet, Russian, and European Affairs. As of 2019, Fiona Hill net worth is estimated to be $1.5 million. Hill was born in October of 1965, in Bishop Auckland, County Durham in […]
Pete Buttigieg is the mayor of South Bend, Indiana. He is also an American war veteran and a former consultant. In the recent days, Buttigieg has been growing his name with him announcing candidacy for the Presidential election in 2020. Then President Obama called him as one of four Democrats who represented the future of […]