Tagged: comments
-
AuthorPosts
-
October 24, 2013 at 2:14 pm #180232October 25, 2013 at 6:32 am #180501
Hi Robert!
If you want to show the comments on portfolio, you can edit single-portfolio.php and find this code:
$avia_config['size'] = avia_layout_class( 'main' , false) == 'entry_without_sidebar' ? '' : 'entry_with_sidebar'; get_template_part( 'includes/loop', 'portfolio-single' );
Below, add this code:
//wordpress function that loads the comments template "comments.php" comments_template( '/includes/comments.php');
And edit pages.php, find this code:
$avia_config['size'] = avia_layout_class( 'main' , false) == 'entry_without_sidebar' ? '' : 'entry_with_sidebar'; get_template_part( 'includes/loop', 'page' );
Below, add the comments section again.
//wordpress function that loads the comments template "comments.php" comments_template( '/includes/comments.php');
This will only work if you’re not using the Advance Layout Editor for the pages.
Best regards,
IsmaelOctober 26, 2013 at 2:54 am #180918Hi guys,
Can you please tell me how to DISABLE comments on all pages? i am using the facebook comment plugin and i don’t know how to remove de theme’s comment box but keep that comment counting circle , i find that usefull.
thank you!
October 26, 2013 at 1:44 pm #181007Hi Ismael,
Thanks, that enabled comments on pages, but I’m now trying to implement Disqus as my commenting platform. It’s working (diqus) fine for my blog posts but can’t seem to get it to work on pages.
Any suggestions?
Thanks,
RobertOctober 26, 2013 at 5:25 pm #181054Hi!
I’m not familiar with Disqus and maybe you need to modify the theme files to use this service. The code can be found in /wp-content/themes/enfold/includes/comments.php and /wp-content/themes/enfold/includes/loop-comments.php
Regards,
PeterOctober 27, 2013 at 10:36 am #181178Hi again,
please, help me out with the “disable comments on pages ” problem , i really need to know how can i manage to do that, and if it is possible to keep that counting circle when using facebook comment plugin.
thank you all!
October 27, 2013 at 11:36 am #181188Hey!
@crdesign1 – pages do not support comments and thus you can’t remove the comment form on pages. However blog posts support comments. If you want to remove the default comment box open up single.php and delete following line//wordpress function that loads the comments template "comments.php" comments_template( '/includes/comments.php');
The “counting circle” probably won’t work with the Facebook plugin because we use the default get_comments_number function: http://codex.wordpress.org/Template_Tags/get_comments_number which does not support Facebook comments by default. However maybe the plugin author manipulates the function output and overwrites the comments number with the facebook comments api values.
Best regards,
PeterOctober 27, 2013 at 11:55 am #181194Thanks Dude,
unfortunately this block’s my facebook comment too :(
October 28, 2013 at 1:50 am #181326Hi!
@crdesign1: Can you please give us a link to the page and the post with the facebook comment section? We can try to hide the comment via CSS. Please edit a page, click on Screen Options and enable discussion. Uncheck the “Allow comments” section. I’m not sure if this is going to work but please try it.Cheers!
IsmaelNovember 26, 2013 at 10:29 pm #193575Hi, does this mean you can’t add Disqus comments to a page using the advanced layout builder?
pages do not support comments
November 27, 2013 at 6:15 am #193715Hey!
You can, but you’ll need to add the HTML code Disqus provides in the page.php file.
Cheers!
JosueNovember 28, 2013 at 9:07 pm #194496UPDATE: Disqus comments work on pages up until I add content using the advanced layout builder on a page. Once I do that, Disqus comments disappear. Is there a known conflict with Avia and Disqus for pages?
- This reply was modified 11 years ago by codemode.
November 28, 2013 at 9:09 pm #194498Hi!
If you are using ALB in pages you’ll need to add that code in template-builder.php instead, around line 33 after the $content.
Regards,
JosueNovember 28, 2013 at 9:58 pm #194509Hi Josue, I think I got it to work! I added this line of code to template-builder.php:
comments_template( '/includes/comments.php');
Thank you for helping out!
November 28, 2013 at 9:59 pm #194510You are welcome, glad we could help :)
Regards,
JosueDecember 6, 2013 at 12:05 am #196813Thanks Josue. I had searched for this a couple of weeks ago and this solves my problem too. The advanced editor is being used and I was really sweating not being able to use the comments in the portfolio pages.
- This reply was modified 11 years ago by hcentral.
-
AuthorPosts
- The topic ‘enable comments portfolio pages’ is closed to new replies.