admin管理员组

文章数量:1292149

Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 3 years ago.

Improve this question

I have a problem with my blog. When you view it on desktop, the page looks fine. However, if you view the "Customize" page, it looks like this: And on mobile, the blog looks blank as well. Can you help me? (Blog: )

Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 3 years ago.

Improve this question

I have a problem with my blog. When you view it on desktop, the page looks fine. However, if you view the "Customize" page, it looks like this: And on mobile, the blog looks blank as well. Can you help me? (Blog: http://atharvnadkarni/blog)

Share Improve this question edited May 22, 2021 at 17:23 fuxia 107k38 gold badges255 silver badges459 bronze badges asked May 22, 2021 at 16:11 Atharv NadkarniAtharv Nadkarni 32 bronze badges 2
  • Are you running any plugins? Is that a default theme (ie, "Twenty {something}")? – Pat J Commented May 22, 2021 at 22:24
  • @PatJ I am running 3 plugins (Enlighter, Easy Footnotes, WP Poll) and using Twenty Twenty-One theme. It is fixed now, I had to close the MathJax script tag, as suggested in the answer below. Thank you. – Atharv Nadkarni Commented May 23, 2021 at 6:04
Add a comment  | 

1 Answer 1

Reset to default 1

Your mathjax script tag isn't closed properly:

<script type="text/javascript" id="MathJax-script" async
  src="https://cdn.jsdelivr/npm/mathjax@3/es5/tex-chtml.js">
</head>
<body ... >

This means that the </head>, and the <body> and all of your page content is treated as text inside the <script> tag until you hit the </script> from your document.body.classList.remove("no-js");, and lost. (If you view page source in your browser you should be able to see this: the tags after your MathJax-script tag have no syntax highlighting.)

I don't know where that <script> tag came from but you should generate add a </script> close tag after it to close it properly.

<script type="text/javascript" id="MathJax-script" async
  src="https://cdn.jsdelivr/npm/mathjax@3/es5/tex-chtml.js"></script>

本文标签: designBlank Blog Screen