Tagged: comments
-
AuthorPosts
-
October 20, 2013 at 3:11 pm #178056October 21, 2013 at 3:30 pm #178440
Hey lhuston!
1) Please add following code to Quick CSS in Enfold theme options under Styling tab
.comment_meta_container, .sidebar_right .comment_container { display: none; }
2) In your WordPress theme directory, please go to enfold\includes folder and open loop-index.php file and search for
if ( get_comments_number()
It should be in 120th line. Comment lines from 120 to 129 as shown here http://i.imgur.com/G12RLk5.jpg
Regards,
YigitNovember 13, 2013 at 10:57 pm #188033Hi Yigit! I didn’t quite understand the solution you gave to remove the comments count from below the post title.
Could you please re-explain?
November 13, 2013 at 11:42 pm #188060Hi!
You should go to enfold\includes folder and open open loop-index.php file. Then search for
if ( get_comments_number()
It is the starting of the first line as shown here http://i.imgur.com/G12RLk5.jpg
so you should replaceif ( get_comments_number() != "0" || comments_open() ){ echo "<span class='comment-container minor-meta'>"; comments_popup_link( "0 ".__('Comments','avia_framework'), "1 ".__('Comment' ,'avia_framework'), "% ".__('Comments','avia_framework'),'comments-link', "".__('Comments Disabled','avia_framework')); echo "</span>"; echo "<span class='text-sep text-sep-comment'>/</span>"; }
with following
//if ( get_comments_number() != "0" || comments_open() ){ //echo "<span class='comment-container minor-meta'>"; //comments_popup_link( "0 ".__('Comments','avia_framework'), // "1 ".__('Comment' ,'avia_framework'), // "% ".__('Comments','avia_framework'),'comments-link', // "".__('Comments Disabled','avia_framework')); //echo "</span>"; //echo "<span class='text-sep text-sep-comment'>/</span>"; //}
Regards,
YigitNovember 14, 2013 at 12:03 am #188072Yep, that did work in the post single page but it didn’t work on the blog posts I added through the Avia Layout Builder on my homepage. What should I do?
November 14, 2013 at 12:04 am #188073November 14, 2013 at 12:07 am #188076Sure! Here: http://www.havengrid.com.br/
Note that the comments count was removed from the post single page using the tip you gave me, but they still appear in the frontpage.
November 14, 2013 at 12:10 am #188078Hey!
Please try adding following code to Quick CSS in Enfold theme options under Styling tab
.home .slide-meta-comments,.home .slide-meta-del { display: none; }
Cheers!
YigitNovember 14, 2013 at 12:20 am #188087Sorry man, that did not work. Those blog posts are not a ‘post slider’ content element, they are normal ‘blog post’ add with the Avia Layout Builder.
November 14, 2013 at 12:31 am #188098Hey!
Please try adding !important to force it so it should be
.home .slide-meta-comments,.home .slide-meta-del { display: none!important; }
Please browser cache after applying the code and refresh your page a few times. It does work on my installation
Best regards,
YigitNovember 14, 2013 at 12:37 am #188104YEAH! You did it! The trick works great!
Can I please make one more question: how can I hide the author name?
November 14, 2013 at 12:41 am #188106Hi!
You should go back to enfold\includes folder and open open loop-index.php file and find
the_author_posts_link();
it should be on 159th line. You should replace following lines which are between 152-160
echo '</span><span class="text-sep text-sep-cat">/</span>'; } echo '<span class="blog-author minor-meta">'.__('by','avia_framework')." "; echo '<span class="entry-author-link" '.avia_markup_helper(array('context' => 'author_name','echo'=>false)).'>'; echo '<span class="vcard author"><span class="fn">'; the_author_posts_link(); echo '</span></span>';
with
//echo '</span><span class="text-sep text-sep-cat">/</span>'; } //echo '<span class="blog-author minor-meta">'.__('by','avia_framework')." "; //echo '<span class="entry-author-link" '.avia_markup_helper(array('context' => 'author_name','echo'=>false)).'>'; //echo '<span class="vcard author"><span class="fn">'; //the_author_posts_link(); //echo '</span></span>';
If you have more questions, please start a new thread
Cheers!
Yigit -
AuthorPosts
- The topic ‘Remove Comments’ is closed to new replies.