New to DearBlogger? Welcome! You can find pretty much all the blogging advice here in video format on our YouTube Channel. Also FYI on DearBlogger.com we can now fix or create your blog for you. Thanks for stopping by!

Trick: Drop Down Menus in Blog Posts

When my colleagues ask me how I put drop downs in my blog posts I say: Magic 😉

After you blog for a few months you start wanting to show off a bit. Ya know, find tricks and plugins no one else has.

Especially if you’ve got friends in the business. It’s really sweet showing them up, and I’m about to give you a serious edge for your blog.

I’m going to show you Spoilers. Nowadays, even famous bloggers can’t get folks to read their entire posts. Spoilers help condense information, and reduce the chance of a reader seeing a huge block of text and clicking away from your post. That only increases your bounce rate.

This is what I’m going to show you how to add:

[spoiler title=”A cool drop down with wacky little words in it?”]Sounds good to me![/spoiler]

Spoilers are the future

New bloggers seem to thing that all they can put in their posts are text, and images.

They’re dead wrong. A blog post, on WordPress at least, is dynamic html where you can embed lots of things, like YouTube videos, tables, and like I’m about to show you, spoilers.

Alright, first go the the easy spoiler plugin page. I should note, I found this plugin by literally searching the goofiest Google search. I think it was “little menus that drop down is posts.” Google is darn smart. Thanks Google.

Standard process: Download, and add the plugin in your plugins section. Then Activate. This will bring up the Settings for the plugin, which you can totally overlook.

No need to be overly complex 🙂

But it does get tough. This took me about half an hour to figure out so listen closely and let me save you some time.

Go back to the WordPress plugins page where you downloaded this from, and grab the code in the middle the page. I point out the code in the image below.

 

Once the plugin is activated, you just paste this code (unbold it) into the Visual section of your post.

Customize the spoiler

Change the text to what you want on the outside, and inside of the spoiler. Be creative.

You can include additional information like a “read on,” or can intrigue your readers with a question, then make them have to click the spoiler for the answer. This is obviously where the fun comes in.

Still confused on setting this up? Look at the image above. “Secret location of the code,” that’s the outside text.

“It’s in the dresser,” that’s the text that goes inside the spoiler.

The result is this:

[spoiler title=”Secret location of the code”]It’s in the dresser[/spoiler]

What’s next?

Think this puppy is cool? Share it with some friends. Then, I think we’d all love to hear how you’re using Spoilers in the comments below.

Share This Post

One Response to "Trick: Drop Down Menus in Blog Posts"

  1. Clicking around – saw this and had to make a note of it for my clients — I scrounged for an example jquery code snippit and coded it myself on my old site, using CSS classes to style the section to be clicked. The advantage is only having to wrap – so you can use it multiple times on the same page. Sometimes you have to link the script as well.

    Here’s an example of putting the name of the “class” into the jQuery so that when you code the class or id name it pulls the script into the action as well. This script is light and fast-loading and easy to customize for simple use: http://acmeous.blogspot.com/2011/03/how-to-create-easy-collapsible-and.html

    For myself – I like to play with the coding to do something directly if I can *grin* but I always make note of plugins since most of my clients would prefer I don’t code everything they need (it could get expensive and my skills only extend so far LOL)

    Reply

Post Comment