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

cforms II now GPL compliant

Published

on

Well, it was a long run, ok, only 24 hours when Mr. Seidel’s announced that he would pull the plug on further updates to the cforms plugin.

But after consideration and many emails, he has released a update to a GPL compliant version of his plugin: 10.2.

Continue Reading

News

Goodbye to cforms II

Published

on

If you are using the cforms II, you may want to head over to Mr. Seidel’s site for more info on the matter.

Continue Reading

News

Revolution Two: Agent Theme

Published

on

Benefits include the Agent theme, unlimited theme support answered by our experts, customization techniques with our detailed theme tutorials and professional design services available by our list of recommended designers.

Revolution 2: Album Theme

Price:

Single License: $59.95 Buy Now!
Pro Plus All-Theme Package: $199.95 Buy Now!

Continue Reading

Random Search Terms

Title

Recent Posts: Fully Net Worth . com

John Singleton Net Worth: 5 Interesting Facts You Should Know

John Singleton Net Worth: 5 Interesting Facts You Should Know

John Singleton is an American producer, director, and screenwriter. He is best known for directing the movie “Boyz n the Hood” for which he was nominated for the Best Director in Academy Awards. Here are five facts about John Singleton including his net worth, career, and much more. 1. John Singleton’s net worth is estimated […]

Cuban Doll Net Worth: 5 Interesting Facts You Should Know

Cuban Doll Net Worth: 5 Interesting Facts You Should Know

There are so many people around the world, who came to fame after being active on social media. Aaliyah Keef, who is best known as Cuban Doll too came out being popular from Instagram. She usually shares a professional lifestyle in her pictures. Here are some amazing facts about Cuban doll including her net worth, […]

Lil Uzi Vert Net Worth

Lil Uzi Vert Net Worth

Lil Uzi Vert Net Worth. Music is growing at a very rapid growth, such was for famous American rapper and songwriter, popularly known as Vert, but later changed to Lil Uzi Vert because fans described his rap flow very fast. His real name is Symere Woods, born on July 31st, 1994 in Philadelphia, Francisville. He […]

Justin Rose Net Worth

Justin Rose Net Worth

Who is Justin Rose? Justin Rose is an English golfer who plays mostly on the PGA Tour. Justin is known for winning the gold at men’s individual tournament and also being the runner up twice at the Masters’ Tournament in 2015 and 2017. Justin’ Early Life Justin was born on July 30, 1980, in Johannesburg, […]

Trending