Title: Adding an admin message on theme install
Last modified: August 19, 2016

---

# Adding an admin message on theme install

 *  Resolved [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/adding-an-admin-message-on-theme-install/)
 * OK, my google fu is weak on this one.
 * Trying to learn here more than anything as I don’t plan on releasing this theme
   to the public…. but I’d still like to know
 * When my theme is installed, the user would need to visit the theme options page
   once to set the default option values in place.
 * How do I have an admin message appear when the theme is activated saying just
   that? preferably with a link to the theme options page.
 * Gold star for making the message go away once the page is visited
 * Thanks peeps!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/adding-an-admin-message-on-theme-install/#post-1753520)
 * Probably not the answer you want, but what about just going to the options page
   like this theme:
    [http://wordpress.org/extend/themes/vigilance](http://wordpress.org/extend/themes/vigilance)
 *  Thread Starter [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/adding-an-admin-message-on-theme-install/#post-1753534)
 * When the theme installs, it automatically heads over to the options page? If 
   so…that would definitely work fine for me
 *  Thread Starter [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/adding-an-admin-message-on-theme-install/#post-1753544)
 * Heh…no kidding! That definitely worked! Thanks for pointing me in the right direction
 *     ```
       //Redirect to theme options page on activation
       if ( is_admin() && isset($_GET['activated'] ) && $pagenow ==	"themes.php" )
       	wp_redirect( 'themes.php?page=theme_options_page' );
       ```
   
 * is the bit of code in case anyone else is looking. Where theme_options_page is
   your actual options page slug
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/adding-an-admin-message-on-theme-install/#post-1753545)
 * yeah, take a look. Of course I don’t know how it’s done …
 * [oops didn’t see your last message before posting this]

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Adding an admin message on theme install’ is closed to new replies.

## Tags

 * [admin](https://wordpress.org/support/topic-tag/admin/)
 * [message](https://wordpress.org/support/topic-tag/message/)

 * 4 replies
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/adding-an-admin-message-on-theme-install/#post-1753545)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
