Log in

Or connect using:

Frequently Asked Question #75. 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.

<lj-cut>

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.

<lj-spoiler>

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.

Other Options

  • 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

Last Updated: September 6th, 2012

FAQ Navigation

Ask a Question

If you can't find what you're looking for, open a support request and we'll get back to you.

Welcome to the new LiveJournal

Some changes have been made to LiveJournal, and we hope you enjoy them! As we continue to improve the site on a daily basis to make your experience here better and faster, we would greatly appreciate your feedback about these changes. Please let us know what we can do for you!

Send feedback

Switch back to old version

LiveJournal Feedback

See a bug? Let us know! Here you can also share your thoughts and ideas about updates to LiveJournal

Your request has been filed. You can track the progress of your request at:
If you have any other questions or comments, you can add them to that request at any time.

Send another report Close feedback form

If you're a LiveJournal user, you will be logged in after submitting your request.

(optional, if you're a LiveJournal user only)

(optional, if you're a LiveJournal user only)

(not shown to the public)

If you have a billing inquiry, please go here to submit your question.

Provide a link to the page where you are experiencing the error

Do not include any sensitive information, such as your password or phone number. No HTML allowed.

If you can't pass the human test, email your inquiry to: support@livejournal.com