Display page title on Featured Image hover
Im new to php so I need some help with this one.. I would like to have the page title appear on my featured images on mouse hover. Currently, my theme has an option in the admin panel to set text for the featured image on hover, but it is the same for all the images (VIEW PROJECT) in the portfolio gallery on my home page.
The website can be seen here. http://www.tylerbeckdesign.com
It must have something to do with this bit of code from template-portfolio.php file because the css for #portfolio.ext.p is kept there in my style.css.
[ Moderator note: please post code in backticks or use the code button. ]
<a>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'wpzoom'), get_the_title()); ?>"> <?php get_the_image( array( 'size' => 'portfolio-thumb', 'width' => 285, 'height' => 190, 'link_to_post' => false ) ); ?> <span class="ext"> <span class="p"><?php echo option::get('portfolio_project_title'); ?></span> </span> </a>
I have seen other people posting about this on the forums, and I tried pasting in the code that worked for them, but it seems that my admin panel is overriding my custom code to display the page name on hover and goes back to the default VIEW PROJECT text on hover for all images.
Thanks in advance for your replies.
- The topic ‘Display page title on Featured Image hover’ is closed to new replies.