Will a x rocker connect to a lg smart 2017 tv

Lots of modern TV have got rid the headphone jack. That's the way it is.

Your option often goes like this: Optical --> Toslink-to-RCA-converter --> inline vol control ---> headphones.