Instructions for Wordpress Blogs

If you want to add Dismarks to your Wordpress template, you must be able to edit your template. This means you can’t be hosted on Wordpress.com. If you’re hosting your own Wordpress site, then you should be able to make the following changes to get the DisMarks button:

single.php
You should have a file named “single.php” in your theme directory. This file is for when you are displaying only one post at a time. This will add the DisMarks button to ALL of your posts. Simply add this line in the code where you want the button to appear:

<script src="http://dismarks.com/tools/dismarks.js" type="text/javascript"></script>

index.php
If you want the button to appear on teasers (the posts that appear on your front page, or on tag pages for example), you need to add a little code so that the button knows which of the posts on the page to DisMark.

<script type="text/javascript">url_site = '<?php the_permalink(); ?>;</script>
<script src="http://dismarks.com/tools/dismarks.js" type="text/javascript"></script>

This makes your theme tell dismarks which post to DisMark.

What if I only want the button on some posts?

This is good for sites who write about Disney topics occasionally, and only want to include the DisMarks button on Disney-related posts.

Read this post about how to do this.