Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #510442

    Hi I want to know if it’s possible to make the titles of the link formats to link to the external link instead of the link post.

    The following page was used with Avia Layout Builder: Magazine (content element). I chose only Link Format posts to display.

    The result is the following: http://comprarmag.com/ofertas-de-distribuidores/

    I would like the actual external links to be clicked on and not direct the user to the internal posts.

    Thanks in advance

    #510814

    Hi justinfinocchiaro!

    The magazine element does not have an external link option. Since you do not want to link to the posts at all it would be best to just manually create that list using the special heading element, textblock, and the separator / whitespace element for the line.

    Cheers!
    Elliott

    #510873

    Thanks for the reply Elliott.

    As this page updates with the latest posts, is there a script that I can use to generate my desired result.

    Your suggestion I believe will me make the page static instead of dynamic, correct?

    Any guidance will do and I think I can take it from there….i think…

    Thanks in advance!

    #510883

    Hey!

    You can find the link on line 529 in the /enfold/config-templatebuilder/avia-shortcodes/magazine.php file.

    $title	 		= "<a href='{$link}' {$titleAttr}>".get_the_title($entry->ID)."</a>";
    

    Perhaps you can add a custom field to each post with the external URL and then grab it with get_post_meta, https://developer.wordpress.org/reference/functions/get_post_meta/.

    Best regards,
    Elliott

    #1199334

    I added this code and I am able to get the external link to display in the magazine element but it is adding this code at the end of the link — %C2%A0 — and it is breaking the link:

    Link I add: https://www.nytimes.com/2020/03/18/health/coronavirus-fever-thermometers.html
    Link when clicking the post title in magazine: https://www.nytimes.com/2020/03/18/health/coronavirus-fever-thermometers.html%C2%A0

    Is there a way for the magazine element to just pull the link and not any other content? I want to be able to add text in the body of the post after I insert the link.

    #1201253

    Hi williamslyd,

    I did not see it on the page anywhere. Please give us the link to the page with the issue.

    Best regards,
    Victoria

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.