I'm looking to hook into this somehow to adjust the title home page link in the top left corner of the admin pages to stop opening in a new tab. Anyone have any good solutions for removing the target="_blank"?

Here's a sample of the code in question:

<div class="topbar">
    <a class="site-name" href="http://sitename.com/" title="Site Homepage" target="_blank">
        <h2>Site Name</h2>

1 Answer 1


You can use the handy Control Panel JS plugin and add some JS that targets the site-name class on the anchor and removes it. jQuery's removeAttr should do the trick.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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