• Resolved MorganJohnstone

    (@morganjohnstone)


    Good Evening/Morning to you all,

    I’ve been looking around lately for a certain functionality in WordPress. On many sites I see pages have collapsible sections. For example, you click on a heading and the appropriate text/content would appear under it, then you would click the heading again and the text/content would disappear. Is is in WordPress? Is this some simple coding I need to learn? I think my websites would look awesome with it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • It’s not a WordPress-specific thing. It’s done using Javascript, and can be done on any website.

    For a starting point, do some reasearch into jQuery, and pay attention to the hide(), show(), slideUp(), slideDown() and toggle() functions that it has. That’s about the easiest way of integrating something like that with your site.

    Thread Starter MorganJohnstone

    (@morganjohnstone)

    Thanks!

    I will definitely look into that. Do you think it would be worth requesting the feature in a future WP release?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    It’s theme/ plugin territory, you may want to request this to your theme author.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Do you think it would be worth requesting the feature in a future WP release?

    It’s actually already in WordPress core, the “jQuery” library is bundled in with WordPress. You just need to use it.

    Thread Starter MorganJohnstone

    (@morganjohnstone)

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘General Design Question’ is closed to new replies.