Okay
  Public Ticket #172542
Portfolio Link
Closed

Comments

  • Leah started the conversation
    How to I link the individual portfolio categories on the home page all to the RESOURCES page? The portfolio images on the homepage are just to direct the viewer to all our resources at once. Thanks!
  •  291
    Paul replied

    Hi Leah,

    I am not sure I understand the question correctly. Did you mean to make all the portfolio images linking to the resource page (http://www.epicpubllc.com/resources/) ? If so, there is no option for that out of the box. By default, each one will link to its own single page. 

    If you would like to do that, you would need to manually customize the UXbarn Portfolio plugin. You can find the related code in this path and file:

    [root]/wp-content/plugins/uxbarn-portfolio/includes/shortcodes.php

    It is the code for outputting the portfolio element.

    Regards,
    Paul

  • Leah replied

    Thanks Paul.Yes,I'd like all images to link to resources page. I found the plug-in code but being a Wordpress newby I'm not finding where to insert/ redirect it.

  •  291
    Paul replied

    In the file, please find this code:

    <a href="' . get_permalink() . '"></a>

    Try changing it to:

    <a href="http://www.your-target-url.com"></a>

     

    Another one is:

    $output .= '<a href="' . get_permalink() . '"' . $anchor_title . ' class="image-link">' . $img_tag . '</a>';

    Change the code to:

    $output .= '<a href="http://www.your-target-url.com"' . $anchor_title . ' class="image-link">' . $img_tag . '</a>';

     

    Notice that the changes here are for the "href" attribute of the anchor tag forcing it to redirect to the given URL. Also be careful of the quotation marks when editing.

    If you are not sure how to do this, please find a developer / freelancer to help you out for the customization.