How to run functions on only AMP pages?
-
I want to run custom functions on only AMP pages. For e.g. I want to change classes of the images of AMP pages only. My function is ready but I don’t know how to insert it on AMP pages and not on original articles. I tried using
is_amp_endpoint()
but it doesn’t work.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to run functions on only AMP pages?’ is closed to new replies.