contact form in template with jquery,validate and ajax

WordPress is running Jquery in noconflict mode. (WordPress Codex Reference) or read this brief article I posted some time ago. View it here. You need to replace: $(document).ready(function(){ With this: jQuery(document).ready(function($){ So all together, try this: jQuery(document).ready(function($){ $(“#contact_form”).validate({ rules: { name: “required”, email: { required: true, email: true }, message: “required” }, messages: { name: … Read more

Extending a theme: build new features as plugin or core modules?

If you’re going to want to mix-and-match these modules, I would suggest developing them as plugins or using a plugin such as Code Snippets to separate your modules, making them easier to work on, expand upon, and deactivate/activate. Either way, separating your modules from your theme will make customizing deployments faster while increasing the organization … Read more

Allow different tags in widget titles

I did not understand what you are doing in the function. See below example how title can be wrapped in the html tag: function html_widget_title( $title ) { $output=”<span class=”icon-someicon”>”; $output .= $title; $output .= ‘</span>’; return $output; } add_filter( ‘widget_title’, ‘html_widget_title’ );

Removed jQuery script from header.php , any problems?

Here is the correct way to include jQuery in your theme. Open functions.php in your theme folder and add this to it: // Proper way to enqueue scripts and styles function royal_insert_jquery(){ wp_enqueue_script(‘jquery’, false, array(), false, false); } add_filter(‘wp_enqueue_scripts’,’royal_insert_jquery’,1); This will load the WordPress bundled version of jQuery and will make sure that it is … Read more