WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing "Posted in" from posts (arclite theme) (3 posts)

  1. sebii
    Member
    Posted 4 years ago #

    Hi all,

    Just curious, I am running a birding website so the category list can be quite long for a single post. How do I remove it? I'm pretty sure it has something to do with the following code in /themes/arclite/index,php

    <span class="info"><?php printf(__('Posted by %s in %s','arclite'),''. get_the_author() .'',get_the_category_list(', '));
    ?> | <?php comments_popup_link(__('No Comments', 'arclite'), __('1 Comment', 'arclite'), __('% Comments', 'arclite'), 'comments', __('Comments off', 'arclite')); ?> <?php edit_post_link(__('Edit','arclite'),' | '); ?>

    What do I delete?

    Also, how can I bold the font for "Comments"? Is that possible?

    Thanks in advance.

  2. s_ha_dum
    Member
    Posted 4 years ago #

    To delete all of the category links delete this:

    <?php printf(__('Posted by %s in %s','arclite'),''. get_the_author() .'',get_the_category_list(', '));
    ?> |

    Unfortunately that gets rid of some of some other stuff too. To just eliminate the categories and leave the 'Posted by <author>' you'll have to edit the printf a little.

    <?php printf(__('Posted by %s','arclite'),''. get_the_author()); ?>

    The fourth argument in the comments_popup_link function is a css class. In this case, its 'comments'. You should be able to edit your stylesheet to bold the comments link. You'll need something like a.comments{font-weight:700;}. You may also want to set your anchor psuedo classes as well.

  3. sebii
    Member
    Posted 4 years ago #

    Thanks very much! Your response was extremely helpful.

    Cheers,
    Seb

Topic Closed

This topic has been closed to new replies.

About this Topic