Title: &quot;RESPONSIVE&quot; Blank Page Template
Last modified: August 31, 2016

---

# "RESPONSIVE" Blank Page Template

 *  Resolved [cybercli](https://wordpress.org/support/users/cybercli/)
 * (@cybercli)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/responsive-blank-page-template/)
 * I have this code to create a blank page template which works ok but the content
   is not mobile responsive. Is there a way to do so by modifying this code?
 *     ```
       <?php
       /**
       	Template Name: Blank Page
   
       */
       ?>
       <html>
       <head>
       <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
   
       <title><?php wp_title( '|', true, 'right' ); bloginfo('url'); ?></title>
       <?php wp_head(); ?>
       </head>
   
       <body>
       <?php while (have_posts()) : the_post(); ?>
       <div id="page-content">
       	<?php the_content(); endwhile; ?>
       </div>
       </body>
       </html>
       ```
   
 * Do I need to insert a link to the CSS file of my theme?
 * Thanks

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

 *  [Dipak Gajjar](https://wordpress.org/support/users/dipakcg/)
 * (@dipakcg)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/responsive-blank-page-template/#post-7043702)
 * If you don’t want to add CSS of your theme, you can simply try to put the following
   line under _<head>_ section and it should do the trick.
 * `<meta name="viewport" content="width=device-width, initial-scale=1">`
 * Here is a full code:
    ——————
 *     ```
       <?php
       /**
       	Template Name: Blank Page
   
       */
       ?>
       <html>
       <head>
       <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
       <title><?php wp_title( '|', true, 'right' ); bloginfo('url'); ?></title>
       <?php wp_head(); ?>
       <meta name="viewport" content="width=device-width, initial-scale=1">
       </head>
   
       <body>
       <?php while (have_posts()) : the_post(); ?>
       <div id="page-content">
       	<?php the_content(); endwhile; ?>
       </div>
       </body>
       </html>
       ```
   
 *  Thread Starter [cybercli](https://wordpress.org/support/users/cybercli/)
 * (@cybercli)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/responsive-blank-page-template/#post-7043784)
 * Wow!! I didn’t know it could be so simple!
    Thank you so much Dipak! It works
   perfectly!
 *  [Dipak Gajjar](https://wordpress.org/support/users/dipakcg/)
 * (@dipakcg)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/responsive-blank-page-template/#post-7043805)
 * **cybercli,** I am glad that it worked.
 * Could you mark this thread as ‘Resolved’ now?
 *  Thread Starter [cybercli](https://wordpress.org/support/users/cybercli/)
 * (@cybercli)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/responsive-blank-page-template/#post-7043807)
 * Ooops, Thanks again

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

The topic ‘"RESPONSIVE" Blank Page Template’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [cybercli](https://wordpress.org/support/users/cybercli/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/responsive-blank-page-template/#post-7043807)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
