Created
September 14, 2015 13:38
-
-
Save JudeRosario/940dde93ad15438a60b9 to your computer and use it in GitHub Desktop.
Move div to top of page
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('wp_footer', 'custom_JS') ; | |
function custom_JS() { | |
echo <<<'JS' | |
<script type="text/javascript"> | |
jQuery(document).ready(function ($) { | |
var element = $('#mobile').detach(); | |
$('#header').append(element); | |
}); | |
</script> | |
JS; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just copy/paste the code into the functions.php file of your child theme or a site specific plugin if you use one.