Title on hovering on the featured image

Alternative approach: <li class=”cycle-item slide-<?php echo $i; ?>”> <span class=”featured-title”><?php the_title(); ?></span> <a href=”https://wordpress.stackexchange.com/questions/97055/<?php the_permalink();?>”><?php the_post_thumbnail(‘featured’); ?></a> </li> then hide the span with CSS, show it on hover of the <li> element, position it over the image with CSS. Example: li.cycle-item { position: relative; } li.cycle-item .featured-title { display: none; } li.cycle-item:hover .featured-title { display: … Read more

Ajax Validation for reCaptcha

Just found out that reCaptcha actually rejects CAPTCHAs which are submitted to their server more than once. Since I was using the WP-reCAPTCHA plugin, the plugin resubmitted the CAPTCHA after my AJAX submission. So I just commented out a line from the plugin that does the submission, which is in file recaptcha.php, line 27: $this->register_filters();

Javascript not loading on certain page

Looks like it is your if statement possibly. It’s kind of tricky to say “if it’s not this or if it’s not that, then I want this to happen”. Normally you have to negate and change the operator. Try <?php if (!is_home() && !is_front_page()) { ?> This says “I want this to run on every … Read more

add custom HTML css with js doesn’t work

You cannot use the $ selector freely like this, because WordPress loads jquery in noconflict mode. The most common workaround is to wrap all functions in your script file: jQuery(document).ready(function($) { … scripts … } If you want to put the script directly in the head of the file (not recommended) it would go like … Read more