Hiding text within a page
-
I have a list of apartments for rent on a Page
apartment 1
apartment 2
apartment 3When a apartment 2 gets rented, I want to keep it in the source of the page, but hide it from view. HTML I would
apartment 1
<!– apartment 2 –>
apartment 3but if I did this, WordPress would remove the comment from the source of the page.
Is there a way to commnet out text in WordPress?The blog I need help with is: (visible only to logged in users)
-
In the editor you set the text to the same color as the post area background. That is really the only way I can think of to do it.
-
In the HTML editor, you can use this, if you want to hide the content but retain the space it occupies:
<div style="visibility:hidden;"> HIDDEN CONTENT HERE </div>Or this, if you want to eliminate the space too:
<div style="display:none;"> HIDDEN CONTENT HERE </div>
- The topic ‘Hiding text within a page’ is closed to new replies.