Tagged: Magazine Hero
Hi,
Is there any custome php function to insert read more link/button under excerpts after magazine hero text?
Thanks for advice
Darko
Hey Dare_Care,
Thank you for the inquiry.
If you have a child theme, you can override the magazine.php file by following the steps below.
// https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb
In the child theme’s functions.php, add this code:
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
function avia_include_shortcode_template($paths)
{
$template_url = get_stylesheet_directory();
array_unshift($paths, $template_url.'/shortcodes/');
return $paths;
}
Then in your child theme create a folder named shortcodes, create another folder called magazine and inside, add a file called magazine.php, then paste this code: https://pastebin.com/VCTFQuQ5
Best regards,
Ismael
Hey Ismael,
As always, you have a creative solution for everything! Works like a charm.
Thanks for the quick and thorough reply, I appreciate it,I hope that other find this quick tip here in the Enfold community.
Thank you for your support
Cheers
Darko
Hi Darko,
I’m glad that Ismael could help you :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko