Clear Line theme

Vatuma Support » Clear Line theme129

How to remove "Category: "Name of category" from top of page (4 posts)

About This Topic

Tags

  1. ShawnaR
    Member
    Posted 6 months ago
    #

    Hello,

    I volunteer for an animal rescue organization and I am working on their website. I am using posts to display the animals that are available for adoption and those which have already been adopted. To organize them, I am using categories. The problem I am having is, when a category is viewed, the category name appears at the top of the page. I think this looks very unprofessional and I would like to know how to make this not show on the page.

    The url for the website is globalanimallovers.com. The pages I am referring to are the "Available for Adoption" page and the "We’ve Been Adopted!" page. I am not sure if this is theme specific or not. If it isn't I apologize. Any insight you can provide is very greatly appreciated.

    Cheers,
    -Shawna

  2. Anna
    Member
    Posted 6 months ago
    #

    I think you must search in archive.php the line <?php elseif ( is_category() ) : ?> and delete or comment the line below <?php printf( __ ......?>

  3. ShawnaR
    Member
    Posted 6 months ago
    #

    Excellent! Thank you so much.

  4. soniah
    Member
    Posted 3 months ago
    #

    How to display tags instead of categories:

    * edit clear-line/functions.php
    * replace <?php the_category(', '); ?>
    with
    <?php the_tags('', ', '); ?>

    ie


    # git diff --cached
    diff --git a/wp-content/themes/clear-line/functions.php b/wp-content/themes/clear-line/functions.php
    index 82f9633..504bdd3 100644
    --- a/wp-content/themes/clear-line/functions.php
    +++ b/wp-content/themes/clear-line/functions.php
    @@ -339,7 +339,7 @@ function echoPostInfo($column = false)
    <span class="filledunder"><?php _e('Filled under','clear-line')?></span>
    <?php endif;?>
    <span class="filledunder">
    - <?php the_category(', '); ?>
    + <?php the_tags('', ', '); ?>
    </span>
    </td>
    <?php if (!$column):?>

Reply

You must log in to post.

Vatuma Support » Clear Line theme129