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
Hey velli,
Can you give us more context of what you’re trying to achieve? maybe some screenshots or anything visual.
Best regards,
Nikko
I want to set a “more Detail” link in the ajax portfolio preview text which is linked to the portfolio item post
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
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
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
oh sure!
shame on me …works perfect!
thanks a lot!
best regards
velli
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon