• Is this possible to collapse long (for example sentence more than 5-10 words or words with more than 10 signs?). Have you any suggestion to do this?

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

    (@twinpictures)

    Yes. Are you having an problem, or is that just a general question?

    Thread Starter mkrufczyk

    (@mkrufczyk)

    I’d like to collapse only 5 words from 10 in shortcode tag. All words are in shortcode tag ??
    Could you help?

    Thread Starter mkrufczyk

    (@mkrufczyk)

    I know that can collapse all words but I’ve imported many posts and would like to automatize it by collapsing only 5 from 10 words without manualy posts editing.

    • This reply was modified 5 years, 9 months ago by mkrufczyk.
    Plugin Author twinpictures

    (@twinpictures)

    do you mean that you have a sentence that is 10 words long and you want to have 5 of these words expand/collapse inline?
    https://spacedonkey.de/2828/collapse-o-matic-inline-trigger-with-block-target/

    Thread Starter mkrufczyk

    (@mkrufczyk)

    do you mean that you have a sentence that is 10 words long and you want to have 5 of these words expand/collapse inline?

    Yes. But a whole sentence is in shortcode.

    • This reply was modified 5 years, 9 months ago by mkrufczyk.
    Plugin Author twinpictures

    (@twinpictures)

    Your answers are completely confusing.
    What exactly are you trying to do. Please include a link to your site and be as detailed and descriptive as possible.

    • This reply was modified 5 years, 9 months ago by twinpictures.
    Thread Starter mkrufczyk

    (@mkrufczyk)

    Look at this:

    [expand tag="span" title="this trigger" targtag="span"]my ten words sentence five six seven eight nine ten[/expand]

    I’ve tried to show/hide only “five six seven eight nine ten” words. Not all…

    Thread Starter mkrufczyk

    (@mkrufczyk)

    It must be in one shorcode tag…

    Plugin Author twinpictures

    (@twinpictures)

    Have you tried:

    [expand tag="span" title="my ten words sentence" targtag="span"] five six seven eight nine ten[/expand]
    

    or

    my ten word sentence [expand tag="span" title="more" targtag="span"] five six seven eight nine ten[/expand]
    

    ?

    Thread Starter mkrufczyk

    (@mkrufczyk)

    It will probably be harder than I thought. The script should count words to show the last 5 words in the sentence. Unless it’s easier to show, for example, only the first five words.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘collapse long words’ is closed to new replies.