WordPress.org

Ready to get started?Download WordPress

Forums

Is there a fronend way to display:none (and on)classes like (5 posts)

  1. Arindama d
    Member
    Posted 8 months ago #

    HI!
    Is there a way to display:none (and on) specified classes like <H2>
    BY FRONTEND button?
    The button should be accesible to any frontend user.

  2. viky081
    Member
    Posted 8 months ago #

    Can you describe it briefly by this people who can easily get reply back to your thread.
    can you provide the demo url and what you are trying?

  3. jnhghy
    Member
    Posted 8 months ago #

    Arindama d: there is no default option that has this feature and what you describe looks pretty custom.

    You'll have to build your own feature for this (a plugin or a function that will give you this feature).

  4. Arindama d
    Member
    Posted 8 months ago #

    The idea is allow frontend user (any site visitor) to show/hide some portions of the posts text (in homepage) by pressing a button.

    Show/hide button (switcher of trigger?) should work globaly (this is why it should operate with classes) and keep state after page reload.
    A local spoiler is not a solution.

    I cannot provide link yet because my site is on localhost of offline machine.

  5. jnhghy
    Member
    Posted 8 months ago #

    if is post related... then there might be some plugins that do this: displays the excerpt and when you click on "show more" (or something like that) will display the full post and then you'll have an option of "show less"...

    this plugin looks promising: http://wordpress.org/plugins/read-more-right-here/

    it uses ajax ... if it's not the one you need check other...

Reply

You must log in to post.

About this Topic