Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I wanted to create a new <div> on top of the

<div id="wpwrap"> in adminheader.php

and a closing tag below the </body> on adminfooter.php

should i just go create a new div manually? or use a plugin to insert those html tags.

thanks.

share|improve this question

1 Answer 1

You shouldn't edit the WP Core because it will break at the next update. I believe the easiest way is to use jQuery. Use a filter to add the jQuery code to the page.

function cystom_jquery_code() {
   echo '<script>
   jQuery("body").after("div class="myClass"></div>");
   jQuery("#wpwrap").before("<div class="beforeClass"></div>");
   </script>';
}

add_action('admin_head', 'cystom_jquery_code');
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.