I just used this code and it works for me. Hopefully it solves your problem.
if( ! is_page( array( 'links', 'student-work' ) ) ) { /* ... */ }
I just used this code and it works for me. Hopefully it solves your problem.
if( ! is_page( array( 'links', 'student-work' ) ) ) { /* ... */ }