Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #367981

    Hi,

    I’m looking for a way to display videos in the portfolio grid more neatly. Ideally, if I click a thumbnail image in the grid, the popup links to a video. But if I click on the title or a link (if possible) in the excerpt, I get taken to the actual portfolio item. Is this possible to set up?

    Right now it’s either/or: I either have it all set to show a video popup (with no way to link to the portfolio item page) or it will just go to the page without showing a video when clicking on the portfolio grid image.

    Also, what would be even more ideal is video support in the Ajax portfolio!

    Thank you

    #368157

    Hey HWS_BASIC!

    Thank you for using Enfold.

    If you want the video to open the custom link then the title to open the actual portfolio page, edit the portfolio.php file located on config-templatebuilder > avia-shortcodes folder. Look for this code:

    $output .= "<h3 class='grid-entry-title entry-title' $markup><a href='{$title_link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>";
    

    replace it with:

    $output .= "<h3 class='grid-entry-title entry-title' $markup><a href='".get_the_permalink($the_id)."' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>";
    

    Cheers!
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.