This thread is resolved. Here is a description of the problem and solution.
Problem:
It would be nice to have a feature to add an icon to the header. The feature request was more for the UX of the accordion cell. Solution:
I have now submitted this idea as a feature request to our team for further consideration. Relevant Documentation:
This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Just a suggestion because there seems to be no straightforward way to implement this.
I've used accordions in my last couple of sites and both times felt that in order to show that the headers are hiding content, they deserved an icon (say a downwards pointing carat or a plus). As Layouts takes care of generating all of the markup, I do this with css :after selctors. This works fine.
I have noticed however, that unless a user clicks on the text in the header (or icon) directly, the panel will not expand.
I feel like this would be a simple change in the back-end with a few lines of Javascript but could make the Accordion feel much more natural for end-users.
I am probably going to implement this in the site I'm currently developing and so could possibly provide the solution I get if needed.
I must admit, I feel that this is a bit of a hack and not really what CSS is made for (not really formatting as much as behavioural) but it does work and that's fine as a temporary workaround.
I'll leave the thread open so that I see what you guys think about adding this as a feature.
Though it would be nice to have a feature to add an icon to the header. The feature request was more for the UX of the accordion cell.
After presenting two sites to clients using accordions, they both initially clicked on the header rather than the link text within the header and mentioned that this was slightly confusing.
When an icon is added to indicate that the header reveals more content, it looks like there is a big clickable region in between but that is not the case. This functionality is only achieved after making the link a block level element or moving the data-toggle directives to the surrounding div.panel-header element.
I hope this clarifies. Please feel free to close the ticket after the feature request has been made.
Yes I see now what you are talking about 🙂 I agree with you that an icon will make it look more useful and good UX. I have now submitted this idea as a feature request to our team for further consideration. We appreciate the time you have taken to provide this feedback.