Category archive page – change title

  • Posted in : Read WP
  • CrocusReview
    Participant

    How can I change the title/headline of the Category archive pages so just the category name appears?

    For example, on this page: http://crocusreview.com/category/table-of-contents/literature/

    instead of the page title being “Post Category > Literature” I’d like it to be just “Literature” (in the font size and color currently used for “Post Category”)

    Thanks,

    Gary

    Mehmet S.
    Keymaster

    Hi, you can edit that line in your theme’s cat-sidebar.php file.

    Thanks

    CrocusReview
    Participant

    Thanks.

    It looks like this is the part of that file that needs to be changed. Can you show me how to change this coding to get the effect I mentioned above? (Sorry, I don’t have much experience with such things.)

    Gary

    Mehmet S.
    Keymaster

    From:

    <h1 class="page-title"><?php echo __( 'Post Category', 'read' ); ?> <span class="on"><?php echo __( '→', 'read' ); ?></span> <span><?php echo single_cat_title(); ?></span></h1>
    

    To:

    <h1 class="page-title"><span><?php echo single_cat_title(); ?></span></h1>
    
    CrocusReview
    Participant

    Hmm, this customization did not work. I think a different approach might actually be better…

    Can you show me how to make the category name that appears after the arrow in the category archive page headline to be the same size and color as “Post Category” in the headline?

    Sample page: http://crocusreview.com/category/life/

    Also, can you show me how to increase the size of the individual post headlines on category archive pages like this?

    Thanks,

    Gary

    Mehmet S.
    Keymaster

    Do the above step in your cat-nosidebar.php file.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register