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: block;
position: absolute;
top: 20%;
left: 0;
}
Related Posts:
- Require featured image
- Horizontal scroller with post_thumbnail’s
- Bind to WPSetAsThumbnail
- Add colorpicker to featured image
- Get specific image size for small viewport width
- How to blur the_post_thumbnail() via blur.js (jquery)?
- How to move featured image to the top of the list?
- Change image on post title hover (more than one instance) – Jquery
- Carousel Hover Image
- jQuery $(this) keyword
- $.ajax – dataType
- How can I get the ID of an element using jQuery?
- My javascript is returning this error: $.ajax is not a function
- Bootstrap – Uncaught TypeError: Cannot read property ‘fn’ of undefined
- How to use jQuery qTip?
- Installing jQuery?
- Email validation using jQuery
- XML Parsing Error: not well-formed in FireFox but good in Chrome
- javascript function wait until another function to finish
- Clear form fields with jQuery
- How to use radio on change event?
- onclick event pass
- id or value
- How can I change the text color with jQuery?
- How to get mouse position in jQuery without mouse-events?
- ajax stopped working when not logged in?
- Is there a way to enable Cross-Origin Resource Sharing for WordPress’ ajaxurl?
- How to get attachment id as soon as it is uploaded through media uploader in jquery?
- Using ‘$’ instead of ‘jQuery’ in WordPress
- jQuery and AJAX Not working with Select Form Element
- Force wp_enqueue_scripts to the HEADER?
- Is it possible to get the logged in username in a jquery script?
- Gravity Forms loading jquery
- Extend 3.5 media uploader plugin to change button name
- WordPress and jQuery [closed]
- Any good lightbox-like option that works in WP 3.2.1?
- Javascript included but alert() function not working
- Disable collapse of admin meta boxes
- How do I activate jQuery/script on demand?
- How to delete post attachments when jQuery is used with a click event on the delete link
- How to properly add Bootstrap and JQuery Javascripts?
- Using multiple versions of jQuery while still calling it like WP likes
- Override default jquery ui library with newer version
- Can I make simple global tooltips in WordPress?
- WordPress Jquery Confliction with Plugin
- Is there a restriction in WP on the use of jQuery load function?
- Periodically getting jQuery “…. is not a function” errors [closed]
- Unwanted content in website title
- show element on page load from external url only [closed]
- How to use datepicker.min.js?
- Sending click events to Google Analytics in WordPress: the easy way
- Accordion scrolls page too low after clicking on the title [closed]
- Exclude some scripts from removing unique scripts from head function
- Passing jQuery into the WordPress media uploader
- jQuery undefined function error with WP jQuery, but works with Google CDN
- How to enqueue jquery in admin and why is it not already there?
- Call a javascript function from another file
- Set TRUE or FALSE based on a wp_localize_script option value
- jQuery script is not working inside ‘head’ tag
- Why doesn’t jQuery use $, and how can I get it do so (GLOBALLY)?
- Simplest ajax form not working when it should
- Get value of selected option in select field in a WordPress form
- How to retrieve WP_Object that is inside an array of another array
- Jquery contact form to send mail to admin [closed]
- WP Customizer: Save a control state
- WordPress Insert not working with ajax
- WP AJAX API with JS file
- need to override function in jquery.ui.datepicker.js
- Dynamic WordPress editor in meta box
- Getting jQuery AJAX to work in WordPress (getting -1)
- How to wrap posts into divs?
- jQuery Drill Down iPod Menu FOUC and Selecting Current page
- Absolute path to stylesheet_dir/images/my_img.jpg does not work?
- Which hook to use when adding ajax to viewer-facing side?
- jquery bookmark links
- WordPress and Modal Popup – how to make the already loaded javascript assets available in modal?
- jquery.min has very long TTFB
- animate.style on wp-login.php
- Theme style overrides the plugin style
- Form validation before submitting
- Special Characters and Spaces are not transferred correctly via AJAX call.
- How to manipulate elements on the Insert Media Attachment settings popup
- Site images are fixed in front of my site content [closed]
- How to toggle custom WP archive list
- I can’t enqueue Suggest.js in frontend – not added
- Jquery code won’t run loaded from WP, but run from console
- Adding text to links when not on the homepage
- how to remove/exclude html coding from json file while export?
- jQuery post method in admin menu
- Running javascript in a child theme. Works in jsfiddle
- How to block action if post is “dirty”?
- $ not defined using jQuery in WordPress
- jQuery Ajax / Modal admin event not firing since 3.6. Seems to not recognize “a” tag
- Auto Select Child categories on Multiple Dropdown – Jquery
- adding the full image path to a wordpress javascript file
- jQuery Live Form Validation in WordPress
- Ensure an external javascript file called from plugin is loaded after jquery is called
- jQuery not working for tabs shortcode [closed]
- Why my vertical tab js code is refreshing the page continuously? [closed]
- bootstrap-slider.js by seiyria not working in wordpress
- Contact Form 7 – Submit Form not working After Ajax Request [closed]