• I’ve looked through tons of threads for this info and nothing has addressed this specifically. I understand that in the stylesheet there are styles to control the actual post titles “globally”. In the sidebar.php the code for this is:

    <div class=”sb-latest”><h2><?php _e(‘Latest’,’k2_domain’); ?></h2>

      <?php wp_get_archives(‘type=postbypost&limit=10’); ?>

    </div>

    Yes this is a K2 theme, and I’ve searched the K2 forums as well. Do I need to write another style pertaining JUST to the “Latest” post links? If so, I’m not sure how to go about this. I’ve tried “sb-latest”… didn’t work.
    I am new to css, still getting the feel for it. Any help would be appreciated in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter sutyakdes

    (@sutyakdes)

    I should have clarified that I know CSS goes in the stylesheet, I just wanted to also include the actual code from the sidebar.php to see if there’s any way to actually accomplish what I need to from there.

    You probably figured this out by now, but it’s marked as unresolved, so here it is.

    Yes, either write a style called .sb-latest, or write one and call it whatever you want, and change that div class=”sb-latest” to your new class name (preferable).

    This works:

    .sb-latest {
    line-height: 5em;
    }

    Or change the div class in sidebar.php to class=”yourclass”, and this will work, too:

    .yourclass {
    line-height: 5em;
    }

    5em is really extreme, but you’ll definitely notice it and can change it something more sensible afterwards. The default for the sidebar (which is the .secondary class) is 1.5em, so 2em will probably get you in the ballpark.

    Press Ctrl + F5 to force a reload from the server if nothing happens.

    You probably figured this out by now, but it’s marked as unresolved, so here it is.

    Yes, either write a style called .sb-latest, or write one and call it whatever you want, and change that div class=”sb-latest” to your new class name (preferable).

    This works:

    .sb-latest {
    line-height: 5em;
    }

    Or change the div class in sidebar.php to class=”yourclass”, and this will work, too:

    .yourclass {
    line-height: 5em;
    }

    5em is really extreme, but you’ll definitely notice it and can change it something more sensible afterwards. The default for the sidebar (which is the .secondary class) is 1.5em, so 2em will probably get you in the ballpark.

    Press Ctrl + F5 to force a reload from the server if nothing happens.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding space between “Latest” post links in sidebar’ is closed to new replies.