Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Thanks for using Tracks!

    There isn’t currently a way to add more categories to the first page on Tracks. However, all of the categories for the Post will be displayed on the Post page.

    Also interested in a solution in the future ??

    I actually figured a way to do this:

    Firstly make sure you have a child theme.

    Then in your child theme edit the post-meta.php file by replacing
    <?php ct_tracks_category_link();?>
    with
    <?php the_category( $separator, $parents, $post_id ); ?>

    Then, in your child stylesheet, add the following:

    ul.post-categories {
        list-style-type: none;
    }
    
    ul.post-categories li {
        display: inline-block;
    }
    
    ul.post-categories li:after {
        content: " /";
    }
    
    ul.post-categories li:last-child:after {
        display:none;
    }

    That should display all the post’s categories. If you have quite a few, you’ll need to adjust margins to get them to appear on one line on the homepage.

    Theme Author Ben Sibley

    (@bensibley)

    @douglaskurring nice solution, thanks for sharing!

    No problem, thanks for the great theme!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘More categories on the page’ is closed to new replies.