had to use jQuery to move admin header into the body tag
Showing
2 changed files
with
5 additions
and
15 deletions
| 1 | <div id="TzBrandingHeader"> | ||
| 2 | <div id="TzBrandingHeader_UtilityMenu"> | ||
| 3 | Tenzing CMS built on WordPress<br /> | ||
| 4 | Howdy, | ||
| 5 | <a href="<?php echo get_settings('siteurl');?>/wp-admin/profile.php"><?php | ||
| 6 | if (isset($current_user->user_firstname)){ | ||
| 7 | echo($current_user->user_firstname); | ||
| 8 | } else { | ||
| 9 | echo($current_user->user_login); | ||
| 10 | } | ||
| 11 | ?></a> | ||
| 12 | | <a href="<?php echo get_settings('siteurl');?>">Home</a> | ||
| 13 | | <a href="<?php echo _logout_url(); ?>">Log Out</a> | ||
| 14 | </div> | ||
| 15 | </div> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | <script type="text/javascript"> | ||
| 2 | jQuery(document).ready(function() { | ||
| 3 | jQuery('body').prepend('<div id="TzBrandingHeader"><div id="TzBrandingHeader_UtilityMenu">Tenzing CMS built on WordPress<br />Howdy, <a href="<?php echo get_settings('siteurl');?>/wp-admin/profile.php"><?php if (isset($current_user->user_firstname)){ echo($current_user->user_firstname); } else { echo($current_user->user_login);} ?></a> | <a href="<?php echo get_settings('siteurl');?>">Home</a> | <a href="<?php echo _logout_url(); ?>">Log Out</a></div></div>'); | ||
| 4 | }); | ||
| 5 | </script> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment