How to add a recipe index to your blog
I have a question for you. Are the recipes on your blog easy to find? Are you relying on people using the search button or clicking on labels? If you are, it may be time to add a recipe index to your sidebar. It really is the best way to display all your recipes.
I have passed this code on to a few bloggers who have asked for my help, but I thought it would be a good thing to share at the start of a new year. I am taking inspiration from Jeanne (Cook Sister), who reminded us during her talk at Bite N Write that we should all support each other and share knowledge, not keep it to ourselves. A good adage for bloggers, especially food bloggers. We have such a supportive community.Tweet
To add an index to your sidebar:
1. In blogger: Open the Design Tab and in Page Elements click on Add a Gadget. Select HTML/JavaScript. It is probably laid out a little differently in Wordpress.
2. Copy the code below and paste into the box. Replace the red text with your own information. Save once you have finished. I have tried to make it as simple as possible. It will take some time to index all your recipes, but you can just do a few at a time and add more as you go.
Code to copy and paste:
<div class="clear"></div>
<div id="HTML2" class="widget HTML">
<h2 class="title">Recipes (or add your own index title)</h2>
<div class="widget-content">
<select onchange="self.location.href=''+this.options[this.selectedIndex].value+''" style="width:222px" class="tinyselect">
<option value="" /> name of first category ie pasta
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
</select> always end each category with this
<select onchange="self.location.href=''+this.options[this.selectedIndex].value+''" style="width:222px" class="tinyselect">
<option value="" /> name of second category
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
</select> end of category
<select onchange="self.location.href=''+this.options[this.selectedIndex].value+''" style="width:222px" class="tinyselect">
<option value="" /> name of third category
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
<option value="recipe url" /> name of recipe
</select> end of category
</div></div><strong></strong><strong></strong> this is the end of the index
3.Add as many recipes and categories as you like, just make sure you start each category with:
<select onchange="self.location.href=''+this.options[this.selectedIndex].value+''" style="width:222px" class="tinyselect">
<option value="" />
and end each category with:
</select>
I hope you give it a go. Do leave me a comment and let me know how you get on. If you have any problems, just drop me an email.
Thanks to Angie, who kindly helped me with my code originally.
Sharing the blog love
nice useful post
ReplyDeleteAarthi
http://yummytummy-aarthi.blogspot.com/
Good information.
ReplyDeleteThanks Aarthi and Hoodia :)
ReplyDeleteJacqueline, thanks to you sharing this with me a couple of years ago I've had it working well for me ever since!
ReplyDeleteI am glad it has helped you Sylvie :)
ReplyDeleteThanks for sharing this with me, I am now going to let Choclette know, as she asked and this is easier for her to follow than my muddled email!
ReplyDeleteKaren
XXXXXXXXXXXX
That's great Karen, I hope everyone gets a chance to use the code.
ReplyDeleteJust posted it to my FB page too! Sharing the Blog Love! XX
ReplyDeleteThanks Karen :)
ReplyDeleteOh,thanks for this Jac...it's something I've asked about on a couple of forums and had no reply. When I'm feeling brave, I'll give it a go!
ReplyDeleteIt really is easy Lisa. Just copy and paste the code, adding your own recipes and links.
ReplyDeleteYou are amazing! Been wanting to add an index to my blog and you've made it look so easy :)
ReplyDeleteGonna put it tonight, can't wait.
Thanks again xxx
Thanks! I've been planning on doing this for ages, you made it easy!
ReplyDeleteAww that's brill Nish :)
ReplyDeleteDo it now before baby arrives Nic, although I got loads of blogging done while I was breastfeeding. One handed typing.
This is excellent! Hopefully I can get this done over the weekend, as my recipes are getting quite clogged up now! Thanks :)
ReplyDeleteThanks so much. Once I'd done the first couple it was pretty straightforward.
ReplyDeleteTotally agree - its great to share knowledge!
laura xx
No probs :)
ReplyDeleteIt's looking good Laura :)
this looks great but I prefer to browse a list in a page rather than in one of these drop down lists - so I add my recipes to my index manually which means they are often behind a few weeks - but I have wondered about finding out if there is a way to feed recipes to pages automatically - I actually really liked the archive style at http://thestonesoup.com/blog/start-here/ but so many of my headings aren't the recipe titles that it wouldn't do for an index
ReplyDeleteThanks for sharing this - I need to seriously consider using it
ReplyDeleteYou have to choose the one you are happy with Johanna :)
ReplyDeleteI hope you do CC, I often trawl your archive :)
Really helpful, thanks! Am going to try this on my own blog and will of course credit you.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThanks so much for this! Just added it to my blog, love it :)
ReplyDeleteBriony x
www.theglasgowfoodblog.blogspot.com
Thank you so much for the code! I have now installed it on my blog and spent several hours copying and pasting the codes and the links to all of my recipes. I really needed this type of index to give the readers an easy way of finding everything in my blog, so this is perfect!
ReplyDeleteThanks!!!
ReplyDeleteI know people have a hard time finding recipes on my site, & I fail at taking the time to edit pages like I should.
This should make it easier once I take the time to do it!)
Thanks Mrs M :)
ReplyDeleteYour index looks good Briony :)
I am glad it has been useful Rasmus :)
Fabulous Jinx, that shouls be well worth it then :)
Thanks so much for this java script. Just starting out on my blogging venture.
ReplyDeleteSo exciting to be writing about nourishing food, the way it was intended to be enjoyed. Raw milk, full fat butter, cheese and animal fats. You know what, it's actually good for us!
Natasha
http://thenourishingroad.blogspot.com/
I started doing this about six months back, could of done with your guide then! Unfortunately life has gotten in the way and never finished it but have it all saved, your post reminds me I need to finish it!
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteWhat a great help! Thank you so much!
ReplyDeleteGood, I am glad it is a help to other bloggers :)
DeleteWhat a fantastic tool, and great to learn that I'm not as useless at technology as I thought! Thank-you!
ReplyDeleteI am glad it has helped Amber :)
Delete