WordPress Jquery Fade in, Fade out effect

I’m following a tutorial. I’ve included the hover.js with the following code: $(function() { // OPACITY OF BUTTON SET TO 50% $(“.imgopacity”).css(“opacity”,”0.5″); // ON MOUSE OVER $(“.imgopacity”).hover(function () { // SET OPACITY TO 100% $(this).stop().animate({ opacity: 1.0 }, “slow”); }, // ON MOUSE OUT function () { // SET OPACITY BACK TO 50% $(this).stop().animate({ opacity: … Read more

Changing the child element’s CSS when the parent is hovered

First of all, I’m assuming this is too complex for CSS3, but if there’s a solution in there somewhere, I’d love to go with that instead. The HTML is pretty straightforward. <div class=”parent”> <div class=”child”> Text Block 1 </div> </div> <div class=”parent”> <div class=”child”> Text Block 2 </div> </div> The child div is set to … Read more

wp_enqueue_scripts hook is not being called

I added the following code to my functions.php: if(!function_exists(‘bi_frontend_scripts’)) { function bi_frontend_scripts() { wp_enqueue_script(‘jquery’); // I originally wanted to do: wp_enqueue_script(‘jQuery.bxSlider’, get_bloginfo(‘template_url’).’/scripts/jquery.bxslider/jquery.bxslider.min.js’, array(‘jquery’)); } } add_action(‘wp_enqueue_scripts’, ‘bi_frontend_scripts’); But apparently neither of the scripts is being enqueued. I didn’t get what my problem was, so I added this script to find out if the hook is … Read more

How to get a DOM Element from a jQuery selector?

I’m having an impossibly hard time finding out to get the actual DOMElement from a jQuery selector. Sample Code: <input type=”checkbox” id=”bob” /> var checkbox = $(“#bob”).click(function() { //some code } ) and in another piece of code I’m trying to determine the checked value of the checkbox. if ( checkbox.eq(0).SomeMethodToGetARealDomElement().checked ) //do something. And … Read more

ajax call in wordpress front end

In my plugin i’m using two ajax calls in back end. that worked well. but to provide the same functionality in front end i loaded the copy of these two functions with another names and my code is: in my plugin main file: function my_action_callback(){ global $wpdb; if (@$_POST[‘id’]) { $daty = $wpdb->get_results(“select eemail_id,eemail_content,eemail_subject from … Read more