News
How to: Show/Hide any div box with jQuery in WordPress
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
Possible photo tagging plugin update
Have you tried to download any of the community tagging plugins with no prevail?
I recently posted a comment in response to a post on Justin Tadlock’s WordPress site about custom taxonomies. Then was asked by a reader how I integrated my custom taxonomies with one of Matt Mullenwegs “tagging” plugin.
Anyway, I tried to install and use both plugins before with no luck. But decided to download Community Tags and try my luck again. With some hacking, I got it working. For a demo you can check out and tag (someone you know or recognize only, please) a picture over at my photography site, http://thefrosty.com.
Anyway, before I get carried away, I had a reader email me and ask how I integrated the plugin. And I thought I would ask you if you would be interedted in a re-re-release of the plugin.
At present time I do have some array
errors, but everything works just fine as is.
Your comment feedback would be great! Thanks!
News
Think outside the box
Start to think outside the box. UnBox is a new WordPress theme for the willing. Using jQuery in fluidity.
Officially released today, this theme is a custom WordPress theme for those who want something different.
Built with loads a jQuery tricks and features. This theme is available for purchase. And dhould be up on ThemeForest as soon as they process the files.
For now, you can check out the working demo, and if you like the theme, use this link to [wp_eStore_buy_now:product_id:2:end].
[wp_eStore:product_id:2:end].
News
Looking for guest athours
If you’ve read the post entitled “WPCult for sale”, you’ll know whats going on around here. Until a sale is or isn’t made, I am going to be looking for some additional support. Are you interested in contributing to WPCult? Check out this page with more info and contact me or leave a comment below.
Not mentioned on the write for us page, I am going to be working on a way to share revenue with the adsense banner ads on post you’ve written. Look for that soon.
-
Tips & Tricks4 weeks ago
WordPress Security Hacks
-
Pages3 months ago
Write For Us – Guest Post
-
Showcase4 months ago
StylizedWeb.com
-
Tips & Tricks2 months ago
Remove the title attribute using jQuery
-
Tips & Tricks5 months ago
How to: show/hide a widget in WordPress with jQuery
-
Plugins5 months ago
Top Membership plugins
-
Tips & Tricks4 months ago
Limit the characters that display on the_title
-
Tips & Tricks2 months ago
Remove spaces when echoing the_title
You must be logged in to post a comment Login