•  
Posts Tagged ‘Show/Hide’

How to: show/hide a widget in WordPress with jQuery

By Austin On May 11, 2009 5 Comments

In

Click here to continue reading


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

By Austin On February 2, 2009 38 Comments

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 notedClick here to continue reading