Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #110524
    Mat
    Participant

    Hello,

    These questions relate to the pages that are shown when a user clicks on ‘categories’ (e.g. http://theholyfish.com/category/travel/) or ‘tags’ (e.g. http://theholyfish.com/tag/travel-advice/).

    How do I:
    1) Remove ‘author’ and ‘date’, shown just below the heading.
    2) Make changes to the heading.
    3) Change the order that articles are displayed i.e. so they are not in descending date order.

    Thanks,

    Mat.

    #110528
    Mahesh
    Participant

    @banno2000:
    1. This has been answered in your previous post.
    https://catchthemes.com/support-forum/topic/remove-author-and-date-at-top-of-posts/#post-110527

    And for other two changes you’ve mentioned above, you’ll need to customize the theme further.

    Regards,
    Mahesh

    #110535
    Mat
    Participant

    Thanks for the response. Is it possible to explain how to do just #2 from my list?

    #110540
    Mahesh
    Participant

    @banno2000: For this, you’ll need to create a child theme. You can find more details on creating child theme HERE. You can override the category heading with the following code. Add the following code into the child theme’s functions.php

    add_filter( 'get_the_archive_title', function ( $title ) {
        if( is_category() ) {
            $title = single_cat_title( 'Put your text here: ', false );
        }
        return $title;
    });

    Regards,
    Mahesh

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Changes to Category and Tag pages’ is closed to new replies.