1 minute read

Show hide more

Parameters:

  • what – allowed values: “words” or “paragraphs”.
  • after_number – hide content after number of words or paragraphs, exemplary values: “2”, “30”, etc..
  • show_more_text – Add “show more” text, exemplary values: “Show more”.
  • show_less_text – Add “show less” text, exemplary values: “Show less”.
  • style – set style, allowed values: “link” or “button”.

Exemplary usage:

[show_hide what="paragraphs" after_number="2" show_more_text="Show more" show_less_text="Show less" style="button"]
<p>First pagargraph of text goes here.</p>
<p>Second pagargraph of text goes here.</p>
<p>Third pagargraph of text goes here.</p>
[/show_hide]

See also demo of show/hide shortcode. In full download package (Dummy data/shortcodes-pages/show-hide.html) you can find the file with shortcodes we used to create demo page.

Did you know...

You can use “show hide” element in drag and drop website builder (Visual Composer) and customize this element easily without coding skills. Parameters and design options are the same as in shortcode.