Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
  • #1198006

    Hi there,

    I recently ditched my facebook page and was looking for an alternative to enable feedback and discussions on Twitter. I found the “Discuss on Twitter” plugin (, which is brand new and looks pretty promising.

    In order have the “Discuss on Twitter” button appear at the end of my single posts, I would need to add the following line of code:

    <?php if (function_exists(‘discuss_on_twitter_button’)) { discuss_on_twitter_button(); } ?>
    to the “single.php or similar”.

    Could you guys perhaps point me in the right direction and tell me to which file I would need to add the code and where?

    If possible, I’d like to have this added after the Social Media icons.

    I know the questions concerns a third party plugin, but since the developer isn’t familiar with the Enfold theme, I was hoping that you guys could help me out here. Many thanks.


    Hey MadRhino,

    Are you building posts with the Advanced Layout Builder or Classic editor?
    Best regards,


    Thanks for getting back to me Victoria,

    You are right I should have mentioned that I’d like to implement this on the classic standard blog posts (classic editor).

    I linked to it below.

    Many thanks for looking into this.


    Hi MadRhino,

    You might want to look at this file here:

    or use one of the filters available here:

    If you need further assistance please let us know.
    Best regards,


    Well Victoria,

    I typically spend a fair amount of time researching your forum and available documentation before turning to you guys for support. This time wasn’t any different. So, please forgive me when I have to say that your response didn’t help. It may well be that the information I require is in there somewhere, but since I’m not an expert developer, I was hoping for a bit more specific information on how to make this plugin work on Enfold.

    Many thanks for looking into this again.



    Sorry for the confusion. You can edit the loop-index.php file as @victoria suggested, or the single.php file and place the plugin snippet right below this code.

    get_template_part( 'includes/loop', 'index' );
    $blog_disabled = ( avia_get_option('disable_blog') == 'disable_blog' ) ? true : false;

    Best regards,


    Thanks Ismael, but in order to be able to do that I would need to know where to find that file, don’t you agree? I searched high and low and still came up empty.




    loop-index.php is located in the includes folder, and single.php is in the root folder of the theme.

    Best regards,


    Thank you Rikard,
    Including the snippet in the loop-index.php file actually works, but it places the button above the header of the blog post.
    Is there any chance that we can move this down to, let’s say, above the “Share this entry” element.
    I’d really appreciate it.

    Many thanks



    You have the share links function on line 458, please try to add your code above that:


    Best regards,

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.