Hi Josue,
I know this topic has been covered before – https://kriesi.at/support/topic/magazine-element-in-avia-layout-builder-links-to-external-site/
You mentioned you helped a user do this, could I also please get some help with this?
I would like the Magazine element to be able to link to external links but only when needed and not as a default if possible.
Thanks in advance!
Hey janicenisha!
Sorry but it would take a lot of time and code to implement so it would have to be considered custom work. You can contact Josue at his email in that thread or consider creating a feature request here, https://kriesi.at/support/enfold-feature-requests/, and if it gets enough interest we may see some options get added in a future update.
Cheers!
Elliott
Hi Elliot,
Thanks for the quick reply, I actually did email Josue, am not not sure he saw it. Could you tag him for me please?
Thank you again.
Hi!
Josue was already notified about the thread. Please kindly wait to hear from him.
Regards,
Yigit
Hi Yigit,
Sure thing. Thank you for replying.
Hey!
You’d need to install a third-party custom meta box plugin, like:
http://www.advancedcustomfields.com/
https://github.com/rilwis/meta-box
Then you’d create a meta field for the custom link (for Posts), which would then be referenced in /config-templatebuilder/avia-shortcodes/magazine.php, line 527:
$link = get_permalink($entry->ID);
You’d replace that with something like this (assuming you opted for ACF):
$link = get_field('custom_link', $entry->ID) != '' ? get_field('custom_link', $entry->ID) : get_permalink($entry->ID);
Regards,
Josue
Hi Josue,
Thank for replying. Unfortunately am not that experienced a developer to even pretend to understand your suggestion 😓and currently am budget constrained to find one. But thank you so much for taking the trouble to reply.
Will most probably look for a workaround using the standard blog, thanks.