• Resolved chcw

    (@chcw)


    Hi,

    I want to insert a code snippet to the header of a specific post(before the </head> tag). How do to so?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi there,

    You can use the Smart Conditional Logic options in the snippet settings to limit the pages where the snippet is loaded.

    For a specific page, you can use the Page URL condition to target a specific URL – I recommend using “contains” as the operator and your page slug for the value for better results.

    You can read more about how to get started with conditional logic rules in WPCode in this article: https://wpcode.com/docs/how-to-use-snippets-smart-conditional-logic/

    Thread Starter chcw

    (@chcw)

    Hi, @gripgrip

    Thank you very much. It works perfectly

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Insert code snippet to the header of a specific post’ is closed to new replies.