0

I am not able to see the content of my WordPress pages. Only header and footer is showing on my web pages.

When I am visiting these pages I am not able to see any content except header and footer part. Also I am not able to edit the content of pages from page editor because its showing blank screen and not loading the editor panel. See below screenshot:

enter image description here

The strange thing is that when I change the theme of my website then everything is working fine. I have a doubt there is some problem in my current theme but I don't know what the issue is. Please help me in resolving the query.

  • 1
    There's not enough information here for someone without access to your site to diagnose. You have taken a good troubleshooting step in switching themes and discovering that some code in your theme is affecting those pages. See if you can isolate it further, i.e. instead of disabling the entire theme, try removing sections of code that may have to do with page content. When you find a section of code that seems to be the culprit (removing it fixes the error, replacing it makes it happen) share that code with us. – tmdesigned Apr 24 '19 at 12:21
  • Welcome to WordPress Stack Exchange! We love to help you. Problem is when you don't know what the issue is, how should we know from afar? We need a reproducible problem. That said, as your question is currently written it simply is too broad. Also please don't include links to your live site as they may be considered malicious or spam and have no value as soon as your issue got fixed. – leymannx Apr 24 '19 at 20:05
1

Yes this is most certainly an issue with your theme then.

To figure out what the error is (assumption is it's a JavaScript error), right click anywhere on the page, and then select Inspect

This will open the developer tools window, click on the Console tab, and then refresh the page. You should see some type of error in red that probably gives a slight bit of detail as to what the error is.

You should then contact your theme developer for support and provide them with details as to the issue you're having, plus anything you found in the console

| improve this answer | |
  • I have followed the steps suggested by you but i am not able to find any javascript errors on website . Nothing is showing in red on console tab – ashishabg Apr 25 '19 at 6:49
  • When i go to wordpress page editor panel and click on console tab then following javascript errors are showing . Can anyone please help me in explaining what are these errors and how to resolve these errors imgur.com/jzCzPQ4 imgur.com/bkzEl15 imgur.com/3miBebV – ashishabg Apr 25 '19 at 7:13
  • @ashishabg try disabling wp seo premium, also access your site using http:// instead of https:// as there's something (plugin or theme) including non-secure items -- which may be part of the issue. – sMyles Apr 25 '19 at 18:13
  • Also looks like moment, and few other libs are not being loaded. Best to try the http:// first to see if that resolves the issue (as if you use https and site tries to load http resource, it will not load it sometimes). Next you should contact theme dev as it looks like that's the issue – sMyles Apr 25 '19 at 18:14
  • Hi , I have disabled the WP SEO premium plugin but no luck . Also i want to let you know that i have deleted some defer javascript code from wp config file. After deleting defer javascript code wordpress page editor is working fine and displaying content on editor. – ashishabg Apr 26 '19 at 4:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.