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

    We want to add a Print to PDF button under the Share this Entry social icons area.

    #1464202

    Hey amyncuih,

    Thank you for the inquiry.

    You may need to edit the enfold/includes/loop-index.php file and add the button below this code, around line 547:

    //share links on single post
    avia_social_share_links_single_post();
    

    Or use the ava_after_content hook in the functions.php file:

    add_action('ava_after_content', function() {
        // add button here
    }, 10);
    

    Best regards,
    Ismael

    #1464462

    I am using the Enfold Child theme. I don’t see an enfold/includes/loop-index.php file but I do have a functions.php file, is that where I can add the ava_after_content code?

    add_action(‘ava_after_content’, function() {
    // add button here
    }, 10);

    #1464500

    Hi,

    is that where I can add the ava_after_content code?

    Yes, you can place the hook in the functions.php file. If you want to override the enfold/includes/loop-index.php, you can create a copy of it in the child theme folder. Please check the documentation below for more info:

    // https://developer.wordpress.org/themes/advanced-topics/child-themes/#templates-parts-and-patterns

    Best regards,
    Ismael

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