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?
Hi!
Look in /enfold/config-templatebuilder/avia-shortcodes/portfolio.php, around line 380-390.
Regards,
Josue
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?
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
Worked perfect! Thank you Josue :)
You are welcome, glad to help :)
Regards,
Josue