Support » Fixing WordPress » Removing “Posted in” from posts (arclite theme)

  • Resolved sebii


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • s_ha_dum


    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.



    Thanks very much! Your response was extremely helpful.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing “Posted in” from posts (arclite theme)’ is closed to new replies.