//
you're reading...
Technology

Placid fix-ups

Because I like my links list to be organized I couldn’t stand to see that this new theme chucked out the category headers. So I added them back in 😀

Details within…

Open up sidebar.php and find these lines — it should start near line 24, depending on how much you changed for the “about me” section.

<br /><span><?php _e('Links'); ?></span>
<ul>
    <?php get_linksbyname('', '<li>', '</li>', '', FALSE, 'id', false, TRUE, -1, TRUE); ?>
</ul>

We’re going to make two changes here; for the first change <ul> to <ul id="links_list">, this allows us to style what occurs in this list by itself, without altering anything that may occur at a later time. Next change get_linksbyname('', '<li>', '</li>', '', FALSE, 'id', false, TRUE, -1, TRUE); to get_links_list();, this gets the sidebar to output the links list with the categories. If you were to upload your changes now you would see the category names are unacceptably large! Time to open up style.css.

At the bottom of the file simply add the following bits of ‘code’.

#links_list h2 {
    font-size: small;
    margin-top: 0;
    margin-bottom: 0;
}

This makes the font a bit smaller, and also eliminates the huge gap on the top and bottom of the names. Upload and refresh, you should be done.

Advertisements

About James

I am a Senior Developer/Consultant for InfoPlanIT, LLC. I previously spent over 7 years as a Product Manager for what eventually became ComponentOne, a division of GrapeCity. While there, I helped to create ActiveReports 7, GrapeCity ActiveAnalysis, and Data Dynamics Reports.

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Archive

%d bloggers like this: