Rajan Karmaker
Rajan Karmaker

Reputation: 118

Why I cannot see my WordPress site when I am logged out?

I am creating a WordPress theme in the localhost. I do not know why I see a white screen when I logout from the dashboard.

If I login again into the dashboard I can visit the site again. Everything is working good.

Note: If I change the theme, the issue is gone by then.

Upvotes: 0

Views: 622

Answers (2)

Sourabh Matolia
Sourabh Matolia

Reputation: 169

There might be some Error in the new theme you are creating.

You can go to Wordpress root directory "wp-config.php" file and add a line

define( 'WP_DEBUG', true )

That will display you the error instead of the white screen.

Upvotes: 2

Neal Developer
Neal Developer

Reputation: 595

define( 'WP_DEBUG', false ) can add this in wp-config to check

Upvotes: -1

Related Questions