The MU forums have moved to WordPress.org

Sitewide announcement bar and maintenance mode (10 posts)

  1. Rubyducky
    Member
    Posted 15 years ago #

    Is there a way to have a sitewide announcement bar controllable from a single point? I don't mind adding code to all the pages, just when the message needs to be changed, it can be controlled at a single point. Also, is there a maintenance mode that closes access to all blogs and gives a message? Although preferably giving access to admins who login. Thanks for your help.

  2. lunabyte
    Member
    Posted 15 years ago #

    Have you considered this plugin?

  3. eminemjamesuk
    Member
    Posted 15 years ago #

    No, not in the dashboard. Preferably for all users - registered or otherwise - to view.

  4. lunabyte
    Member
    Posted 15 years ago #

    I'm sure it could be modified to do both, actually.

  5. eminemjamesuk
    Member
    Posted 15 years ago #

    How would I do that?

  6. andrewbillits
    Member
    Posted 15 years ago #

    There's a neat little function that tosses out the message. Just place a call to that function wherever you want the message to be displayed.

    Edit:

    The function is: admin_message_output()

    Thanks,
    Andrew

  7. eminemjamesuk
    Member
    Posted 15 years ago #

    If I want it to be displayed on EVERY page of the site, would I have to hardcode it onto EVERY SINGLE page?

  8. lunabyte
    Member
    Posted 15 years ago #

    No. That's what theme hooks are for. IE: wp_footer.

  9. eminemjamesuk
    Member
    Posted 15 years ago #

    Is it possible to have a server-wide hook?

  10. lunabyte
    Member
    Posted 15 years ago #

    That's what theme hooks are for. IE: wp_footer.

    Please see:

    http://wordpress.org/search/wp_footer

About this Topic

  • Started 15 years ago by Rubyducky
  • Latest reply from lunabyte