Hello buddies:)
Please I need help regarding the following issue: I configured the addthis plugin and it works great with Enfold, so what I’m trying to achieve is to place the addthis share buttons below the entry post preview ( [addthis tool=”addthis_inline_share_toolbox_ebwt”] ). I found the postslider.php (below avia-shortcodes folder) between the lines 624-626 that I suppose is where I have to make the customization, but I got no luck…
Please can you help me?:D
Thanks in advance
Davide
Hey aderal2016,
Please refer to the following on adding shortcodes to theme files:
Best regards,
Jordan Shannon
Hello Jordan,
thanks for the trick, I tried adding this below the code I suppose it’s the one to edit:
$markup = avia_markup_helper(array('context' => 'entry_content','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
$excerpt = apply_filters( 'avf_post_slider_entry_excerpt', $excerpt, $prepare_excerpt, $permalink, $entry );
$output .= !empty($excerpt) ? "<div class='slide-entry-excerpt entry-content' $markup>".$excerpt."</div>" : "";
echo do_shortcode("[addthis tool=”addthis_inline_share_toolbox_ebwt”]");
but nothing happens to the postslider :(
what am I doing wrong?
Hi,
I don’t think that’s going to work because the share icon shortcode will fetch the id of the current page, not the id of the post items in the blog grid or post slider. If you want to test it, replace the modification with this line.
$output .= do_shortcode("[addthis tool='addthis_inline_share_toolbox_ebwt']");
Best regards,
Ismael
Hello Ismael,
it’s right I didn’t think on it. The shotcode works and I can see the social icons, but ofc don’t share the post but the page.
Could be an interesting feature anyway :D
Thanks we can close the thread.
Best,
Davide