• Resolved Hossein

    (@hosseinkh)


    Hello
    Thank you for this perfect plugin.
    I want to collapse automatically woocomerce product category description text area (for .term-description class) for example at a maximum of 200px height.
    Can I use your plugin for this one?
    Thank you for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author twinpictures

    (@twinpictures)

    Not exactly sure what you mean here. Let’s try and parse this out together:

    Title: Automatic collapse for a special class

    Elements with a certain class will be loaded collapsed by default – Hmm… by default all expand elements are loaded collapsed. go on.

    I want to collapse automatically woocomerce product category description text area (for .term-description class) for example at a maximum of 200px height.

    Hmm. this at a maximum of 200px height part hints that an you want to automatically limit a text element to 200px high, and any content that overflows this height would either be moved to a separate collapse element, or more likely, the element it’s self would be partially collapsed, hiding the overflow text, and the user could then manually expand this element to view the full content.

    Are we close?
    Some things to think about: In a world of responsive design, where viewports vary in size from hand held devices to curved mega monitors, and the layout adjusts accordingly… dynamically, so when the user adjusts the window size, the elements theme self will resize… using a fixed height like 200px might not be the best solution.

    It seems that years ago, there were a number of ways to fade out the text at the bottom of an element and then allow the user to ‘read more’ by expanding it’ most articles from this era will point to this one:
    https://css-tricks.com/text-fade-read-more/

    That all being said, no, collpase-o-matic is not a good solution for this problem… unless we completely misunderstood the request. Which happens more often that we care to admint.

    Hope that at least helped point you in the right direction.

    Thread Starter Hossein

    (@hosseinkh)

    Hello again

    And thank you so much for the time you spend on my question.
    I get my answer and your provided link helps me.

    Kind Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Automatic collapse for special Class’ is closed to new replies.