Adding Gevaldigg Widgets to Your WordPress Blog
Monday, September 22nd, 2008This post is for all you bloggers out there who want to begin publicizing your WordPress blogs on Gevaldigg.com. As you know, linking each of your blog posts to the Gevaladigg Submit page is an excellent way to get votes on Gevaldigg and to gain popularity for your website. Unfortunately, the WP admin panel does not allow you to add the voting widget (bookmarklet) to your template directly. Therefore, you’ll need to access your the file via an FTP program (such as Filezilla). In this entry, I’ll try to walk you through the process. For simplicity sake, I’m going to do this based on the default WP template.
- First, open the single.php file found here, wp-content/themes/default/single.php.
- Second, copy the code next to the widget that you want to use from our Gevaldigg widget page.
- Paste the widget code into the single.php file. Assuming that you want the widget to appear at the bottom of the article, you should paste the code after line 19. Line 19 should say:
- Now, you need to update the targeturl. Replace targeturl.com in the code with your domain name followed by your permalink structure (you can find the permalink structure by going to your admin panel, clicking on settings and then permalinks). For example, code that I use for this blog is, http://gevaldigg.com/%postname%/ (Tip: I have found that for some reason, you may need to delete the apostrophe ( ‘ ) from after your URL in the widget code in order to get it to work.)
- Save the updated single.php file and transfer it back to your server via the FTP program.
- Lastly, go to your blog and see if the image is appearing properly and if the link is working properly. The best way to test is to vote for your site via the link.
<?php the_tags( ‘<p>Tags: ‘, ‘, ‘, ‘</p>’); ?>
Now this sections of the file should look like this:
<?php the_tags( ‘<p>Tags: ‘, ‘, ‘, ‘</p>’); ?>
<script type=”text/javascript”>submit_url = ‘http://targeturl.com/’;</script>
<script type=”text/javascript” src=”http://www.gevaldigg.com/evb2/button.php”></script>
<p class=”postmetadata alt”>
<small>
An alternative method for entering the code is to paste it manually at the end of every individual post. This method gives you the ability to have the widget only appear on some posts and not others. To do so, simply copy and paste the code in to the HTML of the post that you are writing in your WP admin panel. Don’t forget to update the target URL as discribed in step four above.
If neither of these processes works, feel free to write us an email at info@gevaldigg.com and we’ll try to see if we can help (Leave a phone number and we’ll try to call you back ASAP).