• how can I add the minimize option at the bottom of each spoiler? I added the long texts in spoiler and after scrolling I want to add the minimize option at the bottom to minimize.

Viewing 1 replies (of 1 total)
  • Plugin Author Webliberty

    (@webliberty)

    Hello!
    This feature is not currently available in the plugin, but you can manually add it.

    In the WordPress dashboard, open the Plugin Editor from the Plugins and Select plugin to edit: Simple Spoiler menu. In simple-spoiler.php file, swap 103 and 104 lines:

    <div class="spoiler-head folded">'.$sp_name.'</div>
    <div class="spoiler-body">'.$content.'</div>

    To get it like this:

    <div class="spoiler-body">'.$content.'</div>
    <div class="spoiler-head folded">'.$sp_name.'</div>

    And save your changes.

    Then open the simple-spoiler.min.js file for editing, find next() in it and replace it with prev(), then save the changes. You may need to clear the cache to display the changes. Done!

    Please note: after updating the plugin, all these changes will be lost and you will have to repeat these steps again. As soon as I have more time, I will think about adding this feature to the plugin settings.

    • This reply was modified 3 years, 11 months ago by Webliberty.
Viewing 1 replies (of 1 total)
  • The topic ‘Minimize spoiler’ is closed to new replies.