Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1089617

    hi

    i want to embed a link in the ajax portfolio preview text that opened the portfolio-item itself. i dont want to write the link manually but with shortcode or something like that. the portfolio title is already linked, so it seems not so difficult. …

    kind regards
    velli

    #1089690

    Hey velli,

    Can you give us more context of what you’re trying to achieve? maybe some screenshots or anything visual.

    Best regards,
    Nikko

    #1089708

    I want to set a “more Detail” link in the ajax portfolio preview text which is linked to the portfolio item post

    screenshot

    #1090403

    Hi der_velli,

    I see, try editing portfolio.php file located in wp-content > themes > enfold > config-templatebuilder > avia-shortcodes > portfolio folder, and find this code (line 866 using Enfold 4.5.5):

    $output .= $content;

    below it add this code:

    $output .= "<a href=\"" . get_permalink($link) . "\">Mehr Details</a>";

    Best regards,
    Nikko

    #1091467

    Hello Nikko

    Thanks for trying to help me.
    I changed the code to
    $output .= "<a href='{$link}'>More Details</a>";
    which works great in the enfold theme, but not in the child theme (with path config-templatebuilder/avia-shortcodes/portfolio)

    Any clue how can i fix it in my child theme?

    best regards
    velli

    #1091515

    Hi velli,

    It won’t work just by using the same path.
    You’ll need to follow the instructions here in order to override the element: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    Best regards,
    Nikko

    #1091598

    oh sure!
    shame on me …works perfect!
    thanks a lot!

    best regards
    velli

    #1091791

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to embed a link to the portfolio item in the ajax portfolio preview’ is closed to new replies.