Viewing 8 replies - 1 through 8 (of 8 total)
  • Change <div class="post"> to <div class="post tagspage"> and then follow the suggestion I gave previously.

    Thread Starter ayohay

    (@ayohay)

    Like this?
    <?php /*
    Template Name: All Tags
    */ ?>
    <?php get_header(); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class=”post tagspage”>
    <div <?php post_class(‘tagpage’);?>>
    .tagspage a {
    font-family:georgia,times,serif;
    margin:0 0.5em;
    }

    <h2><?php the_title(); ?></h2>
    <?php wp_tag_cloud(‘format=separator=whitespace separated&list=ul&unit=pt&number=1000&smallest=10&largest=32’); ?>

    </div>
    <?php endwhile; endif; ?>

    No. You need to add:

    .tagspage a {
    font-family:georgia,times,serif;
    margin:0 0.5em;
    }

    to your theme’s stylesheet,

    Thread Starter ayohay

    (@ayohay)

    Ah, Thank you for that. The spaces finally show. My new theme displays the tag page strange but the space problem is finally fixed. Thank you, you’re a genius!!

    No problem ??

    Thread Starter ayohay

    (@ayohay)

    While you’re here… Do you know why the new layout would cause it to do this? https://ayohay.com/blog/all-tags/

    Thread Starter ayohay

    (@ayohay)

    The new code created a little box with only a few tags in it. It doesn’t spread across the entire page anymore..

    If you want to add the tag to your header, try changing <div class="post tagspage"> to something like <div class="tags-header"> and then styling the .tags-header class in style.css.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘whitespace on tag cloud’ is closed to new replies.