Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #562840

    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!

    • This topic was modified 8 years, 11 months ago by janicenisha.
    #562843

    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

    #562848

    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.

    #563387

    Hi!

    Josue was already notified about the thread. Please kindly wait to hear from him.

    Regards,
    Yigit

    #563400

    Hi Yigit,

    Sure thing. Thank you for replying.

    #564541

    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

    #567624

    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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Magazine element in avia builder to link to external site’ is closed to new replies.