Title: Make WordPress work inside html frames.
Last modified: August 20, 2016

---

# Make WordPress work inside html frames.

 *  [danuniversal](https://wordpress.org/support/users/danuniversal/)
 * (@danuniversal)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/hack-make-wordpress-work-inside-html-frames/)
 * This seems to be a common problem, and I think I should make a special thread
   to make the solution to this known.
 * [Hargopal](http://wordpress.org/support/profile/hargopal) solved this issue 5
   years ago here:
    [http://wordpress.org/support/topic/no-login-in-ie-in-frame](http://wordpress.org/support/topic/no-login-in-ie-in-frame)
 * I had the same problem, I tried this solution with WordPress 3.3.1 recently, 
   and it worked, I could access to the login page, and admin panel, using frameset.
 * Here is the solution:
 * You have to edit the file wp-login.php, putting in a p3p license. WordPress 3.3.1
   it is exactly in line 43.
 * Your original code should be something like this:
 *     ```
       function login_header($title = 'Log In', $message = '', $wp_error = '') {
       	global $error, $is_iphone, $interim_login, $current_site;
   
       	// Don't index any of these forms
       	add_action( 'login_head', 'wp_no_robots' );
       ```
   
 * You will have to include the following code there:
 * `header( "P3P: CP=CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT 
   DEM PRE");`
 * It should be right before the part that says “//Don’t index any of these forms”-
   the line 43-. So your final code will be something like this:
 *     ```
       function login_header($title = 'Log In', $message = '', $wp_error = '') {
       	global $error, $is_iphone, $interim_login, $current_site;
       header( "P3P: CP=CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE");
       	// Don't index any of these forms
       	add_action( 'login_head', 'wp_no_robots' );
       ```
   
 * I hope it work. I have not found any problem yet. If you find any problem, please
   tell us.

The topic ‘Make WordPress work inside html frames.’ is closed to new replies.

## Tags

 * [frameset](https://wordpress.org/support/topic-tag/frameset/)
 * [login](https://wordpress.org/support/topic-tag/login/)
 * [login problem](https://wordpress.org/support/topic-tag/login-problem/)
 * [P3P](https://wordpress.org/support/topic-tag/p3p/)
 * [wp-login.php](https://wordpress.org/support/topic-tag/wp-login-php/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [danuniversal](https://wordpress.org/support/users/danuniversal/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/hack-make-wordpress-work-inside-html-frames/)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
