Last active
August 29, 2015 13:58
-
-
Save ejntaylor/10127996 to your computer and use it in GitHub Desktop.
Adds Top Menu toggle for Woo Canvas and Uber Menu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 } | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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