top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

How to create a blank white page in Wordpress?

0 votes
5 views

I want to create a blank white page in my wordpress site.

posted May 12 by Navya

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

Put the code below in an empty file and save it as "empty-page.php"
Code:

<?php
/*
Template Name: The Empty Stuff
*/
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>Title goes here</title>
    </head>
    <body class="empty">
        <div class="boo">
        <?php the_content(); ?>
        </div><!--end boo--> 
    </body>
</html>

Make sure you define in your stylesheet (style.css) the "empty" & "boo" classes. E.g. center the div, give it top margin etc...
Then make a new Page in WP > select as Page template this one (i.e empty-page). You can give it a title for yourself (but it won't display it) publicly. Whatever you will put into the text/content area (image, text etc.) will be shown on the 'front-end' of your Page.

answer May 18 by Sumanta Hazra
Similar Questions
0 votes

I am making a custom plugin for wordpress and i need to create a page in the admin menu. I already have a file called menu_list.php with the following code:

function jps_mail_list_page_entry() {
add_menu_page(
    __('JPS Mailing List'),
    'JPS Mailing List',
    'manage_options',
    'jpsNews_mailinglist',
    'jpsNews_mailing_list',
    'dashicons-email'
);
}
add_action('admin_menu', 'jps_mail_list_page_entry');

function jpsNews_mailing_list() {
    echo 'hello';
}

Now, in the plugin page i have this:

function jpsNews_activate_plugin() {
    include_once(plugin_dir_path(__FILE__).'pages/mailing-list.php');
}
register_activation_hook(__FILE__,'jpsNews_activate_plugin');

Its not working. How can i do it?

0 votes

I have a website in WordPress. In the blog page I have a sidebar. I did add some widgets there but the option in the widgets are not Clickable. How can I make them Clickable?

In below I put the snapshot :

How to make widget option Clickable in WordPress blog page?

0 votes

I want to change a role in my wordpress plugin.

if ( is_admin() && ! is_user_logged_in() && ! defined( 'DOING_AJAX' ) && $pagenow !== 'admin-post.php' ) {
            wp_die( __( 'This has been disabled', 'wp-hide-login' ), 403 );
        }

        $request = parse_url( $_SERVER['REQUEST_URI'] );

When my plugin get the action, Wordpress shows "This has been disabled" under WP default (admin-post.php) page. But I need when my function get assign it's redirect to 404 page.

As like as "This has been disabled" > http://www.example.com/404


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...