Skip to content

Instantly share code, notes, and snippets.

@ejntaylor
Last active August 29, 2015 13:58
Show Gist options
  • Save ejntaylor/10127996 to your computer and use it in GitHub Desktop.
Save ejntaylor/10127996 to your computer and use it in GitHub Desktop.
Adds Top Menu toggle for Woo Canvas and Uber Menu
/* Responsive Top Nav Toggle */
#responsive-icons {
position: absolute; right: 0px; top:10px; z-index: 5000; font-size: 30px;
}
#responsive-icons a {
margin-right: 10px;
}
@media only screen and (min-width: 768px) {
#responsive-icons {
display:none;
}
}
}
<?php
// Uber Top Nav with Woo Canvas
add_action('woo_top','raison_top_nav_trigger');
function raison_top_nav_trigger() { ?>
<div id="responsive-icons"><a href="/cart/"><i class="fa fa-shopping-cart"></i></a><a class="top-uber-toggle"" href="#"><i class="fa fa-bars"></i></a></div>
<?php }
?>
<script>
// top menu with uber
$(".top-uber-toggle").click(function(){
$("#top").slideToggle("slow");
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment