Unique tips of blogging

Adding Asides


When you lean towards someone and tell them a little bit of information, you are making an "aside" comment. In blogs, you can do that on your blog by passing on small bits of information to your readers called Asides.

Also known as remaindered links or linkblog, Asides were originally implemented by Matt Mullenweg, developer of WordPress, and it soon spread far and wide and became a very popular method of adding little bits of information to your blog.

Asides can be run from within your WordPress site, and do not require installation of another blog. All you need is a few lines of code, and a new category.

Using Asides requires you to make some changes in the WordPress Loop, but if you are careful, everything will be all right.

Asides With Plug-Ins

A number of different Plugins are available to allow you to add Asides to your blog easily. Take a look through the built-in Plugin browser to find one.

Asides With Code Hacking

If you are comfortable editing PHP files, then these two approaches are for you.
Matts Asides
Asides at photomatt.net
The following are the step by step instructions for manually adding Asides to your WordPress site. Below are WordPress plugins that will make the process much easier.

  1. Make a backup copy of your index.php in your WordPress Theme, typically found at /wp-content/themes/yourtheme. Seriously. BACK IT UP!!
  2. In your Administration Panels > Manage > Categories add a category for your Asides. You can call it Asides if you want. Note the Category ID number of the category. In the following examples we will use category ID 14, but you change this to the category ID of your Asides category.
  3. Open your Themes index.php template file in a text editor
  4. Search for: Comment it out like this:
  5. Under this paste:
  6. The next line should be your date call (). Under that, paste this:
  7. At the bottom of the index.php file, find:
  8. Delete those lines. And instead, paste these lines:
Thats it. Asides should now be working. Only thing that remains is styling the CSS.
Styling Your Asides

What weve done is create a very basic style. You should add your own style to blend it in with the rest of your site.

To style the Asides, add these example lines to the CSS:

Displaying Asides on the Sidebar
Asides on the Sidebar at noscope.com
REMEMBER: The following section has nothing to do with Matts asides. They are INDEPENDENT of each other and will not work with each other.

There are times when you want to display your Asides in your sidebar. In the sidebar.php template file of your WordPress Theme, add the following where you wish the asides to appear. If you want them outside of the list, make sure to position this above or below the Unordered List () tags or within them as a List Item ( ):

Now, you can style the CSS for the div "asides_sidebar" to your liking in the style.css style sheet.
With Asides in the sidebar, you may want to disable them from being displayed within the main loop. This can be easily done with a snippet of code within the loop.

Either before the loop in your index.php file or before the loop in your sidebar.php file, depending on which one comes last. So, for example, if comes after the line in index.php, then you will have to put it before the loop in sidebar.php.

Voila. Asides will now be displayed on the sidebar, rather than within the loop, giving it a more ’linkblog‘ feel.
Tag : SEO
0 Komentar untuk "Adding Asides"


Back To Top