As promised a couple weeks ago, here is a little explanation of how to customize your wordpress links.php template file. (I would recommend a bit of wordpress & html knowledge).
Many of you may have experimented with the links manager in the backend, but hit the same problem that I did. That issue being around the line break between the link name and it’s description.
Basically, the problem is whatever you put in the form box “Between Link and Description:” in your backend is completely ignored by the standard links.php template file.
It’s all to do with the get_links_list function. This function is used on the links.php page in the default wordpress template theme. Now i’m not a php developer, I only read about this on a wordpress support post, so sue me if i’m wrong.
Open up your links.php template file in any html editor and replace the get_links_list with wp_get_links(‘1’)
What you are doing is calling your link categories individually, instead of all together. ‘1’ being your first link category you created (e.g. “Blogroll”). Now there are probably easier ways, using pre-built plugins, to accomplish this, but doing it my way allows for a certain amount of flexibility in the styling of each link category.
Wrapping a simple div structure around your function and referring it to a class in your css stylesheet can make it look however you want it to.
For example, in my template design I wrote something like this in my links.php page:
And added this to my CSS stylesheet:
Upload your edited links.php and your css stylesheet page, make sure you have “description” checked in your links manager, and hopefully, voila!
Leave a Reply