• Resolved Imagewesternwoman

    (@westernwoman)


    Hi,
    I have been looking for a plugin I can use to insert code specific to a single page. (It’s for a Salesforce web => lead form). I can’t believe how hard it is to find an answer to this simple question! I’ve seen others asking this too. Can you use Code Snippets on a single page?
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ImageShea Bunge

    (@bungeshea)

    Yep! You can use the is_page() function to check what the page is before executing the code.

    Thread Starter Imagewesternwoman

    (@westernwoman)

    Thanks Shea. I was hoping for something a little simpler but if this is the only solution then it is the only solution.

    Plugin Author ImageShea Bunge

    (@bungeshea)

    @westernwoman can you explain what you had in mind? Generally speaking I find is_page() is pretty versatile and only requires adding a single line of code before the snippet.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Snippet on single page?’ is closed to new replies.