最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Why does a published post only displays the title and not the content in the site?

programmeradmin3浏览0评论
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 5 years ago.

Improve this question

I published a post last January 3 and it went out fine. Now, I published a post again but the site only displays the title and not the content. This is the first time that this happened to me. Do you have any idea why this happened?

I don’t use any plugins and I use a free theme.

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 5 years ago.

Improve this question

I published a post last January 3 and it went out fine. Now, I published a post again but the site only displays the title and not the content. This is the first time that this happened to me. Do you have any idea why this happened?

I don’t use any plugins and I use a free theme.

Share Improve this question edited Jan 13, 2020 at 18:10 Tom J Nowell 61.2k7 gold badges79 silver badges150 bronze badges asked Jan 13, 2020 at 17:07 Lester NublaLester Nubla 1033 bronze badges 4
  • My site is lesternubla.wordpress if you want to take a look at it. The visibility is public on the settings. I am pertaining to the ‘Resiliency’ post. – Lester Nubla Commented Jan 13, 2020 at 17:10
  • 2 You should contact wordpress support! – Tom J Nowell Commented Jan 13, 2020 at 17:16
  • 2 Also, for some reason, every paragraph contains a <span> tag with line height 0 and display none CSS styles – Tom J Nowell Commented Jan 13, 2020 at 17:18
  • 2 FYI looks like you may have copied the text from somewhere else (i.e. another web-page directly), and it has brought in the markup. The marker rangySelectionBoundary seems to refer uniquely to a WYSIWYG editor for AngularJS named textAngular and is related to an issue here. If you are copying from a document editor or a HTML page directly, try "pasting as plain text" in the future to remove foreign markup and styles. – Adam Commented Jan 13, 2020 at 17:39
Add a comment  | 

1 Answer 1

Reset to default 2

Your content is there BUT hidden from view via CSS styles.

Normally wouldn't provide an answer for this, but it may be helpful to others as it is not uncommong.

This is usually due to CSS styles in external stylesheets, inlined in your <head> in of the html document (template header) OR more commonly as inline styles on your content which contain elements such as <div>, <span> and <p> (among) others wrapped around various pieces of your content.

In your case it is <span> tags

See below:

Solutions

If you are using the default WordPress content editor:

  • switch to the Text tab instead of the Visual tab and remove the span tags OR at least the display:none property.

If you are using something else like a page builder:

  • the process should be similar but you may need to consult their documentation

By the look if it, you are not though.

发布评论

评论列表(0)

  1. 暂无评论