Tagged: portfolio links
-
AuthorPosts
-
April 27, 2016 at 6:36 pm #623284
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…
-
This topic was modified 9 years, 6 months ago by
ouranos3.
April 30, 2016 at 2:35 pm #625024April 30, 2016 at 4:06 pm #625066I 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.
-
This reply was modified 9 years, 6 months ago by
ouranos3.
May 1, 2016 at 12:40 am #625202Hi,
Ok, replace /enfold/config-templatebuilder/avia-shortcodes/portfolio.php with this:
https://gist.github.com/josueochoa/7ef368f6d2c7e1ef13770ae477d6be3fThat 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,
JosueMay 1, 2016 at 11:23 am #625292Oh, 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 !
May 1, 2016 at 11:49 am #625304You are welcome, glad to help :)
Regards,
Josue -
This topic was modified 9 years, 6 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
