Tagged: portfolio links
Hi Enfold support team,
I tried to use this forum post from Ismaël to create a new Avia shortcode that would open portfolio links in new tabs (target_blank) : https://kriesi.at/support/topic/need-new-tab-external-link-in-portfolio-grid/
That works wells, but now, the links from the standard Avia Portfolio Grid are also opening in new tabs …
Could you help me with that problem ? Here is the demo page :
http://586814b516.url-de-test.ws/enfoldsupport/010_test_new-element_avia_portfolio_grid-with_target_blank/
Thanks for all.
PS : PAste the demo url in the forum post gave me a screen capture with no link, so i used the “code” function for the url…
I don’t think so, Josue.
This Avia option asks if you want to open the portfolio item in a new “normal” page (target _self), or using the Avia Ajax portfolio system.
But it does not open the link in a new browser tab (target _blank).
Thanks for your help though.
Hi,
Ok, replace /enfold/config-templatebuilder/avia-shortcodes/portfolio.php with this:
https://gist.github.com/josueochoa/7ef368f6d2c7e1ef13770ae477d6be3f
That will add an option to set links to open in a new Page (target='_blank'
), you can have this in a child theme – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Best regards,
Josue
Oh, that was very kind of you, Josue, to take the time to do this ! That’s the best solution of course. Works fine in child theme shortcodes. Thanks a lot !
You are welcome, glad to help :)
Regards,
Josue