Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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 (https://wordpress.org/plugins/discuss-on-twitter/#installation), 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.

    #1198591

    Hey MadRhino,

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

    #1199095

    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.

    #1200620

    Hi MadRhino,

    You might want to look at this file here:
    /includes/loop-index.php

    or use one of the filters available here:

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

    #1201233

    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.

    #1201781

    Hi,

    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,
    Ismael

    #1201990

    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.

    Thanks

    #1202298

    Hi,

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

    Best regards,
    Rikard

    #1202363

    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

    #1202600

    Hi,

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

    avia_social_share_links();

    Best regards,
    Rikard

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