Skip to content

Instantly share code, notes, and snippets.

@ejntaylor
Last active January 3, 2016 09:09
Show Gist options
  • Save ejntaylor/8440746 to your computer and use it in GitHub Desktop.
Save ejntaylor/8440746 to your computer and use it in GitHub Desktop.
Canvas navigation move to right
add_action( 'init', 'woo_custom_move_navigation', 10 );
function woo_custom_move_navigation () {
// Remove main nav from the woo_header_after hook
remove_action( 'woo_header_after','woo_nav', 10 );
// Add main nav to the woo_header_inside hook
add_action( 'woo_header_inside','woo_nav', 10 );
} // End woo_custom_move_navigation()
@media only screen and (min-width: 768px) {
#navigation {
float: right !important;
width: auto !important;
clear:none;
max-width: 600px; // This can be changed
}
}
@media only screen and (max-width: 767px) {
#navigation {
/*left: -34px !important;*/
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment