Difference between revisions of "WordPress Plugin"

From WOT Wiki
Jump to: navigation, search
(Adding Ratings to Pages: changing formatting for better visual appearance)
(Adding Ratings to Pages: formatting change)
Line 13: Line 13:
 
If you wish to add the WOT symbols to external links on your pages, install the plugin into your WordPress site, then edit the plugin script: wotforblogs-config.js
 
If you wish to add the WOT symbols to external links on your pages, install the plugin into your WordPress site, then edit the plugin script: wotforblogs-config.js
  
The current script is:
+
'''The current script is''':
  
 +
<nowiki>
 
var wot_rating_options = {
 
var wot_rating_options = {
 
selector: ".post a[href], #comments a[href]"
 
selector: ".post a[href], #comments a[href]"
 
};
 
};
 +
</nowiki>
  
Change this to:
+
'''Change this to''':
  
 +
<nowiki>
 
var wot_rating_options = {
 
var wot_rating_options = {
 
selector: ".post a[href], #page a[href], #comments a[href]"
 
selector: ".post a[href], #page a[href], #comments a[href]"
 
};
 
};
 +
</nowiki>
  
 
This only adds the rating to your page content and should exclude external links on your sidebars, headers and footers. If you want to include the rating symbol on all external links indiscriminately (not recommended) change; #page a[href] to .page a[href]
 
This only adds the rating to your page content and should exclude external links on your sidebars, headers and footers. If you want to include the rating symbol on all external links indiscriminately (not recommended) change; #page a[href] to .page a[href]
 
  
 
== WordPress Tips ==
 
== WordPress Tips ==

Revision as of 14:25, 21 April 2012

Blog article: WOT Launches "WOT for Blogs" WordPress Plugin
posted: Tue 18 Jan 2011

Installing the plugin is simple and can be done in one of two ways:

  • Search for "WOT for blogs" on your Wordpress Control Panel and it'll be the first result.
    Follow the instructions on the page.
  • Alternatively, you can download a zip file and upload that to your wordpress control panel.
  • Read more about the plugin including support and development: WOT for Blogs - Wordpress Plugin
 Note: Only outgoing links in posts/comments have the WOT rating symbols added to them.


Adding Ratings to Pages

If you wish to add the WOT symbols to external links on your pages, install the plugin into your WordPress site, then edit the plugin script: wotforblogs-config.js

The current script is:

var wot_rating_options = { selector: ".post a[href], #comments a[href]" };

Change this to:

var wot_rating_options = { selector: ".post a[href], #page a[href], #comments a[href]" };

This only adds the rating to your page content and should exclude external links on your sidebars, headers and footers. If you want to include the rating symbol on all external links indiscriminately (not recommended) change; #page a[href] to .page a[href]

WordPress Tips

For general advice and tips, see the article: Wordpress