Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
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.