Connect with us

News

How to: Show/Hide any div box with jQuery in WordPress

Published

on

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:

<script type="text/javascript">
jQuery(document).ready(function() {
 // hides the slickbox as soon as the DOM is ready
  jQuery('#toggle-search').hide();

 // toggles the slickbox on clicking the noted link
  jQuery('a#slick-slidetoggle').click(function() {
	jQuery('#toggle-search').slideToggle(400);
	return false;
  });
});
</script>

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>

That’s it.

News

Winner: Free Revolution Theme

Published

on

I was just sitting in the back listening to Shayne Sanderson from Insctinct, who talked about their e-commerce plugin and a new plugin that released today.. Once he finished, Jason dug his hand in the ticket bucket and my ticket was called. I won a Pro Revolution Theme Pack from Brian Gardner.

Totally sweet!

Continue Reading

News

Wierd custom fields

Published

on

I am not sure if this is from a pluigin error. But I suddenly have custom field names “atfemail_” and random letters and digits @ random numbers and digits dot com.

hmm.. Any idea’s? I think it may be from the subscribe to comments plugin.

Continue Reading

News

WordCamp Las Vegas Near

Published

on

The time is near, only 6 hours and some change to to get your tickets to WordCamp in Las Vegas! I have my tickets, and so do 125 other at the moment.

If you have not purchased tickets and are going to be in the LV area, or planning on heading that way, well then head over to Eventvibe to get your tickets. Have I mentioned tickets yet?

See you in Sunny, but cold Vegas!

Continue Reading

Random Search Terms

Title

Recent Posts: Fully Net Worth . com

Jeremy Lock Net Worth- How Rich Is D’Andra Simmons Husband?

Jeremy Lock Net Worth- How Rich Is D’Andra Simmons Husband?

Jeremy Lock is a retired States Air Force Master Sergeant Combat Photojournalist. Throughout his career as a civilian photographer, Lock was able to capture some iconic scenes that show both the good and ugly sides about some of the realities of this world. As of 2019, Jeremy Lock net worth is estimated to be $2 […]

Cooper Hefner Net Worth: How Rich is Hugh Hefner’s son Actually?

Cooper Hefner Net Worth: How Rich is Hugh Hefner’s son Actually?

Cooper Hefner is an American businessman and writer. He is known to many as the youngest son of one and only Hugh Hefner. As of 2019, Cooper Hefner net worth is estimated to be $43 million. Cooper was born on September 4, 1991, in Los Angeles, California to Hugh Hefner and Kimberley Conrad. He went […]

Gordon Sondland Net Worth: How Rich is the US Ambassador to EU?

Gordon Sondland Net Worth: How Rich is the US Ambassador to EU?

Gordon Sondland is an American businessman and a diplomat. He is the United States Ambassador to the European Union. As of 2019, Gordon Sondland net worth is estimated to be $60 million. Sondland was born on July 16, 1957, in Seattle, Washington to a Jewish family. His parents Gunther Sondland and Frieda fled Europe during […]

Briana DeJesus Net Worth: How Rich is the Teen Mom Star Actually?

Briana DeJesus Net Worth: How Rich is the Teen Mom Star Actually?

Briana DeJesus is an American television personality who is best known for being a part of the reality show called Teen Mom 2 and also appeared in Teen Mom 3. As of 2019, Briana DeJesus net worth is estimated to be $500,000. She was born on May 21, 1994, in Orlando, Florida. Having had kids […]

Trending