Skip to content

Instantly share code, notes, and snippets.

@kalimar
Created May 20, 2013 16:00
Show Gist options
  • Select an option

  • Save kalimar/5613217 to your computer and use it in GitHub Desktop.

Select an option

Save kalimar/5613217 to your computer and use it in GitHub Desktop.

##Custom Button Code and Navigation Links ###Header Code

<!-- Begin ZipList Header Code -->
<script type='text/javascript' src='http://lexieskitchen.ziplist.com/javascripts/pt_include.js'></script>
<link charset='utf-8' href='http://www.zlcdn.com/stylesheets/minibox/generic.css' rel='stylesheet' type='text/css' />
<!-- End ZipList Header Code -->

###Button Code ####Ziplist Standard Button Code

<!-- Begin ZipList Button Code -->
<div class='zl-recipe-link'>
  <a class='small-butn-link' href='javascript:void(0);' onmouseup='getZRecipe(this, "lexieskitchen", ""); return false;' title='Add this recipe to your ZipList, where you can store all of your favorite web recipes in one place and easily add ingredients to your shopping list.'><span>Add this recipe to ZipList!</span></a>
</div>
<!-- End ZipList Button Code -->

####Ziplist Button Code With Permalink This code requires that the permalink be entered manually for each post. This is needed when you display more than one post on your home page

<!-- Begin ZipList Button Code -->
<div class='zl-recipe-link'>
  <a class='small-butn-link' href='javascript:void(0);' onmouseup='getZRecipeArgs(this, {partner_key:"lexieskitchen", url:"PERMALINK"}); return false;' title='Add this recipe to your ZipList, where you can store all of your favorite web recipes in one place and easily add ingredients to your shopping list.'><span>Add this recipe to ZipList!</span></a>
</div>
<!-- End ZipList Button Code -->

####Wordpress Template with Permalink Auto-capture This code is for use in Wordpress. We have included it as an example here for how you could use the hooks available in Squarespace. This requires some knowledge of theme development.

<!-- Begin ZipList Button Code -->
<div class='zl-recipe-link'>
  <a class='small-butn-link' href='javascript:void(0);' onmouseup='getZRecipeArgs(this, {partner_key:"lexieskitchen", url:"<?php the_permalink(); ?>"}); return false;' title='Add this recipe to your ZipList, where you can store all of your favorite web recipes in one place and easily add ingredients to your shopping list.'></a>
</div>
<!-- End ZipList Button Code -->

###Custom Navigation Links:

White Label Shopping List Link
http://lexieskitchen.ziplist.com/mylist

White Label Recipe Box Link
http://lexieskitchen.ziplist.com/recipes/box

White Label Meal Planner Link
http://lexieskitchen.ziplist.com/recipes/meal_planner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment