Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Pescao6 Posted May 21, 2020 Posted May 21, 2020 Has anyone created a spoiler for rules? I found this: But it's showing "Reveal hidden contents" I'd like for it to show the rule on the label and then allow people to expand the rule to read the description. See https://www.elimperiolatino.com/guidelines/ in English (US). Any suggestions?
opentype Posted May 21, 2020 Posted May 21, 2020 What you are looking for is called “accordion”. You might have more success searching for this term.
Pescao6 Posted May 21, 2020 Author Posted May 21, 2020 9 minutes ago, opentype said: What you are looking for is called “accordion”. You might have more success searching for this term. Haven't found much. On WordPress, I use this plugin https://plugins.twinpictures.de/plugins/collapse-o-matic/documentation/
Pescao6 Posted May 21, 2020 Author Posted May 21, 2020 Something weird going on with the rules because the accordion works on a page I made, but not on the rules. https://www.elimperiolatino.com/sandbox/
Pescao6 Posted May 21, 2020 Author Posted May 21, 2020 I think the accordion isn't working because the CSS is not getting saved on the guidelines. https://www.w3schools.com/howto/howto_js_accordion.asp I don't feel like editing my theme to put that in there, but I kinda like the way the new rules look using buttons to highlight the rules. @opentype Thanks for the help anyway. 🙃 If anyone has figured out a way to make their rules look prettier, let me know. 😜
Recommended Posts