In the comments, @Jack said that it suffices to show that $\lim_{h\to 0} \int_{0}^{1}\big|f(x+h)-f(x)\big|^p dx = 0.$
In case someone doesn't know why, I want to explain a bit.
Suppose we have that $\lim_{h\to 0} \int_{0}^{1}\big|f(x+h)-f(x)\big|^p dx = 0.$ (Actually this is true)
Let $\varepsilon \gt 0.$ Then $\exists \,\delta\gt0$ s.t. $\lvert \int_{0}^{1}\big|f(x+h)-f(x)\big|^p dx\rvert\lt \varepsilon$ for all $h\in(-\delta,\delta).$
Then we have that, $$\lvert \int_{\lvert h\rvert}^{1-\lvert h\rvert}\big|f(x+h)-f(x)\big|^p dx\rvert\le \lvert \int_{0}^{1}\big|f(x+h)-f(x)\big|^p dx\rvert\lt \varepsilon\text{ for all }h\in(-\delta,\delta)$$ because the integrand is nonnegative.
That's $$\lvert \int_{\lvert h\rvert}^{1-\lvert h\rvert}\big|f(x+h)-f(x)\big|^p dx\rvert\lt \varepsilon\text{ for all }h\in(-\delta,\delta)\,,$$
i.e. $$\lim_{h\to 0} \int_{|h|}^{1-|h|}\big|f(x+h)-f(x)\big|^p dx = 0.$$