Display page title on Featured Image hover (2 posts)

  1. becktj07
    Posted 2 years ago #

    Hey everyone,
    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>

    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.

  2. That requires some theme customization and unfortunately that's a commercial theme. We don't support those here, please try the vendor page instead.


Topic Closed

This topic has been closed to new replies.

About this Topic