0

How do i create a Show/Hide script after the first paragraph of a text? The idea goes for the_content, where after the first paragraph hide the remaining text with an icon (arrow) and close to reveal the text.

1
  • 1
    What you are asking is a pure Javascript/jQuery question and is not specific to WordPress at all. As such, the question is off-topic here.
    – s_ha_dum
    Apr 16, 2015 at 17:28

1 Answer 1

0

Use both the_excerpt() and the_content(). Keep the_content() hidden, and after the_exceprt() add your Icon. When someone clicks this Icon, toggle between the_excerpt() and the_content().

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.