Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1396184

    Hi,
    Is there any custome php function to insert read more link/button under excerpts after magazine hero text?

    Thanks for advice
    Darko

    • This topic was modified 1 year, 9 months ago by Dare_Care.
    #1396310

    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

    #1396359

    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

    #1396414

    Hi Darko,

    I’m glad that Ismael could help you :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Magazine Hero readmore link/button’ is closed to new replies.