Last active
January 3, 2016 09:09
-
-
Save ejntaylor/8440746 to your computer and use it in GitHub Desktop.
Canvas navigation move to right
This file contains 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
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() |
This file contains 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
@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