Hyperlinking Portfolio Images

How to make the images inside the portfolio page: https://www.jrcinco.com/portfolio-projects/ hyperlink to the same as the project name. There is some simple additional css that can be added but I don't recall the necessary code.

  • Nithin Ramdas
    • Support Wizard

    Hi JRC,

    Hope you are doing good today. :slight_smile:

    You can try the following jQuery, and see whether it fits to your needs:

    add_action( 'wp_footer', 'wpmu_link_image' );
    function wpmu_link_image() {
    ?>
    <script type="text/javascript">
    jQuery(document).ready(function() {
    jQuery(".featured-image-desc").click(function() {
    window.location = jQuery(this).find("a").attr("href");
    return false;
    });
    });
    </script>
    <?php
    }

    You can implement the code as a mu-plugins, please check this manual on how to implement as mu-plugins:

    https://wpmudev.com/manuals/wpmu-manual-2/using-mu-plugins/

    The following CSS, should also add a pointer to the images when the mouse is hovered:

    .feature-product-section .tg-feature-product-layout-3 .featured-image-desc {
    cursor: pointer;
    }

    The above CSS can be added under Appearance > Customize > Additional CSS of your WordPress dashboard.

    I hope this helps. Please let us know if you have any further query. Have a nice day ahead. :slight_smile:

    Regards,

    Nithin

  • Nithin Ramdas
    • Support Wizard

    Hi keto ultra,

    Hope you are doing good today. :slight_smile:

    I checked the given screenshot, but I’m afraid, it isn’t clear what exact could be causing both these highlighted issue.

    “Anchor Tags” would normally cause, if there are any empty link tags, for example:

    <a href="https://www.yoursite.com">
    </a>

    “Redundant Anchor Titles” occurs, if the anchor text, and titles are the same. Checking your website at the moment, I wasn’t able to notice any such issue.

    Since this tickets initial query is related to another topic which is resolved, would highly recommend you to open a new Live Chat with us, via the following link:

    https://wpmudev.com/hub/support/#get-support

    So, that we could give a closer look, and help resolve this issue asap. Have a nice day ahead. :slight_smile:

    Regards,

    Nithin