How do I hide part of my entry behind a link? What is an lj-cut or lj-spoiler tag?
There are two features available that allow you to hide all or a portion of your entry or comment behind a link the viewer must click to see the full content. Both features are useful for hiding material you may not want your viewers to see unless they make the choice to do so (such as a large number of pictures or your thoughts about a new film). Though similar, the <lj-cut> and <lj-spoiler> tags are slightly different.
An <lj-cut> allows you to hide all or part of your entry behind a link. The <lj-cut> tag does not work in comments.
The <lj-cut> works
(the part of the text is hidden): on your journal page, on friends pages, on the second and following pages of comments to the entry and on the Day view
pages of your journal. See this page
for an example.
The <lj-cut> does not work
(the text can be seen): on the Preview page of the entry (you can get there by clicking on "Preview" link on the Post an Entry page) and on the first "Read Comments" page. See this page
for an example.
- Rich Text editor: Highlight the text you want to cut, then press the <lj-cut> button (). In the dialog box, you can replace "Read more..." with another word or phrase to link to the entire entry. When creating or editing an entry, the text included in the <lj-cut> is surrounded by dashed lines and small split scissors images.
- HTML editor: Type <lj-cut text="Read more"> before the text you want to hide, replacing "Read more" with the word or phrase to link to the entire entry. If you want to start showing text again, type </lj-cut> after the text you want to cut.
- Downloadable Client: Many clients available for download contain simple ways to use the <lj-cut> tag. For information on a specific client, consult its documentation or menu options.
The <lj-spoiler> tag works in both entries and in comments. As with the <lj-cut> tag, it hides a portion of your content behind a link. When someone is viewing an entry on their Friends page that has an <lj-spoiler> in it, the hidden text will be expanded in-line on the page when the link is clicked, instead of loading a new page as with the <lj-cut>. See this page
for an example.
- Rich Text editor: Highlight the text you want to hide, then press the <lj-spoiler> button (). In the dialog box you can replace "Spoiler (click to open)" with another word or phrase that viewers will use to expand the hidden text. When creating or editing an entry, the text included in the <lj-spoiler> is surrounded by dashed lines and small arrow markers.
- HTML editor / commenting form: Type <lj-spoiler title="Link to spoiler"> before the text you want to hide, replacing "Link to spoiler" with the word or phrase the viewer will click to see the hidden text. If you want to start showing text again, type </lj-spoiler> after the last of the text you want hidden.
- LiveJournal-specific tags: <lj user> <lj-raw> <lj-poll>
- Disabling <lj-cut> tags: Type these Admin Console commands to disable <lj-cut> tags, so all Friends and Recent Entries pages have full entries.
- set opt_ljcut_disable_lastn 1 — Disables lj-cuts on Recent Entries pages
- set opt_ljcut_disable_lastn 0 — Enables lj-cuts on Recent Entries pages
- set opt_ljcut_disable_friends 1 — Disables lj-cuts on Friends pages
- set opt_ljcut_disable_friends 0 — Enables lj-cuts on Friends pages
September 6th, 2012 (fiddlingfrog)
Back to the Journal Entries FAQ category
Back to the FAQ listing
Back to the FAQ search page
Back to the support area