WordPress.org

Ready to get started?Download WordPress

Forums

Spaces between multiple categories displayed has disappeared in 3.0 (3 posts)

  1. pinkbeats
    Member
    Posted 4 years ago #

    Quite a minor display issue I know but since it's not to do with the theme I'm using (as it was ok pre-upgrade to 3.0) I'm not sure which file I need to tweak in the WordPress core files.

    After upgrading I've noticed that categories are displayed without spaces between them, for example:

    Filed under: 1990s,downtempo,drum'n'bass,electronica @ 10:25 am

    Alternatively you can view a small screen dump here or just view the front page on my blog. The same thing happens when viewing single posts as well. Which file do I need to insert the space into? Thanks in advance.

  2. stvwlf
    Member
    Posted 4 years ago #

    Hi

    NEVER tweak a WordPress core file. Every time WordPress upgrades (with security releases it can be frequent) your changes will be overwritten with the new files and you will have to tweak your changes again.

    What you need to tweak is your theme file, not a WP core file.

    I downloaded and installed your theme, Stealth Gray.

    In theme file index.php, find this line

    <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_author() ?> @ <?php the_time() ?></div>

    add a space after the comma after the_category, so it looks like this
    <?php the_category(', ') ?> rather than the way it currently looks, which is this <?php the_category(',') ?>

    Now the categories will display with a space between them.

    The changed line looks like this (you can copy and paste)
    <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(', ') ?> — <?php the_author() ?> @ <?php the_time() ?></div>

  3. pinkbeats
    Member
    Posted 4 years ago #

    Thanks stvwlf - I thought it may be that. I already modify a couple of WordPress core files that are to do with RSS feeds but good point about the frequent updates - modifying the theme is infinitely preferable. Not sure why it reverted back from having spaces, don't think I'll ever know but thanks for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic