Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Ben Os20,008 Points
I would humbly suggest creating a short workshop with tips and further explanations on the action of listening to events on elements via the devtools.
Why I need this?
Well, I bought a quite complex Wordpress premium theme that has tons of inodes and some Js files.
Between thesethere is a file containing the if statement I need to change (a statement that says something like the pseudocode: "if viewport is less than 840 px, display none the desktop menu and show the mobile menu").
For now, I didn't find that file so I thought of just selecting it's element, putting an event listener somehow, click it, and see directly on console what is the file I should go to (similar to seeing what is the CSS file the directive is located at).
I know this is possible to be done from console, but AFAIK, there is no workshop that will actually explain on how to do this "find a script filename by listening to an element's triggered event with the dev tool".
I think such a workshop could be super handy, and very practical for us students.