WordPress.org

Forums

How to edit - "If you reached this screen by accident and meant to visit one" (5 posts)

  1. luxman
    Member
    Posted 2 years ago #

    I have a child-theme and would like to edit this error:

    "If you reached this screen by accident and meant to visit one of your own sites, here are some shortcuts to help you find your way."

    Does anyone know what file this is under? Is it theme related? or is it something not to mess around with?

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    That message is not part of WordPress core. What theme are you using? Where did you download it from?

  3. luxman
    Member
    Posted 2 years ago #

    I have multisite running, so when a user tries to access a site they aren't part of - that message appears.

    [Topic moved to Multisite forum.]

  4. David Sader
    Member
    Posted 2 years ago #

    The message is in "/wp-admin/includes/ms.php"

    Remove action and add your own.

    add_action( 'admin_page_access_denied', '_access_denied_splash', 99 );

  5. luxman
    Member
    Posted 2 years ago #

    thanks David, I'll give it a shot!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.