WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how to remove the posted by and comments section (5 posts)

  1. conradschoice
    Member
    Posted 4 years ago #

    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

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    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

  3. conradschoice
    Member
    Posted 4 years ago #

    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

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    just google wordpress as CMS

    that'll point you in the right direction.

  5. conradschoice
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.