• hi
    I am using the classic editor and I want to have a spoiler (what named also “accordion”) without using plugin.
    I want that the spoiler will be open by clicking and if I will control on the font size and cooler that will be better.
    Does anyone have the code that I need to put in my site?
    Thank you

    • This topic was modified 5 years, 10 months ago by Jan Dembowski.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Why without a plugin? Seriously. Someone else has already done the work. You can control font size and color via CSS.

    https://wordpress.org/plugins/search/spoiler

    Thread Starter nati1007

    (@nati1007)

    The reason I do not a plugin is that plugin is that I am going to implement it thousands of times in my website. And with plugins, even with popular plugin like short code unlimited you do not know what will happen. This is the reason I am looking for a code.

    Thread Starter nati1007

    (@nati1007)

    And I will add the the reason that I do not do it with WordPress blocks is that I have vimeo hosted video in my site. And they can have statistics when you embed them with blocks.(because some none tracking parameter the exist in the embed block)
    I spend a few days to transfer my website to blocks. And then a few days to bring it beck out of blocks (because of the statistics). I do not to have the same double work process with short code

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    So it seems to me that you should download several plugins, look at their code, and put together your own version. As you wouldn’t have to offer any sort of options, you could strip it down to something quite efficient.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘how to creat spoiler without plugin?’ is closed to new replies.