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 questionI 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 questionI 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 |1 Answer
Reset to default 2Your 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.
<span>
tag with line height 0 and display none CSS styles – Tom J Nowell ♦ Commented Jan 13, 2020 at 17:18rangySelectionBoundary
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