-
AuthorPosts
-
March 26, 2020 at 1:12 pm #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.
March 28, 2020 at 3:16 pm #1198591Hey MadRhino,
Are you building posts with the Advanced Layout Builder or Classic editor?
Best regards,
VictoriaMarch 30, 2020 at 3:59 pm #1199095Thanks 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.
April 3, 2020 at 8:59 pm #1200620Hi MadRhino,
You might want to look at this file here:
/includes/loop-index.phpor use one of the filters available here:
If you need further assistance please let us know.
Best regards,
VictoriaApril 6, 2020 at 2:32 pm #1201233Well 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.
April 8, 2020 at 6:36 am #1201781Hi,
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,
IsmaelApril 8, 2020 at 7:36 pm #1201990Thanks 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
April 9, 2020 at 1:59 pm #1202298Hi,
loop-index.php is located in the includes folder, and single.php is in the root folder of the theme.
Best regards,
RikardApril 9, 2020 at 4:09 pm #1202363Thank 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
April 10, 2020 at 8:02 am #1202600 -
AuthorPosts
- You must be logged in to reply to this topic.