We want to add a Print to PDF button under the Share this Entry social icons area.
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
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);
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