Sex-Positive Glossary Plug-in for WordPress

I just discovered a really great WordPress plug-in that I’d like to help promote.

The WP Simple Sex-Positive Glossary will look through your content and turn any of the sexuality terms into links that’ll take readers to the definition of that word on Scarleteen or sexuality.about.com. It’s super easy to install and works great. Here are a few examples: sex, bisexual, safer sex, communication, kegel exercises.

I’m giving it a try- my regular links are in my standard orange color and the new ones look like this. If you want to make similar changes to the style of these links or if you want to make the links open in a new tab, you’ll need to edit the php file, but you certainly don’t need to. Big thanks to Maymay for creating this!

7 Responses so far.

  1. Cate says:

    LOVE the idea.

    I hope some customization options will eventually get incorporated. For instance, choosing whether to create just one link the first time a word appears on a page, create up to X number of links per page from a given word, or (as it defaults now) create links for every instance of the same word on a given page. And have little niceties like title attribute of “Look up ‘$term'” instead of generically “Look up this term”. It’s a release 0.2, so of course minimalism is sensible. I’m looking forward to seeing where Maymay takes this.

    Charlie, thanks for the suggestion to style ‘a.sspg’ elements separately.

  2. Charlie says:

    Yeah, it’d be great if you could easily set it to open in new tabs or use a different color or (as you suggest) only link to the first use of a term on a given page. But at least it’s not too hard to edit the php file.

  3. maymay says:

    Thanks for the shout-out, Charlie. 🙂 A few clarifications:

    If you want to make similar changes to the style of these links or if you want to make the links open in a new tab, you’ll need to edit the php file…

    Actually, you don’t need to edit the PHP file and I’d encourage people not to do that. Instead, if you want to make changes to the way the links look, you should edit your theme’s style.css file using the WordPress Theme Editor. For instance, adding the following line to the bottom of your theme’s style.css file will turn all the links the plugin makes purple:

    a.term.sspg { color: purple; }

    Also, Cate, I think you’ve misunderstood the plugin’s current behavior:

    (as it defaults now) create links for every instance of the same word on a given page

    Actually, the plugin currently chunks your content based on where the links are, so it doesn’t replace every instance of the glossary-defined words, only the first instance of the word after a link. If you have no links in your content, then only 1 replacement per term happens. If you have 1 link, then up to 2 replacements may happen, etc.

    This was done simply because it was easy to code and offered a generalizable way to ensure that longer posts didn’t only have links in the very top, in case people skim them (which less devoted readers often do to sexuality blogs).

    And have little niceties like title attribute of “Look up ‘$term’” instead of generically “Look up this term”. It’s a release 0.2, so of course minimalism is sensible. I’m looking forward to seeing where Maymay takes this.

    Yeah, that’s a great idea. Sadly, I don’t have a lot of time to develop the details here. If you or anyone you know wants to contribute code, report bugs, or otherwise offer improvements, documentation, and so forth, please do so! As they say in the open source world, “Patches welcome!”

    All of the above can be done at the plugin’s development page.

    Finally, Charlie:

    …it’d be great if you could easily set it to open in new tabs…

    If you want links to open on a new tab when you click on them, you can do one of several things, including right-clicking on the link or setting your browser to open links in a background tab by default (if your browser supports this, and many modern ones do. The point here is that the choice is already available to users, and the proper place to have this functionality is in the users’ hands, not the plugin’s.

    http://annevankesteren.nl/2004/09/new-window“>Forcing links to open in new windows has long been a plague on web usability so I’m unlikely to incorporate such a feature in the plugin code. That said, you’re always welcome to fork the codebase and add the option in another plugin. 🙂

  4. Cate says:

    Thanks for the detailed followup.

    it doesn’t replace every instance of the glossary-defined words, only the first instance of the word after a link. If you have no links in your content, then only 1 replacement per term happens. If you have 1 link, then up to 2 replacements may happen, etc.

    Hmm. Could you clarify further? See for instance All five instances of “rape” are getting wrapped with glossary link, including the one that precede’s the content’s first link. It sounds like only the word’s second instance there — because it follows the Susie Bright link — would be expected to get wrapped by a glossary link. Am I understanding the intent correctly?

  5. Charlie says:

    Yeah- my theme is a little funny and I needed to find the right place to edit the formatting, but I figured it out. 🙂

  6. Sinclair says:

    Interesting! And such a great idea.

    As an RSS reader (almost exclusively), I don’t think the different styles and colors for the differing links will show up in my reader (at least, the ones for this post don’t), but that doesn’t mean I can’t figure out myself where it’s linking to based on the URL.

  7. maymay says:

    Cate, I’ve responded on your own blog.

Leave a Reply

Your email address will not be published. Required fields are marked *