Support » Fixing WordPress » how to remove the posted by and comments section

  • Resolved conradschoice

    (@conradschoice)


    Hi there

    I am new to wordpress and am building my firs site with it.
    I want it to look more like a normal website than a blog.
    How will I go by removing the posted by and comments section in the frontend?

    Any help will be much appreciated.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • well….depends on your theme. But normally in index.php, single.php and page.php you’d wanna delete the code for that.

    Just kinda read the code to see what displays what you want gone and delete it…

    For instance in my theme, deleting
    <div class="date"><span>Posted by <?php the_author(); ?> under <?php the_category(', '); ?> on <?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?></span></div>

    Would get rid of the author and date

    And something like this `<?php comments_template(); ?>
    `

    controls the comments…..it’ll be different on a per theme basis tho….

    Just have a backup of your theme in case you delete something that makes your site not work

    Thread Starter conradschoice

    (@conradschoice)

    Hi RVoodoo

    Thanks for the quick reply 🙂

    I am using Arclite 1.6 by digitalnature, sorry I didn’t post that…
    thought it was not allowed to post names of templates and companies…

    Anyway thanks for the tip, I reckoned that was the way to do it-
    I am used to building in joomla, in joomla you have a setting in your article/post to set what you want to display or not.

    I am learning wordpress now though, for the user interface is much easier for a client that wants to manage their content themselves.

    Are there any cool tuts you know of that explain how to build a website with wordpress? so it looks like a website and not a blog?

    Thanks

    just google wordpress as CMS

    that’ll point you in the right direction.

    Thread Starter conradschoice

    (@conradschoice)

    Hi RVoodoo

    Thanks for the tip it worked- in the template i used as mentioned above
    I removed in the archive.php –
    <p class=”post-date”>
    <span class=”month”><?php the_time(__(‘M’,’arclite’)); ?></span>
    <span class=”day”><?php the_time(__(‘j’,’arclite’)); ?></span>
    </p>
    <p class=”post-author”>
    <span class=”info”><?php printf(__(‘Posted by %s in %s’,’arclite’),’‘. get_the_author() .’‘,get_the_category_list(‘, ‘));
    -for the post
    and
    ?> | <?php comments_popup_link(__(‘No Comments’, ‘arclite’), __(‘1 Comment’, ‘arclite’), __(‘% Comments’, ‘arclite’), ‘comments’, __(‘Comments off’, ‘arclite’)); ?> <?php edit_post_link(__(‘Edit’,’arclite’),’ | ‘); ?>
    -for the comments

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to remove the posted by and comments section’ is closed to new replies.