• Resolved odi92

    (@odi92)


    Hi,

    I want to add a script to a CPT archive page. As it’s a page I can just edit with wordpress I’m wondering what’s the best way to achieve that.

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author SOGO

    (@orenhav)

    you can add the script to the general settings and in the JS you should check if the body has a class archive-<your CPT> class then the script should run

Viewing 1 replies (of 1 total)

The topic ‘Adding script in custom post type archive page’ is closed to new replies.