• Спасибо за прекрасный плагин.

    Would it be possible to allow an additional box spoiler title, to be shown when the spoiler is open?
    – first title is shown when the spoiler is closed
    – a different title to be shown when the spoiler is open (either empty or with a text about “close”…)

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

    (@otshelnik-fm)

    Hello. This cannot be done dynamically in the current implementation. But you can try using css styles

    .js-otfm-sp__opened .otfm-sp__title {
    font-size: 0;
    }

    .js-otfm-sp__opened .otfm-sp__title::after {
    opacity: 1;
    content: “Close”;
    transform: none;
    width: auto;
    height: auto;
    font-size: 16px;
    background: transparent;
    top: 5px;
    left: 30px;
    transition: none;
    }

    Спасибо, Вова!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change text for open box spoiler’ is closed to new replies.