Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #945394

    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

    #946283

    Hey aderal2016,

    Please refer to the following on adding shortcodes to theme files:

    Best regards,
    Jordan Shannon

    #946468

    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?

    #947609

    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

    #953267

    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

    #953719

    Hi Davide,

    Thanks for the feedback. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Adding shortcode (addthis) to post slider’ is closed to new replies.