Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #320557

    Hi, I am using enfold with a multisite network, I need to add “home_url()” before it outputs the portfolio custom link I am defining. Can you tell me where I can find the portfolio define custom link in the themes code?

    #321044

    Hi!

    Look in /enfold/config-templatebuilder/avia-shortcodes/portfolio.php, around line 380-390.

    Regards,
    Josue

    #322677

    Hi Josue! Thanks for the reply. I am a little confused looking at /enfold/config-templatebuilder/avia-shortcodes/portfolio.php because there are a bunch of variables in that file. In the portfolio custom link in wp I have added a custom link like “services/”. Now in the portfolio.php I want to add “home_url()” to the portfolio custom title link and image link.

    I see the variables $title_link, $link, $custom_link but not sure which one to change…

    Could you show me a code example of what the best way to do it would be?

    #322678

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    add_filter('avf_portfolio_title_link', 'change_portfolio_link_func', 10, 2);
    function change_portfolio_link_func($title_link){
    return home_url().$title_link;
    }

    Cheers!
    Josue

    #330057

    Worked perfect! Thank you Josue :)

    #330059

    You are welcome, glad to help :)

    Regards,
    Josue

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