« Changing Your Display Name | Main
Adding a Links Section
If you wish to add a links section to your blog’s sidebar, you will need to add a few lines of code to your blog’s Main Index template. Here’s how:
- Click the Main Menu link.
- Choose the Templates option for your blog.
By default, you’ll be placed into the Index Templates window. Before you do any work on the main index, it is recommended that you make a back-up copy of the existing file. To do this,
- Find the template called Main Index.
- Put a check mark in the box in front of it and from the drop-down menu that, by default says, “More actions…”, choose the option for Refresh Template(s).
- Click the Go button.
- On the following page, click the Return button to return to the previous page. You should now see a back-up copy of your Main Index listed in the window.
Click on the link for the Main Index file.
- You’ll now be in the Edit Template screen. Find the Template Body section and copy and paste the contents into a text editor (e.g. TextEdit, NotePad).
- Find the <div id=”beta”> section in the template content you just copied. You will see the various sidebar sections, e.g. Search, Recent Posts, Categories, and Monthly.
To create your Links section, add the following code into your chosen section display area within template:
<div class="module"> <h2 class="module-header">Links</h2> <div class="module-content"> Add your links here<br/> </div> </div>Replace the text Add your links here with the HTML for the links you wish to add, separated by a break tag <br />, for example:
<div class="module"> <h2 class="module-header">Links</h2> <div class="module-content"> <a href="http://www.nyu.edu">New York University</a><br /> <a href="http://google.com">Google</a><br /> </div> </div>When finished, copy and paste your updated text document back into the Template Body area in the Edit Template screen.
Click the Save and Rebuild button to put your changes into effect.
Posted by Jodi Goldberg on October 11, 2009 1:06 PM | Permalink