Comments and posted by

Discussion in 'ColorWay WordPress Theme' started by agaricus, Nov 8, 2012.

Thread Status:
Not open for further replies.
  1. agaricus

    agaricus New Member

    Joined:
    Jul 13, 2012
    Messages:
    29
    Likes Received:
    0
    I would like to remove the ability to post comments (in my blog page). I have unticked: "allow comments" in the setting but it still allows.

    Is it also possible to remove the "posted by" text?

    http://www.agaricus.co.za/?page_id=43

    Thanks!
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    1.For your first issue

    Go to blog.php present in your theme directory and remove the code given below

    Code:
    <?php comments_popup_link('No Comments.', '1 Comment.', '% Comments.'); ?>
                            <a href="<?php the_permalink() ?>">Continue Reading...</a> </li>
                        <!-- End the Loop. -->
    Sending image for reference

    [​IMG]



    2.For your second issue

    Go to blog.php present in your theme directory and remove the code given below

    Code:
    Posted on
                            <?php the_time('F j, Y'); ?>
                            by
                            <?php the_author_posts_link() ?>
                            in
                            <?php the_category(', '); ?>
    Sending image for reference

    [​IMG]



    This will solve your issue.
     
  3. agaricus

    agaricus New Member

    Joined:
    Jul 13, 2012
    Messages:
    29
    Likes Received:
    0
    Thank you, the second point (removal of author) worked. However it is still possible for people to post comments. Please see http://www.agaricus.co.za/?p=618 for what I mean.

    Edit: In addition to this, I have noticed that when you use the search tool it comes up with articles and then says posted by "admin" etc... How can I remove this so that it does not say who has posted it in the search results? Please see attached screen shot for what I want to remove...
     

    Attached Files:

  4. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    1) Open single.php and remove same code that you have removed from blog.php.

    2) Open search.php and remove code given below as shown in image.
    Code:
    Posted on <a href="#">
                                  <?php the_time('F j, Y'); ?>
                                  </a> by <a href="#">
                                  <?php the_author_posts_link() ?>
                                  </a> in <a href="#">
                                  <?php the_category(', '); ?>
                                  </a>
    [​IMG]
     
  5. agaricus

    agaricus New Member

    Joined:
    Jul 13, 2012
    Messages:
    29
    Likes Received:
    0
    Thank you,
    1) the code :
    <?php comments_popup_link('No Comments.', '1 Comment.', '% Comments.'); ?>
    <a href="<?php the_permalink() ?>">Continue Reading...</a> </li>
    does not exist on single.php but I found the correct code to delete:
    <?php comments_template( '', true ); ?>

    All seems to be working correctly now.
     
Thread Status:
Not open for further replies.

Share This Page